ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4BlockCellReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4BlockCellReco.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4BLOCKCELLRECO_H
4 #define G4DETECTORS_PHG4BLOCKCELLRECO_H
5 
6 #include <phparameter/PHParameterContainerInterface.h>
7 
8 #include <fun4all/SubsysReco.h>
9 
10 #include <map>
11 #include <set>
12 #include <string>
13 #include <utility> // for pair
14 
15 class PHCompositeNode;
16 
18 {
19  public:
20  PHG4BlockCellReco(const std::string &name = "BLOCKRECO");
21 
22  ~PHG4BlockCellReco() override {}
23 
25  int InitRun(PHCompositeNode *topNode) override;
26 
28  int process_event(PHCompositeNode *topNode) override;
29 
30  int ResetEvent(PHCompositeNode *topNode) override;
31 
32  void SetDefaultParameters() override;
33 
34  void Detector(const std::string &d) { detector = d; }
35  void etaxsize(const int i, const double deltaeta, const double deltax);
36  void checkenergy(const int i = 1) { chkenergyconservation = i; }
37 
38  void set_timing_window(const int detid, const double tmin, const double tmax);
39 
40  protected:
41  void set_size(const int i, const double sizeA, const double sizeB, const int what);
42  int CheckEnergy(PHCompositeNode *topNode);
43 
45  std::map<int, int> binning;
46  std::map<int, std::pair<double, double> > cell_size; // cell size in x/z
47  std::map<int, std::pair<double, double> > zmin_max; // zmin/zmax for each layer for faster lookup
48  std::map<int, double> xstep;
49  std::map<int, double> etastep;
50  std::map<int, std::pair<double, double> > tmin_max;
51  std::set<int> implemented_detid;
52  std::string detector;
53  std::string hitnodename;
54  std::string cellnodename;
55  std::string geonodename;
56  std::string seggeonodename;
57  std::map<int, std::pair<int, int> > n_x_z_bins;
59 };
60 
61 #endif