Analysis Software
Documentation for sPHENIX simulation software
|
#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 | check_embed () |
void | embed_id_cut (const int id) |
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 |
int | m_embed_id_cut = 0 |
bool | m_checkembed = false |
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 = std::numeric_limits<int>::max() - 10 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 20 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 20 of file QAG4SimulationVertex.h
QAG4SimulationVertex::QAG4SimulationVertex | ( | const std::string & | name = "QAG4SimulationVertex" | ) |
Definition at line 40 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 40 of file QAG4SimulationVertex.cc
|
virtualdefault |
void QAG4SimulationVertex::addEmbeddingID | ( | int | embeddingID | ) |
Definition at line 140 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 140 of file QAG4SimulationVertex.cc
References m_embeddingIDs.
|
inline |
Definition at line 33 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 33 of file QAG4SimulationVertex.h
References m_checkembed.
|
inline |
Definition at line 34 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 34 of file QAG4SimulationVertex.h
References train_ambiguity_solver::id, and m_embed_id_cut.
std::string QAG4SimulationVertex::get_histo_prefix | ( | ) |
Definition at line 434 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 434 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 77 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 77 of file QAG4SimulationVertex.cc
References assert, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), h, i, 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 45 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 45 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 420 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 420 of file QAG4SimulationVertex.cc
References assert, 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 145 of file QAG4SimulationVertex.cc.
View newest version in sPHENIX GitHub at line 145 of file QAG4SimulationVertex.cc
References _nlayers_maps, SvtxClusterEval::all_clusters_from(), assert, SvtxVertexMap::begin(), TrackSeed::begin_cluster_keys(), SvtxVertex::begin_tracks(), SvtxVertexMap::end(), TrackSeed::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(), SvtxTrack::get_silicon_seed(), PHG4VtxPoint::get_t(), SvtxTrack::get_tpc_seed(), PHG4VtxPoint::get_x(), SvtxVertex::get_x(), PHG4VtxPoint::get_y(), SvtxVertex::get_y(), PHG4VtxPoint::get_z(), SvtxVertex::get_z(), geta, Fun4AllHistoManager::getHisto(), QAHistManagerDef::getHistoManager(), TrkrDefs::getLayer(), PHG4TruthInfoContainer::GetNumPrimaryVertexParticles(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), PHG4TruthInfoContainer::GetPrimaryVtxRange(), TrkrDefs::getTrkrId(), gpx, gpy, gpz, gvt, i, TrkrDefs::inttId, PHG4TruthInfoContainer::isEmbededVtx(), layer, load_nodes(), m_checkembed, m_embed_id_cut, m_svtxEvalStack, m_trackMap, m_truthInfo, m_vertexMap, SvtxVertexEval::max_truth_point_by_ntracks(), TrkrDefs::mvtxId, ntracks, SvtxVertex::size_tracks(), TrkrDefs::tpcId, Fun4AllBase::Verbosity(), vx, vy, and vz.
|
inline |
Definition at line 37 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 37 of file QAG4SimulationVertex.h
References m_trackMapName, and perf_headwind::name.
|
inline |
Definition at line 38 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 38 of file QAG4SimulationVertex.h
References m_vertexMapName, and perf_headwind::name.
Referenced by Tracking_QA().
|
private |
Definition at line 45 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 45 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 check_embed(), and process_event().
|
private |
Definition at line 49 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 49 of file QAG4SimulationVertex.h
Referenced by embed_id_cut(), and process_event().
|
private |
Definition at line 56 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 56 of file QAG4SimulationVertex.h
Referenced by addEmbeddingID().
|
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 52 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 52 of file QAG4SimulationVertex.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 58 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 58 of file QAG4SimulationVertex.h
Referenced by InitRun(), and setTrackgMapName().
|
private |
Definition at line 43 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 43 of file QAG4SimulationVertex.h
Referenced by load_nodes().
|
private |
Definition at line 54 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 54 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 InitRun(), and process_event().
|
private |
Definition at line 59 of file QAG4SimulationVertex.h.
View newest version in sPHENIX GitHub at line 59 of file QAG4SimulationVertex.h
Referenced by get_histo_prefix(), InitRun(), and setVertexMapName().