Analysis Software
Documentation for sPHENIX simulation 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 
12 #include <phparameter/PHParameters.h>
13 
14 #include <cmath>
15 #include <map>
16 #include <string>
17 
18 class PHCompositeNode;
19 
21 {
22  public:
23  PHG4CentralityReco(const std::string &name = "PHG4CentralityReco");
24  ~PHG4CentralityReco() override {}
25 
26  int InitRun(PHCompositeNode *topNode) override;
27  int process_event(PHCompositeNode *topNode) override;
28  int End(PHCompositeNode *topNode) override;
29 
30  void DoCentralityCalibration(bool do_centrality_calibration)
31  {
32  _do_centrality_calibration = do_centrality_calibration;
33  }
34 
36  {
38  }
39 
40  private:
41  void CreateNode(PHCompositeNode *topNode);
42  void FillNode(PHCompositeNode *topNode);
43 
45 
47 
48  std::map<float, int> _cent_cal_bimp;
49  std::map<float, int> _cent_cal_epd;
50  std::map<float, int> _cent_cal_mbd;
51 
52  float _bimp = NAN;
53  float _bimp_cent = NAN;
54 
55  float _epd_N = NAN;
56  float _epd_S = NAN;
57  float _epd_NS = NAN;
58  float _epd_cent = NAN;
59 
60  float _mbd_N = NAN;
61  float _mbd_S = NAN;
62  float _mbd_NS = NAN;
63  float _mbd_cent = NAN;
64 };
65 
66 #endif