EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/offline/QA/modules/QAG4SimulationMvtx.h>
Public Member Functions | |
QAG4SimulationMvtx (const std::string &name="QAG4SimulationMvtx") | |
constructor | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
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 | Init (PHCompositeNode *) |
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 | |
using | G4HitSet = std::set< PHG4Hit * > |
Private Member Functions | |
std::string | get_histo_prefix () const |
common prefix for QA histograms | |
int | load_nodes (PHCompositeNode *) |
load nodes | |
void | evaluate_clusters () |
evaluate clusters | |
G4HitSet | find_g4hits (TrkrDefs::cluskey) const |
Private Attributes | |
bool | m_initialized = false |
true if histograms are initialized | |
TrkrClusterContainer * | m_cluster_map = nullptr |
cluster map | |
TrkrHitSetContainer * | m_hitsets = nullptr |
hitsets | |
TrkrClusterHitAssoc * | m_cluster_hit_map = nullptr |
clusters to hit association | |
TrkrHitTruthAssoc * | m_hit_truth_map = nullptr |
hit to g4hit association | |
ActsSurfaceMaps * | m_surfmaps = nullptr |
Acts surface maps for surface lookup. | |
ActsTrackingGeometry * | m_tGeometry = nullptr |
Acts tracking geometry for surface lookup. | |
PHG4HitContainer * | m_g4hits_mvtx = nullptr |
g4 hits | |
std::set< int > | m_layers |
list of relevant layers | |
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 23 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 23 of file QAG4SimulationMvtx.h
|
private |
Definition at line 43 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 43 of file QAG4SimulationMvtx.h
QAG4SimulationMvtx::QAG4SimulationMvtx | ( | const std::string & | name = "QAG4SimulationMvtx" | ) |
constructor
Definition at line 42 of file QAG4SimulationMvtx.cc.
View newest version in sPHENIX GitHub at line 42 of file QAG4SimulationMvtx.cc
|
private |
evaluate clusters
Definition at line 221 of file QAG4SimulationMvtx.cc.
View newest version in sPHENIX GitHub at line 221 of file QAG4SimulationMvtx.cc
References QAG4Util::delta_phi(), dz, find_g4hits(), get_histo_prefix(), QAG4Util::get_r(), TrkrClusterContainer::getClusters(), MvtxDefs::getCol(), ActsTransformations::getGlobalPosition(), QAHistManagerDef::getHistoManager(), TrkrClusterHitAssoc::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), MvtxDefs::getRow(), Acts::UnitConstants::h, eicpy.verify::histograms, G4TTL::layer, m_cluster_hit_map, m_cluster_map, m_hitsets, m_layers, m_surfmaps, m_tGeometry, TrkrDefs::mvtxId, phibins, and value.
Referenced by process_event().
|
private |
Definition at line 336 of file QAG4SimulationMvtx.cc.
View newest version in sPHENIX GitHub at line 336 of file QAG4SimulationMvtx.cc
References PHG4HitContainer::findHit(), TrkrHitTruthAssoc::getG4Hits(), TrkrClusterHitAssoc::getHits(), TrkrDefs::getHitSetKeyFromClusKey(), TrkrDefs::getTrkrId(), m_cluster_hit_map, m_g4hits_mvtx, m_hit_truth_map, and TrkrDefs::mvtxId.
Referenced by evaluate_clusters().
|
private |
common prefix for QA histograms
Definition at line 158 of file QAG4SimulationMvtx.cc.
View newest version in sPHENIX GitHub at line 158 of file QAG4SimulationMvtx.cc
References Fun4AllBase::Name().
Referenced by evaluate_clusters(), and InitRun().
|
overridevirtual |
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 48 of file QAG4SimulationMvtx.cc.
View newest version in sPHENIX GitHub at line 48 of file QAG4SimulationMvtx.cc
References Fun4AllReturnCodes::ABORTRUN, Acts::UnitConstants::e, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, G4TTL::layer, m_initialized, m_layers, PHWHERE, and Fun4AllBase::Verbosity().
|
private |
load nodes
Definition at line 164 of file QAG4SimulationMvtx.cc.
View newest version in sPHENIX GitHub at line 164 of file QAG4SimulationMvtx.cc
References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_cluster_hit_map, m_cluster_map, m_g4hits_mvtx, m_hit_truth_map, m_hitsets, m_surfmaps, m_tGeometry, and PHWHERE.
Referenced by process_event().
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 147 of file QAG4SimulationMvtx.cc.
View newest version in sPHENIX GitHub at line 147 of file QAG4SimulationMvtx.cc
References evaluate_clusters(), Fun4AllReturnCodes::EVENT_OK, and load_nodes().
|
private |
clusters to hit association
Definition at line 56 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 56 of file QAG4SimulationMvtx.h
Referenced by evaluate_clusters(), find_g4hits(), and load_nodes().
|
private |
cluster map
Definition at line 50 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 50 of file QAG4SimulationMvtx.h
Referenced by evaluate_clusters(), and load_nodes().
|
private |
g4 hits
Definition at line 68 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 68 of file QAG4SimulationMvtx.h
Referenced by find_g4hits(), and load_nodes().
|
private |
hit to g4hit association
Definition at line 59 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 59 of file QAG4SimulationMvtx.h
Referenced by find_g4hits(), and load_nodes().
|
private |
hitsets
Definition at line 53 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 53 of file QAG4SimulationMvtx.h
Referenced by evaluate_clusters(), and load_nodes().
|
private |
true if histograms are initialized
Definition at line 47 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 47 of file QAG4SimulationMvtx.h
Referenced by InitRun().
|
private |
list of relevant layers
Definition at line 72 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 72 of file QAG4SimulationMvtx.h
Referenced by evaluate_clusters(), and InitRun().
|
private |
Acts surface maps for surface lookup.
Definition at line 62 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 62 of file QAG4SimulationMvtx.h
Referenced by evaluate_clusters(), and load_nodes().
|
private |
Acts tracking geometry for surface lookup.
Definition at line 65 of file QAG4SimulationMvtx.h.
View newest version in sPHENIX GitHub at line 65 of file QAG4SimulationMvtx.h
Referenced by evaluate_clusters(), and load_nodes().