ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
B0RawTowerBuilderByHitIndex.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file B0RawTowerBuilderByHitIndex.h
1 #ifndef G4CALO__B0RAWTOWERBUILDERBYHITINDEX_H
2 #define G4CALO__B0RAWTOWERBUILDERBYHITINDEX_H
3 
4 #include <calobase/RawTowerDefs.h>
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <map>
9 #include <string>
10 
11 class PHCompositeNode;
12 class RawTowerContainer;
14 
21 {
22  public:
23  B0RawTowerBuilderByHitIndex(const std::string &name = "B0RawTowerBuilderByHitIndex");
25 
26  int InitRun(PHCompositeNode *topNode) override;
27 
28  int process_event(PHCompositeNode *topNode) override;
29 
30  int End(PHCompositeNode *topNode) override;
31 
34  void Detector(const std::string &d);
35 
38  void GeometryTableFile(const std::string &d)
39  {
41  }
42 
46  void EminCut(const double e) { m_Emin = e; }
47 
51  std::string
53  {
54  return m_SimTowerNodePrefix;
55  }
56 
60  void set_sim_tower_node_prefix(const std::string &simTowerNodePrefix)
61  {
62  m_SimTowerNodePrefix = simTowerNodePrefix;
63  }
64 
65  private:
70  void CreateNodes(PHCompositeNode *topNode);
71 
74  bool ReadGeometryFromTable();
75 
78  std::string m_Detector;
79  std::string m_SimTowerNodePrefix;
80 
81  std::string m_MappingTowerFile;
82 
84 
88 
89  double m_RotInX;
90  double m_RotInY;
91  double m_RotInZ;
92 
93  double m_Emin;
94 
95  std::map<std::string, double> m_GlobalParameterMap;
96 };
97 
98 #endif