EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QAG4SimulationVertex Class Reference

#include <fun4all_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 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
 
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 = INT_MAX - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 19 of file QAG4SimulationVertex.h.

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

Constructor & Destructor Documentation

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

virtual QAG4SimulationVertex::~QAG4SimulationVertex ( )
virtualdefault

Member Function Documentation

void QAG4SimulationVertex::addEmbeddingID ( int  embeddingID)

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().

+ 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 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().

+ 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 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().

+ Here is the call graph for this function:

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

+ Here is the caller graph for this function:

int QAG4SimulationVertex::process_event ( PHCompositeNode )
virtual
void QAG4SimulationVertex::setTrackgMapName ( const std::string &  name)
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, and name.

void QAG4SimulationVertex::setVertexMapName ( const std::string &  name)
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, and 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 42 of file QAG4SimulationVertex.h.

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

Referenced by process_event().

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

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

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

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

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

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

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

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


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