ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawDigitBuilderTTL.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawDigitBuilderTTL.h
1 #ifndef G4TTL__RAWDIGITBUILDERTTL_H
2 #define G4TTL__RAWDIGITBUILDERTTL_H
3 
4 // #include <calobase/RawTowerDefs.h>
5 
6 #include <Geant4/G4SystemOfUnits.hh>
7 #include <Geant4/G4Types.hh> // for G4double, G4int
8 
9 #include <fun4all/SubsysReco.h>
10 #include <trackbase/TrkrDefs.h>
11 #include <trackbase/TrkrCluster.h>
12 
13 #include <g4main/PHG4Hit.h>
15 // #include <trackbase/TrkrCluster.h>
16 #include <map>
17 #include <string>
18 #include <utility>
19 
20 class PHCompositeNode;
21 // class RawTowerContainer;
22 // class RawTowerGeomContainer;
23 // class TrkrHit;
24 // class TrkrHitSetContainer;
26 // class TrkrClusterHitAssoc;
27 // class TrkrClusterContainer;
28 
35 {
36  public:
37  RawDigitBuilderTTL(const std::string &name = "RawDigitBuilderTTL");
38  ~RawDigitBuilderTTL() override {}
39 
41  int Init(PHCompositeNode *topNode) override { return 0; }
42 
44  int InitRun(PHCompositeNode *topNode) override;
45 
47  int process_event(PHCompositeNode *topNode) override;
48 
50  int End(PHCompositeNode *topNode) override { return 0; }
51 
53  void SetZClustering(const bool make_z_clustering)
54  {
55  m_makeZClustering = make_z_clustering;
56  }
57  bool GetZClustering() const
58  {
59  return m_makeZClustering;
60  }
61 
64  void Detector(const std::string &d);
65 
69  // void EminCut(const double e) { m_Emin = e; }
70 
71 
72  private:
77  void CreateNodes(PHCompositeNode *topNode);
78  void PrintClusters(PHCompositeNode *topNode);
79  // void GetPixelGlobalCoordinates(PHG4Hit* g4hit, G4double &xpos, G4double &ypos, G4double &zpos);
80  // TrkrHitSetContainer *m_hits;
82 
83  // TrkrClusterHitAssoc *m_clusterhitassoc;
84 
88  // RawTowerContainer *m_Towers;
89  // RawTowerGeomContainer *m_Geoms;
90 
91  std::string m_Detector;
92  std::string m_SimTowerNodePrefix;
93 
94  // RawTowerDefs::CalorimeterId m_CaloId;
95 
96  double m_Emin;
97 
98  // settings
99  bool m_makeZClustering; // z_clustering_option
100  std::map<std::string, double> m_GlobalParameterMap;
101 };
102 
103 #endif