Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QAG4SimulationMicromegas.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file QAG4SimulationMicromegas.h
1 #ifndef QA_QAG4SIMULATIONMICROMEGAS_H
2 #define QA_QAG4SIMULATIONMICROMEGAS_H
3 
5 #include <trackbase/TrkrDefs.h>
6 
7 #include <fun4all/SubsysReco.h>
8 
9 #include <set>
10 #include <string>
11 
12 class ActsGeometry;
13 class PHCompositeNode;
15 class PHG4Hit;
16 class PHG4Particle;
17 class PHG4HitContainer;
21 class TrkrHitTruthAssoc;
23 class SvtxEvalStack;
24 
27 {
28  public:
30  QAG4SimulationMicromegas(const std::string& name = "QAG4SimulationMicromegas");
31 
32  int InitRun(PHCompositeNode* topNode) override;
33  int process_event(PHCompositeNode* topNode) override;
34 
35  private:
38  std::unique_ptr<SvtxEvalStack> m_svtxEvalStack;
41 
43  void evaluate_hits();
44 
46  void evaluate_clusters();
47 
48  // get geant hits associated to a cluster
49  using G4HitSet = std::set<PHG4Hit*>;
51 
53  bool m_initialized = false;
54 
57 
60 
63 
66 
69 
72 
75 
78  /* it is filled at Init stage. It should not change for the full run */
79  std::set<int> m_layers;
81 };
82 
83 #endif