Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QAG4SimulationVertex Class Reference

#include <coresoftware/blob/master/offline/QA/modules/QAG4SimulationVertex.h>

+ Inheritance diagram for QAG4SimulationVertex:
+ Collaboration diagram for QAG4SimulationVertex:

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

PHG4TruthInfoContainerm_truthContainer = nullptr
 
unsigned int _nlayers_maps = 3
 
std::unique_ptr< SvtxEvalStackm_svtxEvalStack
 
int m_embed_id_cut = 0
 
bool m_checkembed = false
 
SvtxTrackMapm_trackMap = nullptr
 
SvtxVertexMapm_vertexMap = nullptr
 
PHG4TruthInfoContainerm_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")
 

Detailed Description

Definition at line 20 of file QAG4SimulationVertex.h.

View newest version in sPHENIX GitHub at line 20 of file QAG4SimulationVertex.h

Constructor & Destructor Documentation

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

virtual QAG4SimulationVertex::~QAG4SimulationVertex ( )
virtualdefault

Member Function Documentation

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.

void QAG4SimulationVertex::check_embed ( )
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.

void QAG4SimulationVertex::embed_id_cut ( const int  id)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int QAG4SimulationVertex::Init ( PHCompositeNode )
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().

+ Here is the call graph for this function:

int QAG4SimulationVertex::InitRun ( PHCompositeNode )
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().

+ Here is the call graph for this function:

int QAG4SimulationVertex::load_nodes ( PHCompositeNode topNode)
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().

+ Here is the caller graph for this function:

int QAG4SimulationVertex::process_event ( PHCompositeNode )
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.

+ Here is the call graph for this function:

void QAG4SimulationVertex::setTrackgMapName ( const std::string &  name)
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.

void QAG4SimulationVertex::setVertexMapName ( const std::string &  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().

+ Here is the caller graph for this function:

Member Data Documentation

unsigned int QAG4SimulationVertex::_nlayers_maps = 3
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().

bool QAG4SimulationVertex::m_checkembed = false
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().

int QAG4SimulationVertex::m_embed_id_cut = 0
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().

std::set<int> QAG4SimulationVertex::m_embeddingIDs
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().

std::unique_ptr<SvtxEvalStack> QAG4SimulationVertex::m_svtxEvalStack
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().

SvtxTrackMap* QAG4SimulationVertex::m_trackMap = nullptr
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().

std::string QAG4SimulationVertex::m_trackMapName = "SvtxTrackMap"
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().

PHG4TruthInfoContainer* QAG4SimulationVertex::m_truthContainer = nullptr
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().

PHG4TruthInfoContainer* QAG4SimulationVertex::m_truthInfo = nullptr
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().

SvtxVertexMap* QAG4SimulationVertex::m_vertexMap = nullptr
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().

std::string QAG4SimulationVertex::m_vertexMapName = "SvtxVertexMap"
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().


The documentation for this class was generated from the following files: