EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_eic_qa/blob/master/source/QAG4SimulationEicCalorimeter.h>
Public Types | |
enum | enu_flags { kProcessG4Hit = 1 << 1, kProcessTower = 1 << 2, kProcessCluster = 1 << 3, kDefaultFlag = kProcessG4Hit | kProcessTower | kProcessCluster } |
Public Member Functions | |
QAG4SimulationEicCalorimeter (const std::string &calo_name, enu_flags flags=kDefaultFlag) | |
virtual | ~QAG4SimulationEicCalorimeter () |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
uint32_t | get_flags () const |
void | set_flags (enu_flags flags) |
void | set_flag (enu_flags flag) |
bool | flag (enu_flags flag) |
void | reset_flag (enu_flags flag) |
std::string | get_histo_prefix () |
common prefix for QA histograms | |
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 | 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. | |
Private Member Functions | |
int | Init_G4Hit (PHCompositeNode *topNode) |
int | process_event_G4Hit (PHCompositeNode *topNode) |
int | Init_Tower (PHCompositeNode *topNode) |
int | process_event_Tower (PHCompositeNode *topNode) |
int | Init_Cluster (PHCompositeNode *topNode) |
int | process_event_Cluster (PHCompositeNode *topNode) |
Private Attributes | |
std::shared_ptr< CaloEvalStack > | _caloevalstack |
std::string | _calo_name |
uint32_t | _flags |
PHG4HitContainer * | _calo_hit_container |
PHG4HitContainer * | _calo_abs_hit_container |
PHG4TruthInfoContainer * | _truth_container |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 16 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 16 of file QAG4SimulationEicCalorimeter.h
Definition at line 19 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 19 of file QAG4SimulationEicCalorimeter.h
QAG4SimulationEicCalorimeter::QAG4SimulationEicCalorimeter | ( | const std::string & | calo_name, |
QAG4SimulationEicCalorimeter::enu_flags | flags = kDefaultFlag |
||
) |
Definition at line 47 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 47 of file QAG4SimulationEicCalorimeter.cc
|
inlinevirtual |
Definition at line 30 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 30 of file QAG4SimulationEicCalorimeter.h
|
inline |
Definition at line 55 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 55 of file QAG4SimulationEicCalorimeter.h
References _flags.
Referenced by Init(), InitRun(), and process_event().
|
inline |
Definition at line 37 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 37 of file QAG4SimulationEicCalorimeter.h
References _flags.
string QAG4SimulationEicCalorimeter::get_histo_prefix | ( | ) |
common prefix for QA histograms
Definition at line 199 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 199 of file QAG4SimulationEicCalorimeter.cc
References _calo_name.
Referenced by Init(), Init_Cluster(), Init_G4Hit(), Init_Tower(), process_event(), process_event_Cluster(), process_event_G4Hit(), and process_event_Tower().
|
virtual |
Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).
Reimplemented from SubsysReco.
Definition at line 114 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 114 of file QAG4SimulationEicCalorimeter.cc
References _calo_name, Fun4AllReturnCodes::EVENT_OK, flag(), get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, Init_Cluster(), Init_G4Hit(), Init_Tower(), kProcessCluster, kProcessG4Hit, kProcessTower, Fun4AllHistoManager::registerHisto(), and Fun4AllBase::Verbosity().
|
private |
Definition at line 604 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 604 of file QAG4SimulationEicCalorimeter.cc
References _calo_name, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), and Fun4AllHistoManager::registerHisto().
Referenced by Init().
|
private |
Definition at line 204 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 204 of file QAG4SimulationEicCalorimeter.cc
References _calo_name, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, Fun4AllHistoManager::registerHisto(), and QAHistManagerDef::useLogBins().
Referenced by Init().
|
private |
Definition at line 434 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 434 of file QAG4SimulationEicCalorimeter.cc
References _calo_name, Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, Fun4AllHistoManager::registerHisto(), and QAHistManagerDef::useLogBins().
Referenced by Init().
|
virtual |
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 58 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 58 of file QAG4SimulationEicCalorimeter.cc
References _calo_abs_hit_container, _calo_hit_container, _calo_name, _caloevalstack, _truth_container, Fun4AllReturnCodes::EVENT_OK, PHNodeIterator::findFirst(), flag(), kProcessCluster, kProcessG4Hit, and Fun4AllBase::Verbosity().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 155 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 155 of file QAG4SimulationEicCalorimeter.cc
References _caloevalstack, Fun4AllReturnCodes::EVENT_OK, flag(), get_histo_prefix(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), kProcessCluster, kProcessG4Hit, kProcessTower, process_event_Cluster(), process_event_G4Hit(), process_event_Tower(), and Fun4AllBase::Verbosity().
|
private |
Definition at line 622 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 622 of file QAG4SimulationEicCalorimeter.cc
References _calo_name, _caloevalstack, _truth_container, Fun4AllReturnCodes::ABORTRUN, CaloRawClusterEval::best_cluster_from(), Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, RawCluster::get_energy(), get_histo_prefix(), RawCluster::get_position(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), PHG4TruthInfoContainer::GetMap(), PHG4TruthInfoContainer::GetPrimaryVtx(), Acts::UnitConstants::h, PHWHERE, RawClusterContainer::size(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Definition at line 252 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 252 of file QAG4SimulationEicCalorimeter.cc
References _calo_abs_hit_container, _calo_hit_container, _calo_name, _truth_container, kdfinder::abs(), Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, PHG4Hit::get_avg_t(), PHG4Hit::get_avg_x(), PHG4Hit::get_avg_y(), PHG4Hit::get_avg_z(), PHG4Particle::get_e(), PHG4Hit::get_edep(), get_histo_prefix(), PHG4Hit::get_light_yield(), PHG4Particle::get_pid(), PHG4VtxPoint::get_t(), PHG4Hit::get_trkid(), PHG4VtxPoint::get_x(), PHG4VtxPoint::get_y(), PHG4VtxPoint::get_z(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), PHG4HitContainer::getHits(), PHG4TruthInfoContainer::GetMap(), PHG4TruthInfoContainer::GetParticle(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetPrimaryVtx(), Acts::UnitConstants::h, PHG4VtxPoint::identify(), PHG4Hit::identify(), particle, PHG4HitContainer::size(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Definition at line 488 of file QAG4SimulationEicCalorimeter.cc.
View newest version in sPHENIX GitHub at line 488 of file QAG4SimulationEicCalorimeter.cc
References _calo_name, Fun4AllReturnCodes::ABORTRUN, Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, RawTower::get_energy(), RawTowerGeomContainer::get_etabins(), get_histo_prefix(), RawTowerGeomContainer::get_phibins(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), RawTowerContainer::getTower(), Acts::UnitConstants::h, PHWHERE, RawTowerContainer::size(), RawTowerGeomContainer::size(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
inline |
Definition at line 61 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 61 of file QAG4SimulationEicCalorimeter.h
References _flags.
|
inline |
Definition at line 49 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 49 of file QAG4SimulationEicCalorimeter.h
References _flags.
|
inline |
Definition at line 43 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 43 of file QAG4SimulationEicCalorimeter.h
References _flags.
|
private |
Definition at line 86 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 86 of file QAG4SimulationEicCalorimeter.h
Referenced by InitRun(), and process_event_G4Hit().
|
private |
Definition at line 85 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 85 of file QAG4SimulationEicCalorimeter.h
Referenced by InitRun(), and process_event_G4Hit().
|
private |
Definition at line 82 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 82 of file QAG4SimulationEicCalorimeter.h
Referenced by get_histo_prefix(), Init(), Init_Cluster(), Init_G4Hit(), Init_Tower(), InitRun(), process_event_Cluster(), process_event_G4Hit(), and process_event_Tower().
|
private |
Definition at line 80 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 80 of file QAG4SimulationEicCalorimeter.h
Referenced by InitRun(), process_event(), and process_event_Cluster().
|
private |
Definition at line 83 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 83 of file QAG4SimulationEicCalorimeter.h
Referenced by flag(), get_flags(), reset_flag(), set_flag(), and set_flags().
|
private |
Definition at line 87 of file QAG4SimulationEicCalorimeter.h.
View newest version in sPHENIX GitHub at line 87 of file QAG4SimulationEicCalorimeter.h
Referenced by InitRun(), process_event_Cluster(), and process_event_G4Hit().