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

#include <fun4all_coresoftware/blob/master/offline/QA/modules/QAG4SimulationMicromegas.h>

+ Inheritance diagram for QAG4SimulationMicromegas:
+ Collaboration diagram for QAG4SimulationMicromegas:

Public Member Functions

 QAG4SimulationMicromegas (const std::string &name="QAG4SimulationMicromegas")
 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_hits ()
 evaluate hits
 
void evaluate_clusters ()
 evaluate clusters
 
G4HitSet find_g4hits (TrkrDefs::cluskey) const
 

Private Attributes

bool m_initialized = false
 true if histograms are initialized
 
PHG4CylinderGeomContainerm_micromegas_geonode = nullptr
 micromegas geometry
 
ActsSurfaceMapsm_surfmaps = nullptr
 Acts surface maps for surface lookup.
 
ActsTrackingGeometrym_tGeometry = nullptr
 Acts tracking geometry for surface lookup.
 
TrkrClusterContainerm_cluster_map = nullptr
 cluster map
 
TrkrHitSetContainerm_hitsets = nullptr
 hitsets
 
TrkrClusterHitAssocm_cluster_hit_map = nullptr
 clusters to hit association
 
TrkrHitTruthAssocm_hit_truth_map = nullptr
 hit to g4hit association
 
PHG4HitContainerm_g4hits_micromegas = 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")
 

Detailed Description

Definition at line 24 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 24 of file QAG4SimulationMicromegas.h

Member Typedef Documentation

using QAG4SimulationMicromegas::G4HitSet = std::set<PHG4Hit*>
private

Definition at line 47 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 47 of file QAG4SimulationMicromegas.h

Constructor & Destructor Documentation

QAG4SimulationMicromegas::QAG4SimulationMicromegas ( const std::string &  name = "QAG4SimulationMicromegas")

constructor

Definition at line 115 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 115 of file QAG4SimulationMicromegas.cc

Member Function Documentation

void QAG4SimulationMicromegas::evaluate_clusters ( )
private

evaluate clusters

Definition at line 346 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 346 of file QAG4SimulationMicromegas.cc

References dz, find_g4hits(), get_histo_prefix(), TrkrClusterContainer::getClusters(), ActsTransformations::getGlobalPosition(), QAHistManagerDef::getHistoManager(), TrkrClusterHitAssoc::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), PHG4CylinderGeomContainer::GetLayerGeom(), MicromegasDefs::getSegmentationType(), MicromegasDefs::getTileId(), Acts::UnitConstants::h, eicpy.verify::histograms, G4TTL::layer, m_cluster_hit_map, m_cluster_map, m_hitsets, m_layers, m_micromegas_geonode, m_surfmaps, m_tGeometry, TrkrDefs::micromegasId, PHG4InttDefs::SEGMENTATION_PHI, PHG4InttDefs::SEGMENTATION_Z, and value.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void QAG4SimulationMicromegas::evaluate_hits ( )
private

evaluate hits

Definition at line 297 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 297 of file QAG4SimulationMicromegas.cc

References get_histo_prefix(), QAHistManagerDef::getHistoManager(), TrkrHitSet::getHits(), TrkrHitSetContainer::getHitSets(), TrkrDefs::getLayer(), Acts::UnitConstants::h, eicpy.verify::histograms, G4TTL::layer, m_hitsets, m_layers, TrkrDefs::micromegasId, and value.

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QAG4SimulationMicromegas::G4HitSet QAG4SimulationMicromegas::find_g4hits ( TrkrDefs::cluskey  cluster_key) const
private

Definition at line 483 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 483 of file QAG4SimulationMicromegas.cc

References PHG4HitContainer::findHit(), TrkrHitTruthAssoc::getG4Hits(), TrkrClusterHitAssoc::getHits(), TrkrDefs::getHitSetKeyFromClusKey(), TrkrDefs::getTrkrId(), m_cluster_hit_map, m_g4hits_micromegas, m_hit_truth_map, and TrkrDefs::micromegasId.

Referenced by evaluate_clusters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string QAG4SimulationMicromegas::get_histo_prefix ( ) const
private

common prefix for QA histograms

Definition at line 227 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 227 of file QAG4SimulationMicromegas.cc

References Fun4AllBase::Name().

