Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4FullProjSpacalCellReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4FullProjSpacalCellReco.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4FULLPROJSPACALCELLRECO_H
4 #define G4DETECTORS_PHG4FULLPROJSPACALCELLRECO_H
5 
6 #include "LightCollectionModel.h"
7 
8 #include <phparameter/PHParameterInterface.h>
9 
10 #include <fun4all/SubsysReco.h>
11 
12 #include <cmath>
13 #include <map>
14 #include <string>
15 
17 class PHCompositeNode;
18 class PHG4Cell;
19 class TH2;
20 class TH1;
21 
23 {
24  public:
25  PHG4FullProjSpacalCellReco(const std::string &name = "SPACALCELLRECO");
26 
28 
30  int InitRun(PHCompositeNode *topNode) override;
31 
33  int process_event(PHCompositeNode *topNode) override;
34 
36  int ResetEvent(PHCompositeNode *topNode) override;
37 
38  void SetDefaultParameters() override;
39 
40  void Detector(const std::string &d) { detector = d; }
41 
42  void checkenergy(const int i = 1) { chkenergyconservation = i; }
43 
44  void set_timing_window(const double tmin, const double tmax);
45 
46 
48 
49  protected:
50  int CheckEnergy(PHCompositeNode *topNode);
51 
57 
58  double sum_energy_g4hit = 0;
60  std::map<unsigned int, PHG4Cell *> celllist;
61 
63  double tmin = NAN;
64  double tmax = NAN;
65  double m_DeltaT = NAN;
67 };
68 
69 #endif