Analysis Software
Documentation for sPHENIX simulation 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 
28  void SetDefaultParameters() override;
29 
30  void Detector(const std::string &d) { detector = d; }
31  void checkenergy(const int i = 1) { chkenergyconservation = i; }
32 
33  void set_timing_window(const double tmi, const double tma);
34 
35  void set_fixed_energy(const double efix) { m_FixedEnergy = efix; }
36 
37  protected:
38  int CheckEnergy(PHCompositeNode *topNode);
42 
44 
45  double tmin = NAN;
46  double tmax = NAN;
47  double m_DeltaT = NAN;
48  double m_FixedEnergy = NAN;
49 };
50 
51 #endif