ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4HcalCellReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4HcalCellReco.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4HCALCELLRECO_H
4 #define G4DETECTORS_PHG4HCALCELLRECO_H
5 
6 #include <phparameter/PHParameterInterface.h>
7 
8 #include <fun4all/SubsysReco.h>
9 
10 #include <cmath>
11 #include <string>
12 
13 class PHCompositeNode;
14 
16 {
17  public:
18  PHG4HcalCellReco(const std::string &name = "HcalCellReco");
19 
20  ~PHG4HcalCellReco() override {}
21 
23  int InitRun(PHCompositeNode *topNode) override;
24 
26  int process_event(PHCompositeNode *topNode) override;
27 
29  int End(PHCompositeNode *topNode) override;
30 
31  void SetDefaultParameters() override;
32 
33  void Detector(const std::string &d) { detector = d; }
34  void checkenergy(const int i = 1) { chkenergyconservation = i; }
35 
36  void set_timing_window(const double tmi, const double tma);
37 
38  void set_fixed_energy(const double efix) {m_FixedEnergy = efix;}
39 
40  protected:
41  int CheckEnergy(PHCompositeNode *topNode);
42  std::string detector;
43  std::string hitnodename;
44  std::string cellnodename;
45 
47 
48  double tmin = NAN;
49  double tmax = NAN;
50  double m_FixedEnergy = NAN;
51 };
52 
53 #endif