EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_eic_qa/blob/master/source/QAG4SimulationEicCalorimeterSum.h>
Public Types | |
enum | enu_flags { kProcessCluster = 1 << 2, kProcessTrackProj = 1 << 3, kDefaultFlag = kProcessCluster | kProcessTrackProj } |
Public Member Functions | |
QAG4SimulationEicCalorimeterSum (enu_flags flags=kDefaultFlag) | |
virtual | ~QAG4SimulationEicCalorimeterSum () |
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 | |
std::string | get_calo_name_cemc () const |
void | set_calo_name_cemc (const std::string &caloNameCemc) |
std::string | get_calo_name_hcalin () const |
void | set_calo_name_hcalin (const std::string &caloNameHcalin) |
std::string | get_calo_name_hcalout () const |
void | set_calo_name_hcalout (const std::string &caloNameHcalout) |
float | get_mag_field () const |
void | set_mag_field (float magField) |
void | set_track_nodename (const std::string &name) |
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 Types | |
enum | { Max_N_Tower = 11 } |
Private Member Functions | |
int | Init_Cluster (PHCompositeNode *topNode) |
int | process_event_Cluster (PHCompositeNode *topNode) |
int | Init_TrackProj (PHCompositeNode *topNode) |
int | process_event_TrackProj (PHCompositeNode *topNode) |
PHG4Particle * | get_truth_particle () |
fetch the truth particle to be analyzed. By default it is the last primary particle in truth container (therefore works in single particle embedding) | |
bool | eval_trk_proj (const std::string &detector, SvtxTrack *track, PHCompositeNode *topNode) |
fetch tower around track and histogram energy distributions | |
Private Attributes | |
std::shared_ptr< CaloEvalStack > | _caloevalstack_cemc |
std::shared_ptr< CaloEvalStack > | _caloevalstack_hcalin |
std::shared_ptr< CaloEvalStack > | _caloevalstack_hcalout |
std::shared_ptr< SvtxEvalStack > | _svtxevalstack |
uint32_t | _flags |
std::string | m_TrackNodeName |
std::string | _calo_name_cemc |
std::string | _calo_name_hcalin |
std::string | _calo_name_hcalout |
PHG4TruthInfoContainer * | _truth_container |
float | _magField |
central magnetic field strength in T | |
Additional Inherited Members | |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 18 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 18 of file QAG4SimulationEicCalorimeterSum.h
|
private |
Definition at line 151 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 151 of file QAG4SimulationEicCalorimeterSum.h
Definition at line 21 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 21 of file QAG4SimulationEicCalorimeterSum.h
QAG4SimulationEicCalorimeterSum::QAG4SimulationEicCalorimeterSum | ( | QAG4SimulationEicCalorimeterSum::enu_flags | flags = kDefaultFlag | ) |
Definition at line 42 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 42 of file QAG4SimulationEicCalorimeterSum.cc
|
inlinevirtual |
Definition at line 32 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 32 of file QAG4SimulationEicCalorimeterSum.h
|
private |
fetch tower around track and histogram energy distributions
Definition at line 298 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 298 of file QAG4SimulationEicCalorimeterSum.cc
References Acts::VectorHelpers::eta(), RawTower::get_energy(), RawTowerGeomContainer::get_etabin(), RawTowerGeomContainer::get_etabins(), RawTowerGeomContainer::get_etabounds(), RawTowerGeomContainer::get_etacenter(), get_histo_prefix(), RawTowerGeomContainer::get_phibin(), RawTowerGeomContainer::get_phibins(), RawTowerGeomContainer::get_phibounds(), RawTowerGeomContainer::get_phicenter(), SvtxTrack::get_px(), SvtxTrack::get_py(), SvtxTrack::get_pz(), SvtxTrack::get_x(), SvtxTrack::get_z(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), RawTowerContainer::getTower(), RawTowerGeomContainer::identify(), M_PI, Max_N_Tower, phi, SvtxTrack::size_states(), Fun4AllBase::Verbosity(), x, y, and z.
Referenced by process_event_TrackProj().
|
inline |
Definition at line 57 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 57 of file QAG4SimulationEicCalorimeterSum.h
References _flags.
Referenced by Init(), InitRun(), and process_event().
|
inline |
Definition at line 73 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 73 of file QAG4SimulationEicCalorimeterSum.h
References _calo_name_cemc.
|
inline |
Definition at line 85 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 85 of file QAG4SimulationEicCalorimeterSum.h
References _calo_name_hcalin.
|
inline |
Definition at line 97 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 97 of file QAG4SimulationEicCalorimeterSum.h
References _calo_name_hcalout.
|
inline |
Definition at line 39 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 39 of file QAG4SimulationEicCalorimeterSum.h
References _flags.
string QAG4SimulationEicCalorimeterSum::get_histo_prefix | ( | ) |
common prefix for QA histograms
Definition at line 195 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 195 of file QAG4SimulationEicCalorimeterSum.cc
Referenced by eval_trk_proj(), Init(), Init_Cluster(), Init_TrackProj(), process_event(), process_event_Cluster(), and process_event_TrackProj().
|
inline |
Definition at line 108 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 108 of file QAG4SimulationEicCalorimeterSum.h
References _magField.
|
private |
fetch the truth particle to be analyzed. By default it is the last primary particle in truth container (therefore works in single particle embedding)
Definition at line 201 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 201 of file QAG4SimulationEicCalorimeterSum.cc
References _truth_container, and PHG4TruthInfoContainer::GetMap().
Referenced by process_event_Cluster(), and process_event_TrackProj().
|
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 102 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 102 of file QAG4SimulationEicCalorimeterSum.cc
References _calo_name_cemc, _calo_name_hcalin, _calo_name_hcalout, Fun4AllReturnCodes::EVENT_OK, flag(), get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, Init_Cluster(), Init_TrackProj(), kProcessCluster, kProcessTrackProj, Fun4AllHistoManager::registerHisto(), and Fun4AllBase::Verbosity().
|
private |
Definition at line 472 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 472 of file QAG4SimulationEicCalorimeterSum.cc
References _calo_name_cemc, _calo_name_hcalin, _calo_name_hcalout, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), and Fun4AllHistoManager::registerHisto().
Referenced by Init().
|
private |
Definition at line 212 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 212 of file QAG4SimulationEicCalorimeterSum.cc
References _calo_name_cemc, _calo_name_hcalin, _calo_name_hcalout, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), Max_N_Tower, and Fun4AllHistoManager::registerHisto().
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 55 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 55 of file QAG4SimulationEicCalorimeterSum.cc
References _calo_name_cemc, _calo_name_hcalin, _calo_name_hcalout, _caloevalstack_cemc, _caloevalstack_hcalin, _caloevalstack_hcalout, _svtxevalstack, _truth_container, Fun4AllReturnCodes::EVENT_OK, flag(), kProcessCluster, kProcessTrackProj, m_TrackNodeName, and Fun4AllBase::Verbosity().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 145 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 145 of file QAG4SimulationEicCalorimeterSum.cc
References _caloevalstack_cemc, _caloevalstack_hcalin, _caloevalstack_hcalout, _svtxevalstack, Fun4AllReturnCodes::EVENT_OK, flag(), get_histo_prefix(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), kProcessCluster, kProcessTrackProj, process_event_Cluster(), process_event_TrackProj(), and Fun4AllBase::Verbosity().
|
private |
Definition at line 507 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 507 of file QAG4SimulationEicCalorimeterSum.cc
References _calo_name_cemc, _calo_name_hcalin, _calo_name_hcalout, _caloevalstack_cemc, _caloevalstack_hcalin, _caloevalstack_hcalout, Fun4AllReturnCodes::DISCARDEVENT, Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, PHG4Particle::get_e(), RawCluster::get_energy(), get_histo_prefix(), get_truth_particle(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), h2, and Fun4AllBase::Verbosity().
Referenced by process_event().
|
private |
Definition at line 251 of file QAG4SimulationEicCalorimeterSum.cc.
View newest version in sPHENIX GitHub at line 251 of file QAG4SimulationEicCalorimeterSum.cc
References _calo_name_cemc, _calo_name_hcalin, _calo_name_hcalout, _svtxevalstack, SvtxTrackEval::best_track_from(), SvtxTrack::CEMC, Fun4AllReturnCodes::DISCARDEVENT, Acts::UnitConstants::e, eval_trk_proj(), Fun4AllReturnCodes::EVENT_OK, SvtxTrack::get_cal_energy_3x3(), SvtxTrack::get_cal_energy_5x5(), PHG4Particle::get_e(), get_histo_prefix(), get_truth_particle(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), SvtxTrack::HCALIN, SvtxTrack::HCALOUT, and Fun4AllBase::Verbosity().
Referenced by process_event().
|
inline |
Definition at line 63 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 63 of file QAG4SimulationEicCalorimeterSum.h
References _flags.
|
inline |
Definition at line 79 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 79 of file QAG4SimulationEicCalorimeterSum.h
References _calo_name_cemc.
|
inline |
Definition at line 91 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 91 of file QAG4SimulationEicCalorimeterSum.h
References _calo_name_hcalin.
|
inline |
Definition at line 103 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 103 of file QAG4SimulationEicCalorimeterSum.h
References _calo_name_hcalout.
|
inline |
Definition at line 51 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 51 of file QAG4SimulationEicCalorimeterSum.h
References _flags.
|
inline |
Definition at line 45 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 45 of file QAG4SimulationEicCalorimeterSum.h
References _flags.
|
inline |
Definition at line 109 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 109 of file QAG4SimulationEicCalorimeterSum.h
References _magField.
|
inline |
Definition at line 111 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 111 of file QAG4SimulationEicCalorimeterSum.h
References m_TrackNodeName, and name.
Referenced by QAInit().
|
private |
Definition at line 133 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 133 of file QAG4SimulationEicCalorimeterSum.h
Referenced by get_calo_name_cemc(), Init(), Init_Cluster(), Init_TrackProj(), InitRun(), process_event_Cluster(), process_event_TrackProj(), and set_calo_name_cemc().
|
private |
Definition at line 134 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 134 of file QAG4SimulationEicCalorimeterSum.h
Referenced by get_calo_name_hcalin(), Init(), Init_Cluster(), Init_TrackProj(), InitRun(), process_event_Cluster(), process_event_TrackProj(), and set_calo_name_hcalin().
|
private |
Definition at line 135 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 135 of file QAG4SimulationEicCalorimeterSum.h
Referenced by get_calo_name_hcalout(), Init(), Init_Cluster(), Init_TrackProj(), InitRun(), process_event_Cluster(), process_event_TrackProj(), and set_calo_name_hcalout().
|
private |
Definition at line 125 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 125 of file QAG4SimulationEicCalorimeterSum.h
Referenced by InitRun(), process_event(), and process_event_Cluster().
|
private |
Definition at line 126 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 126 of file QAG4SimulationEicCalorimeterSum.h
Referenced by InitRun(), process_event(), and process_event_Cluster().
|
private |
Definition at line 127 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 127 of file QAG4SimulationEicCalorimeterSum.h
Referenced by InitRun(), process_event(), and process_event_Cluster().
|
private |
Definition at line 130 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 130 of file QAG4SimulationEicCalorimeterSum.h
Referenced by flag(), get_flags(), reset_flag(), set_flag(), and set_flags().
|
private |
central magnetic field strength in T
Definition at line 149 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 149 of file QAG4SimulationEicCalorimeterSum.h
Referenced by get_mag_field(), and set_mag_field().
|
private |
Definition at line 128 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 128 of file QAG4SimulationEicCalorimeterSum.h
Referenced by InitRun(), process_event(), and process_event_TrackProj().
|
private |
Definition at line 137 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 137 of file QAG4SimulationEicCalorimeterSum.h
Referenced by get_truth_particle(), and InitRun().
|
private |
Definition at line 132 of file QAG4SimulationEicCalorimeterSum.h.
View newest version in sPHENIX GitHub at line 132 of file QAG4SimulationEicCalorimeterSum.h
Referenced by InitRun(), and set_track_nodename().