Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Pi0MassAnalysis.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Pi0MassAnalysis.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PI0MASSANALYSIS_H
4 #define PI0MASSANALYSIS_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 #include "TFile.h"
10 #include "TH1F.h"
11 #include "TTree.h"
12 
13 class PHCompositeNode;
14 
16 {
17  public:
18  Pi0MassAnalysis(const std::string &name = "Pi0MassAnalysis");
19 
20  ~Pi0MassAnalysis() override;
21 
27  int Init(PHCompositeNode *topNode) override;
28 
34  int InitRun(PHCompositeNode *topNode) override;
35 
39  int process_event(PHCompositeNode *topNode) override;
40 
42  int ResetEvent(PHCompositeNode *topNode) override;
43 
45  int EndRun(const int runnumber) override;
46 
48  int End(PHCompositeNode *topNode) override;
49 
51  int Reset(PHCompositeNode * /*topNode*/) override;
52 
53  void Print(const std::string &what = "ALL") const override;
54 
55  void SetMinClusterEnergy(float e = 0.15) { minClusterEnergy = e; }
57 
58  private:
60 
61  TFile *_f;
62  TTree *_tree;
63 
64  TH1F *pi0MassHist;
65  TH1F *pi0MassHistEtaDep[24];
66 
67  int counter;
68 
71 
72  int nclus;
73 
74  float cluster_energy[10000];
75  float cluster_eta[10000];
76  float cluster_phi[10000];
77  float cluster_prob[10000];
78  float cluster_chi2[10000];
79 
80  int npi0;
81 
82  float pi0cand_pt[100000];
83  float pi0cand_eta[100000];
84  float pi0cand_phi[100000];
85  float pi0cand_mass[100000];
86 };
87 
88 #endif // PI0MASSANALYSIS_H