Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Prototype2RawTowerBuilder.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Prototype2RawTowerBuilder.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4CALOPROTOTYPE_PROTOTYPE2RAWTOWERBUILDER_H
4 #define G4CALOPROTOTYPE_PROTOTYPE2RAWTOWERBUILDER_H
5 
6 #include <phparameter/PHParameterInterface.h>
7 
8 #include <fun4all/SubsysReco.h>
9 
10 #include <string>
11 
12 class PHCompositeNode;
13 
15 {
16  public:
17  Prototype2RawTowerBuilder(const std::string &name = "Prototype2RawTowerBuilder");
19  int InitRun(PHCompositeNode *topNode);
20  int process_event(PHCompositeNode *topNode);
21  void Print(const std::string &what = "ALL") const;
22 
23  void SetDefaultParameters();
24 
25  void Detector(const std::string &d) { m_Detector = d; }
26  void checkenergy(const int i = 1) { m_CheckEnergyConservationFlag = i; }
28  {
31 
34 
37  };
38 
40 
41  void set_tower_energy_src(const enu_tower_energy_src towerEnergySrc)
42  {
43  m_TowerEnergySrc = towerEnergySrc;
44  }
45 
47 
48  void set_sim_tower_node_prefix(const std::string &simTowerNodePrefix)
49  {
50  m_SimTowerNodePrefix = simTowerNodePrefix;
51  }
52 
53  short get_tower_row(const short cellrow) const;
54 
55  private:
57 
62 
63  double m_Emin;
67 };
68 
69 #endif // G4CALO_PROTOTYPE2RAWTOWERBUILDER_H