Referenced by evaluate_clusters(), evaluate_hits(), and InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int QAG4SimulationMicromegas::InitRun ( PHCompositeNode )
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 121 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 121 of file QAG4SimulationMicromegas.cc

References Fun4AllReturnCodes::ABORTRUN, Fun4AllReturnCodes::EVENT_OK, get_histo_prefix(), QAHistManagerDef::getHistoManager(), Acts::UnitConstants::h, G4TTL::layer, m_initialized, m_layers, PHWHERE, PHG4InttDefs::SEGMENTATION_PHI, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int QAG4SimulationMicromegas::load_nodes ( PHCompositeNode topNode)
private

load nodes

Definition at line 233 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 233 of file QAG4SimulationMicromegas.cc

References Fun4AllReturnCodes::ABORTEVENT, Fun4AllReturnCodes::EVENT_OK, m_cluster_hit_map, m_cluster_map, m_g4hits_micromegas, m_hit_truth_map, m_hitsets, m_micromegas_geonode, m_surfmaps, m_tGeometry, and PHWHERE.

Referenced by process_event().

+ Here is the caller graph for this function:

int QAG4SimulationMicromegas::process_event ( PHCompositeNode )
overridevirtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

Definition at line 214 of file QAG4SimulationMicromegas.cc.

View newest version in sPHENIX GitHub at line 214 of file QAG4SimulationMicromegas.cc

References evaluate_clusters(), evaluate_hits(), Fun4AllReturnCodes::EVENT_OK, and load_nodes().

+ Here is the call graph for this function:

Member Data Documentation

TrkrClusterHitAssoc* QAG4SimulationMicromegas::m_cluster_hit_map = nullptr
private

clusters to hit association

Definition at line 69 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 69 of file QAG4SimulationMicromegas.h

Referenced by evaluate_clusters(), find_g4hits(), and load_nodes().

TrkrClusterContainer* QAG4SimulationMicromegas::m_cluster_map = nullptr
private

cluster map

Definition at line 63 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 63 of file QAG4SimulationMicromegas.h

Referenced by evaluate_clusters(), and load_nodes().

PHG4HitContainer* QAG4SimulationMicromegas::m_g4hits_micromegas = nullptr
private

g4 hits

Definition at line 75 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 75 of file QAG4SimulationMicromegas.h

Referenced by find_g4hits(), and load_nodes().

TrkrHitTruthAssoc* QAG4SimulationMicromegas::m_hit_truth_map = nullptr
private

hit to g4hit association

Definition at line 72 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 72 of file QAG4SimulationMicromegas.h

Referenced by find_g4hits(), and load_nodes().

TrkrHitSetContainer* QAG4SimulationMicromegas::m_hitsets = nullptr
private

hitsets

Definition at line 66 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 66 of file QAG4SimulationMicromegas.h

Referenced by evaluate_clusters(), evaluate_hits(), and load_nodes().

bool QAG4SimulationMicromegas::m_initialized = false
private

true if histograms are initialized

Definition at line 51 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 51 of file QAG4SimulationMicromegas.h

Referenced by InitRun().

std::set<int> QAG4SimulationMicromegas::m_layers
private

list of relevant layers

Definition at line 79 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 79 of file QAG4SimulationMicromegas.h

Referenced by evaluate_clusters(), evaluate_hits(), and InitRun().

PHG4CylinderGeomContainer* QAG4SimulationMicromegas::m_micromegas_geonode = nullptr
private

micromegas geometry

Definition at line 54 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 54 of file QAG4SimulationMicromegas.h

Referenced by evaluate_clusters(), and load_nodes().

ActsSurfaceMaps* QAG4SimulationMicromegas::m_surfmaps = nullptr
private

Acts surface maps for surface lookup.

Definition at line 57 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 57 of file QAG4SimulationMicromegas.h

Referenced by evaluate_clusters(), and load_nodes().

ActsTrackingGeometry* QAG4SimulationMicromegas::m_tGeometry = nullptr
private

Acts tracking geometry for surface lookup.

Definition at line 60 of file QAG4SimulationMicromegas.h.

View newest version in sPHENIX GitHub at line 60 of file QAG4SimulationMicromegas.h

Referenced by evaluate_clusters(), and load_nodes().


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