ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/QA/modules/QAG4SimulationCalorimeter.h>
Public Types | |
enum | enu_flags { kProcessG4Hit = 1 << 1, kProcessTower = 1 << 2, kProcessCluster = 1 << 3, kDefaultFlag = kProcessG4Hit | kProcessTower | kProcessCluster } |
Public Member Functions | |
QAG4SimulationCalorimeter (const std::string &calo_name, enu_flags flags=kDefaultFlag) | |
virtual | ~QAG4SimulationCalorimeter () |
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 QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 16 of file QAG4SimulationCalorimeter.h
Definition at line 19 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 19 of file QAG4SimulationCalorimeter.h
QAG4SimulationCalorimeter::QAG4SimulationCalorimeter | ( | const std::string & | calo_name, |
QAG4SimulationCalorimeter::enu_flags | flags = kDefaultFlag |
||
) |
Definition at line 46 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 46 of file QAG4SimulationCalorimeter.cc
|
inlinevirtual |
Definition at line 30 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 30 of file QAG4SimulationCalorimeter.h
|
inline |
Definition at line 55 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 55 of file QAG4SimulationCalorimeter.h
References _flags.
Referenced by Init(), InitRun(), and process_event().
|
inline |
Definition at line 37 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 37 of file QAG4SimulationCalorimeter.h
References _flags.
std::string QAG4SimulationCalorimeter::get_histo_prefix | ( | ) |
common prefix for QA histograms
Definition at line 198 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 198 of file QAG4SimulationCalorimeter.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 113 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 113 of file QAG4SimulationCalorimeter.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 603 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 603 of file QAG4SimulationCalorimeter.cc
References _calo_name, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), and Fun4AllHistoManager::registerHisto().
Referenced by Init().
|
private |
Definition at line 203 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 203 of file QAG4SimulationCalorimeter.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 433 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 433 of file QAG4SimulationCalorimeter.cc
References _calo_name, 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 57 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 57 of file QAG4SimulationCalorimeter.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 154 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 154 of file QAG4SimulationCalorimeter.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 621 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 621 of file QAG4SimulationCalorimeter.cc
References _calo_name, _caloevalstack, _truth_container, Fun4AllReturnCodes::ABORTRUN, CaloRawClusterEval::best_cluster_from(), CLHEP::Hep3Vector::cross(), CLHEP::Hep3Vector::dot(), e, Fun4AllReturnCodes::EVENT_OK, RawCluster::get_energy(), get_histo_prefix(), RawCluster::get_position(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), PHG4TruthInfoContainer::GetMap(), PHG4TruthInfoContainer::GetPrimaryVtx(), Acts::UnitConstants::h, CLHEP::Hep3Vector::mag(), PHWHERE, CLHEP::Hep3Vector::set(), RawClusterContainer::size(), CLHEP::Hep3Vector::unit(), and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Definition at line 251 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 251 of file QAG4SimulationCalorimeter.cc
References _calo_abs_hit_container, _calo_hit_container, _calo_name, _truth_container, kdfinder::abs(), 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 487 of file QAG4SimulationCalorimeter.cc.
View newest version in sPHENIX GitHub at line 487 of file QAG4SimulationCalorimeter.cc
References _calo_name, Fun4AllReturnCodes::ABORTRUN, e, energy, 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().
Definition at line 61 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 61 of file QAG4SimulationCalorimeter.h
References _flags.
Definition at line 49 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 49 of file QAG4SimulationCalorimeter.h
References _flags.
Definition at line 43 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 43 of file QAG4SimulationCalorimeter.h
References _flags.
|
private |
Definition at line 86 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 86 of file QAG4SimulationCalorimeter.h
Referenced by InitRun(), and process_event_G4Hit().
|
private |
Definition at line 85 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 85 of file QAG4SimulationCalorimeter.h
Referenced by InitRun(), and process_event_G4Hit().
|
private |
Definition at line 82 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 82 of file QAG4SimulationCalorimeter.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 QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 80 of file QAG4SimulationCalorimeter.h
Referenced by InitRun(), process_event(), and process_event_Cluster().
|
private |
Definition at line 83 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 83 of file QAG4SimulationCalorimeter.h
Referenced by flag(), get_flags(), reset_flag(), set_flag(), and set_flags().
|
private |
Definition at line 87 of file QAG4SimulationCalorimeter.h.
View newest version in sPHENIX GitHub at line 87 of file QAG4SimulationCalorimeter.h
Referenced by InitRun(), process_event_Cluster(), and process_event_G4Hit().