ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/QA/modules/QAG4SimulationVertex.h>
Public Member Functions | |
QAG4SimulationVertex (const std::string &name="QAG4SimulationVertex") | |
virtual | ~QAG4SimulationVertex ()=default |
int | Init (PHCompositeNode *topNode) |
int | InitRun (PHCompositeNode *topNode) |
int | process_event (PHCompositeNode *topNode) |
std::string | get_histo_prefix () |
void | addEmbeddingID (int embeddingID) |
void | setTrackgMapName (const std::string &name) |
void | setVertexMapName (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 Member Functions | |
int | load_nodes (PHCompositeNode *) |
Private Attributes | |
PHG4TruthInfoContainer * | m_truthContainer = nullptr |
unsigned int | _nlayers_maps = 3 |
std::unique_ptr< SvtxEvalStack > | m_svtxEvalStack |
SvtxTrackMap * | m_trackMap = nullptr |
SvtxVertexMap * | m_vertexMap = nullptr |
PHG4TruthInfoContainer * | m_truthInfo = nullptr |
std::set< int > | m_embeddingIDs |
std::string | m_trackMapName = "SvtxTrackMap" |
std::string | m_vertexMapName = "SvtxVertexMap" |
Additional Inherited Members | |
Public Types inherited from Fun4AllBase | |
enum | enu_Verbosity { VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3, VERBOSITY_A_LOT = 4, VERBOSITY_MAX = INT_MAX - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 19 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 19 of file QAG4SimulationVertex.h
QAG4SimulationVertex::QAG4SimulationVertex | ( | const std::string & | name = "QAG4SimulationVertex" | ) |
Definition at line 38 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 38 of file QAG4SimulationVertex.cc
|
virtualdefault |
Definition at line 138 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 138 of file QAG4SimulationVertex.cc
References m_embeddingIDs.
std::string QAG4SimulationVertex::get_histo_prefix | ( | ) |
Definition at line 419 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 419 of file QAG4SimulationVertex.cc
References m_vertexMapName, and Fun4AllBase::Name().
Referenced by Init(), and process_event().
|
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 75 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 75 of file QAG4SimulationVertex.cc
References Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, and Fun4AllHistoManager::registerHisto().
|
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 43 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 43 of file QAG4SimulationVertex.cc
References Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, m_svtxEvalStack, m_trackMap, m_trackMapName, m_truthInfo, m_vertexMap, m_vertexMapName, and Fun4AllBase::Verbosity().
|
private |
Definition at line 405 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 405 of file QAG4SimulationVertex.cc
References Fun4AllReturnCodes::EVENT_OK, and m_truthContainer.
Referenced by process_event().
|
virtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 143 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 143 of file QAG4SimulationVertex.cc
References _nlayers_maps, SvtxClusterEval::all_clusters_from(), SvtxVertexMap::begin(), SvtxTrack::begin_cluster_keys(), SvtxVertex::begin_tracks(), SvtxVertexMap::end(), SvtxTrack::end_cluster_keys(), SvtxVertex::end_tracks(), Fun4AllReturnCodes::EVENT_OK, SvtxTrackMap::get(), get_histo_prefix(), PHG4VtxPoint::get_id(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4VtxPoint::get_t(), PHG4VtxPoint::get_x(), SvtxVertex::get_x(), PHG4VtxPoint::get_y(), SvtxVertex::get_y(), PHG4VtxPoint::get_z(), SvtxVertex::get_z(), Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), TrkrDefs::getLayer(), PHG4TruthInfoContainer::GetNumPrimaryVertexParticles(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetPrimaryVtxRange(), TrkrDefs::getTrkrId(), int(), TrkrDefs::inttId, PHG4TruthInfoContainer::isEmbededVtx(), G4TTL::layer, load_nodes(), m_svtxEvalStack, m_trackMap, m_truthInfo, m_vertexMap, SvtxVertexEval::max_truth_point_by_ntracks(), TrkrDefs::mvtxId, SvtxVertex::size_tracks(), TrkrDefs::tpcId, track, and Fun4AllBase::Verbosity().
|
inline |
Definition at line 34 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 34 of file QAG4SimulationVertex.h
References m_trackMapName.
|
inline |
Definition at line 35 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 35 of file QAG4SimulationVertex.h
References m_vertexMapName.
|
private |
Definition at line 42 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 42 of file QAG4SimulationVertex.h
Referenced by process_event().
|
private |
Definition at line 50 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 50 of file QAG4SimulationVertex.h
Referenced by addEmbeddingID().
|
private |
Definition at line 44 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 44 of file QAG4SimulationVertex.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 46 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 46 of file QAG4SimulationVertex.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 52 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 52 of file QAG4SimulationVertex.h
Referenced by InitRun(), and setTrackgMapName().
|
private |
Definition at line 40 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 40 of file QAG4SimulationVertex.h
Referenced by load_nodes().
|
private |
Definition at line 48 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 48 of file QAG4SimulationVertex.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 47 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 47 of file QAG4SimulationVertex.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 53 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 53 of file QAG4SimulationVertex.h
Referenced by get_histo_prefix(), InitRun(), and setVertexMapName().