ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CaloCalibEmc_Pi0.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CaloCalibEmc_Pi0.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef CALOCALIBEMC_PI0_H
4 #define CALOCALIBEMC_PI0_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 class TFile;
12 class TH1F;
13 class TH2F;
14 class TH3F;
15 class TH1;
16 class TTree;
17 class TString;
18 
20 {
21  public:
22 
23  CaloCalibEmc_Pi0(const std::string &name = "CaloCalibEmc_Pi0",const std::string &fnm = "outJF");
24 
25  virtual ~CaloCalibEmc_Pi0() {}
26 
32  int InitRun(PHCompositeNode *topNode) override;
33 
37  int process_event(PHCompositeNode *topNode) override;
38 
40  int End(PHCompositeNode *topNode) override;
41 
42  void Loop(TString _filename, int nevts);
43 
44  void FittingHistos();
45 
46 
47  private:
48  int _ievent;
49  TFile *cal_output;
50  std::string _caloname;
51  std::string _filename;
52 
53 
54  // histos lists
55  TH1 *cemc_hist_eta_phi[96][258];
56  TH1 *eta_hist[96]= {0};
57  TH2F *mass_eta;// = Null;
58  TH3F *mass_eta_phi;// = Null;
59 
61 
62  TTree * _eventTree;
63  // TTree variables
66  float _clusterIDs[10000]={0};
67  float _clusterEnergies[10000]={0};
68  float _clusterPts[10000]={0};
69  int _clusterEtas[10000]={0};
70  int _clusterPhis[10000]={0};
71 
72 
75 
76  int _maxTowerEtas[10000]={0};
77  int _maxTowerPhis[10000]={0};
78 
79  float alphaCut;
80 
81 
82 };
83 
84 #endif // CALOCALIBEMC_PI0_H