ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4calo/RawTowerBuilder.h>
Public Types | |
enum | enu_tower_energy_src { kEnergyDeposition, kLightYield } |
Public Member Functions | |
RawTowerBuilder (const std::string &name="RawTowerBuilder") | |
~RawTowerBuilder () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
void | Detector (const std::string &d) |
void | EminCut (const double e) |
void | checkenergy (const int i=1) |
enu_tower_energy_src | get_tower_energy_src () const |
void | set_tower_energy_src (enu_tower_energy_src towerEnergySrc) |
std::string | get_sim_tower_node_prefix () const |
void | set_sim_tower_node_prefix (const std::string &simTowerNodePrefix) |
Public Member Functions inherited from SubsysReco | |
~SubsysReco () override | |
virtual int | End (PHCompositeNode *) |
Called at the end of all processing. | |
virtual int | EndRun (const int) |
Called at the end of each run. | |
virtual int | Init (PHCompositeNode *) |
virtual int | Reset (PHCompositeNode *) |
Reset. | |
virtual int | ResetEvent (PHCompositeNode *) |
Clean up after each event. | |
void | Print (const std::string &="ALL") const override |
Public Member Functions inherited from Fun4AllBase | |
virtual | ~Fun4AllBase () |
virtual const std::string | Name () const |
Returns the name of this module. | |
virtual void | Name (const std::string &name) |
Sets the name of this module. | |
virtual void | Verbosity (const int ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual void | Verbosity (enu_Verbosity ival) |
Sets the verbosity of this module (0 by default=quiet). | |
virtual int | Verbosity () const |
Gets the verbosity of this module. | |
Protected Member Functions | |
void | CreateNodes (PHCompositeNode *topNode) |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Protected Member Functions inherited from Fun4AllBase | |
Fun4AllBase (const std::string &name="NONAME") | |
Protected Attributes | |
RawTowerContainer * | m_TowerContainer |
RawTowerGeomContainer * | m_RawTowerGeomContainer |
std::string | m_Detector |
std::string | m_TowerNodeName |
std::string | m_TowerGeomNodeName |
std::string | m_SimTowerNodePrefix |
enu_tower_energy_src | m_TowerEnergySrcEnum |
int | m_CellBinning |
int | m_ChkEnergyConservationFlag |
int | m_NumLayers |
int | m_NumPhiBins |
int | m_NumEtaBins |
double | m_Emin |
double | m_EtaMin |
double | m_PhiMin |
double | m_EtaStep |
double | m_PhiStep |
Definition at line 12 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 12 of file RawTowerBuilder.h
kEnergyDeposition |
save Geant4 energy deposition as the weight of the cells |
kLightYield |
save light yield as the weight of the cells |
Definition at line 22 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 22 of file RawTowerBuilder.h
RawTowerBuilder::RawTowerBuilder | ( | const std::string & | name = "RawTowerBuilder" | ) |
Definition at line 44 of file RawTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 44 of file RawTowerBuilder.cc
|
inlineoverride |
Definition at line 16 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 16 of file RawTowerBuilder.h
Definition at line 21 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 21 of file RawTowerBuilder.h
References m_ChkEnergyConservationFlag.
|
protected |
Definition at line 236 of file RawTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 236 of file RawTowerBuilder.cc
References RawTowerGeomContainer::add_tower_geometry(), PHCompositeNode::addNode(), RawTowerDefs::convert_name_to_caloid(), e, RawTowerDefs::encode_towerid(), PHG4CellDefs::etaphibinning, PHG4CellDefs::etaslatbinning, g4zmq::exit(), PHNodeIterator::findFirst(), PHG4CylinderCellGeomContainer::get_begin_end(), PHG4CylinderCellGeom::get_binning(), RawTowerGeom::get_center_x(), PHG4CylinderCellGeom::get_etabins(), RawTowerGeomContainer::get_etabins(), PHG4CylinderCellGeom::get_etabounds(), RawTowerGeomContainer::get_etacenter(), PHG4CylinderCellGeom::get_etamin(), PHG4CylinderCellGeom::get_etastep(), PHG4CylinderCellGeom::get_layer(), PHG4CylinderCellGeomContainer::get_NLayers(), PHG4CylinderCellGeom::get_phibins(), RawTowerGeomContainer::get_phibins(), PHG4CylinderCellGeom::get_phibounds(), RawTowerGeomContainer::get_phicenter(), PHG4CylinderCellGeom::get_phimin(), PHG4CylinderCellGeom::get_phistep(), PHG4CylinderCellGeom::get_radius(), PHG4Utils::get_theta(), PHG4CylinderCellGeom::get_thickness(), RawTowerGeomContainer::get_tower_geometry(), PHG4CylinderCellGeom::get_zbins(), PHG4CylinderCellGeom::get_zbounds(), PHG4CylinderCellGeom::get_zcenter(), PHG4CylinderCellGeom::identify(), RawTowerGeomContainer::identify(), G4CEMCALBEDO::inner_radius, m_CellBinning, m_Detector, m_EtaMin, m_EtaStep, m_NumEtaBins, m_NumLayers, m_NumPhiBins, m_PhiMin, m_PhiStep, m_RawTowerGeomContainer, m_SimTowerNodePrefix, m_TowerContainer, m_TowerGeomNodeName, m_TowerNodeName, Fun4AllBase::Name(), PHWHERE, r, RawTowerGeomContainer::set_etabins(), RawTowerGeomContainer::set_etabounds(), RawTowerGeomContainer::set_phibins(), RawTowerGeomContainer::set_phibounds(), RawTowerGeomContainer::set_radius(), RawTowerGeomContainer::set_thickness(), PHG4CellDefs::sizebinning, PHG4CellDefs::spacalbinning, thickness, Fun4AllBase::Verbosity(), x, y, and z.
Referenced by InitRun().
|
inline |
Definition at line 19 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 19 of file RawTowerBuilder.h
References d, and m_Detector.
Referenced by CEMC_Towers(), and Fun4All_G4_Clusters().
|
inline |
Definition at line 20 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 20 of file RawTowerBuilder.h
Referenced by CEMC_Towers().
|
inline |
Definition at line 45 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 45 of file RawTowerBuilder.h
References m_SimTowerNodePrefix.
|
inline |
Definition at line 33 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 33 of file RawTowerBuilder.h
References m_TowerEnergySrcEnum.
|
overridevirtual |
Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.
Reimplemented from SubsysReco.
Definition at line 63 of file RawTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 63 of file RawTowerBuilder.cc
References CreateNodes(), e, Fun4AllReturnCodes::EVENT_OK, g4zmq::exit(), PHNodeIterator::findFirst(), PHG4CylinderCellGeomContainer::get_NLayers(), findNode::getClass(), kEnergyDeposition, kLightYield, m_Detector, m_NumLayers, m_TowerEnergySrcEnum, PHWHERE, and Fun4AllBase::Verbosity().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 117 of file RawTowerBuilder.cc.
View newest version in sPHENIX GitHub at line 117 of file RawTowerBuilder.cc
References Fun4AllReturnCodes::ABORTEVENT, RawTower::add_ecell(), RawTower::add_eshower(), RawTowerContainer::AddTower(), RawTowerContainer::compress(), e, Fun4AllReturnCodes::EVENT_OK, g4zmq::exit(), PHG4CellDefs::get_binning(), PHG4Cell::get_cellid(), PHG4Cell::get_edep(), RawTower::get_energy(), PHG4CellDefs::SpacalBinning::get_etabin(), PHG4Cell::get_g4showers(), PHG4Cell::get_light_yield(), PHG4CellDefs::SizeBinning::get_phibin(), PHG4CellDefs::SpacalBinning::get_phibin(), PHG4CellDefs::SizeBinning::get_zbin(), PHG4CellContainer::getCells(), RawTowerContainer::getTotalEdep(), PHG4CellContainer::getTotalEdep(), RawTowerContainer::getTower(), RawTowerContainer::getTowers(), PHG4Cell::has_binning(), RawTowerContainer::identify(), PHG4Cell::identify(), RawTower::identify(), kEnergyDeposition, kLightYield, m_ChkEnergyConservationFlag, m_Detector, m_Emin, m_RawTowerGeomContainer, m_TowerContainer, m_TowerEnergySrcEnum, m_TowerGeomNodeName, PHWHERE, RawTower::set_energy(), PHG4CellDefs::sizebinning, PHG4CellDefs::spacalbinning, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 51 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 51 of file RawTowerBuilder.h
References m_SimTowerNodePrefix.
Referenced by CEMC_Towers().
|
inline |
Definition at line 39 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 39 of file RawTowerBuilder.h
References m_TowerEnergySrcEnum.
|
protected |
Definition at line 68 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 68 of file RawTowerBuilder.h
Referenced by CreateNodes().
|
protected |
Definition at line 69 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 69 of file RawTowerBuilder.h
Referenced by checkenergy(), and process_event().
|
protected |
Definition at line 62 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 62 of file RawTowerBuilder.h
Referenced by CreateNodes(), Detector(), InitRun(), and process_event().
|
protected |
Definition at line 73 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 73 of file RawTowerBuilder.h
Referenced by EminCut(), and process_event().
|
protected |
Definition at line 74 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 74 of file RawTowerBuilder.h
Referenced by CreateNodes().
|
protected |
Definition at line 76 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 76 of file RawTowerBuilder.h
Referenced by CreateNodes().
|
protected |
Definition at line 72 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 72 of file RawTowerBuilder.h
Referenced by CreateNodes().
|
protected |
Definition at line 70 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 70 of file RawTowerBuilder.h
Referenced by CreateNodes(), and InitRun().
|
protected |
Definition at line 71 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 71 of file RawTowerBuilder.h
Referenced by CreateNodes().
|
protected |
Definition at line 75 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 75 of file RawTowerBuilder.h
Referenced by CreateNodes().
|
protected |
Definition at line 77 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 77 of file RawTowerBuilder.h
Referenced by CreateNodes().
|
protected |
Definition at line 60 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 60 of file RawTowerBuilder.h
Referenced by CreateNodes(), and process_event().
|
protected |
Definition at line 65 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 65 of file RawTowerBuilder.h
Referenced by CreateNodes(), get_sim_tower_node_prefix(), and set_sim_tower_node_prefix().
|
protected |
Definition at line 59 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 59 of file RawTowerBuilder.h
Referenced by CreateNodes(), and process_event().
|
protected |
Definition at line 67 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 67 of file RawTowerBuilder.h
Referenced by get_tower_energy_src(), InitRun(), process_event(), and set_tower_energy_src().
|
protected |
Definition at line 64 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 64 of file RawTowerBuilder.h
Referenced by CreateNodes(), and process_event().
|
protected |
Definition at line 63 of file RawTowerBuilder.h.
View newest version in sPHENIX GitHub at line 63 of file RawTowerBuilder.h
Referenced by CreateNodes().