ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RawClusterPositionCorrection.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RawClusterPositionCorrection.h
1 #ifndef CALORECO_RAWCLUSTERPOSITIONCORRECTION_H
2 #define CALORECO_RAWCLUSTERPOSITIONCORRECTION_H
3 
4 #include <fun4all/SubsysReco.h>
5 
6 #include <phparameter/PHParameters.h>
7 
8 #include <string>
9 #include <vector>
10 
11 class PHCompositeNode;
13 
15 {
16  public:
17  explicit RawClusterPositionCorrection(const std::string &name);
18 
19  int InitRun(PHCompositeNode *topNode) override;
20  int process_event(PHCompositeNode *topNode) override;
21  int End(PHCompositeNode *topNode) override;
22 
23  void CreateNodeTree(PHCompositeNode *topNode);
24 
26  {
27  return _eclus_calib_params;
28  }
30  {
31  return _eclus_calib_params;
32  }
34  {
35  return _ecore_calib_params;
36  }
38  {
39  return _ecore_calib_params;
40  }
41 
43  {
44  _eclus_calib_params = calib_params;
45  }
47  {
48  _ecore_calib_params = calib_params;
49  }
50 
51  private:
56 
57  std::string _det_name;
58 
59  int bins;
60  std::vector<float> binvals;
61  std::vector<std::vector<double> > eclus_calib_constants;
62  std::vector<std::vector<double> > ecore_calib_constants;
63 };
64 
65 #endif