ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CentralityReco.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4CentralityReco.h
1 #ifndef G4CENTRALITY_PHG4CENTRALITYRECO_H
2 #define G4CENTRALITY_PHG4CENTRALITYRECO_H
3 
4 //===========================================================
8 //===========================================================
9 
10 #include <fun4all/SubsysReco.h>
11 #include <phparameter/PHParameters.h>
12 
13 #include <cmath>
14 #include <string>
15 
16 class PHCompositeNode;
17 
19 {
20  public:
21  PHG4CentralityReco(const std::string &name = "PHG4CentralityReco");
22  ~PHG4CentralityReco() override {}
23 
24  int InitRun(PHCompositeNode *topNode) override;
25  int process_event(PHCompositeNode *topNode) override;
26  int End(PHCompositeNode *topNode) override;
27 
28  void DoCentralityCalibration(bool do_centrality_calibration ) {
29  _do_centrality_calibration = do_centrality_calibration;
30  }
31 
34  }
35 
36  private:
37  void CreateNode(PHCompositeNode *topNode);
38  void FillNode(PHCompositeNode *topNode);
39 
41 
43 
44  std::map<float,int> _cent_cal_bimp;
45  std::map<float,int> _cent_cal_epd;
46  std::map<float,int> _cent_cal_mbd;
47 
48  float _bimp = NAN;
49  float _bimp_cent = NAN;
50 
51  float _epd_N = NAN;
52  float _epd_S = NAN;
53  float _epd_NS = NAN;
54  float _epd_cent = NAN;
55 
56  float _mbd_N = NAN;
57  float _mbd_S = NAN;
58  float _mbd_NS = NAN;
59  float _mbd_cent = NAN;
60 };
61 
62 #endif