Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Forward_pi0s.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Forward_pi0s.h
1 #ifndef __FORWARD_PI0S_H__
2 #define __FORWARD_PI0S_H__
3 
4 #include <fun4all/SubsysReco.h>
5 #include <vector>
6 
7 #include <TFile.h>
8 #include <TH1.h>
9 #include <TH2.h>
10 #include <TMath.h>
11 #include <TTree.h>
12 
13 class PHCompositeNode;
15 class RawCluster;
16 class SvtxTrackMap;
17 class JetMap;
18 class JetEvalStack;
19 class JetRecoEval;
20 class SvtxTrackEval;
22 class PHHepMCGenEvent;
23 class Forward_pi0s : public SubsysReco
24 {
25  public:
26  Forward_pi0s(const std::string &name = "pi0_eval.root");
29  float _etalow, _etahi;
32 
33  int Init(PHCompositeNode *);
35  int End(PHCompositeNode *);
36 
37  void set_cluspt_mincut(double pt) { mincluspt = pt; };
38  void SetFirstEventNum(int eventnum) { nevents = eventnum; };
39  void set_eta_lowhigh(float etalow, float etahi)
40  {
41  _etalow = etalow;
42  _etahi = etahi;
43  };
44  void useforwardarm(int yesorno) { _useforwardarm = yesorno;};
45 
46  private:
47  void Set_Tree_Branches();
48  void initialize_things();
49 
50  TFile *file;
51  TTree *tree;
52  TTree *cluster_tree;
54  TTree *inhcal_tree;
55  TTree *fcluster_tree;
56 
58 
59  int nevents;
60  TH1F *histo;
61 
62  //hcalcluster info
63  float hcal_energy;
64  float hcal_eta;
65  float hcal_phi;
66  float hcal_pt;
67  float hcal_px;
68  float hcal_py;
69  float hcal_pz;
70  float hcal_theta;
72 
73  //cluster info
74  float clus_energy;
75  float clus_eta;
76  float clus_phi;
77  float clus_pt;
78  float clus_px;
79  float clus_py;
80  float clus_pz;
81  float clus_energy2;
82  float clus_eta2;
83  float clus_phi2;
84  float clus_pt2;
85  float clus_px2;
86  float clus_py2;
87  float clus_pz2;
88  float clus_theta2;
89  float cent_invmass;
90  float clus_theta;
92 
93  float fclusenergy2;
94  float fclus_eta2;
95  float fclus_phi2;
96  float fclus_theta2;
97  float fclus_pt2;
98  float fclus_px2;
99  float fclus_py2;
100  float fclus_pz2;
101  float invmass;
102 
103  //all truth particles
105  float truthp;
106  float truthphi;
107  float trutheta;
108  float truthpt;
109  float truthenergy;
110  int truthpid;
113 
114  //clust truth variables
115  float clustruthpx;
116  float clustruthpy;
117  float clustruthpz;
119  float clustruthpt;
123 
124 
125 
134 
135  //forward clusters
136  float fclusenergy;
137  float fclus_eta;
138  float fclus_phi;
139  float fclus_theta;
140  float fclus_pt;
149  float fclus_px;
150  float fclus_py;
151  float fclus_pz;
152 
153  float tpi0e;
154  float tpi0px;
155  float tpi0py;
156  float tpi0pz;
157  float tpi0pid;
158  float tpi0pt;
159  float tpi0phi;
160  float tpi0eta;
161 
162  float tphote1;
163  float tphotpx1;
164  float tphotpy1;
165  float tphotpz1;
168  float tphotpt1;
169  float tphotphi1;
170  float tphoteta1;
171 
172  float tphote2;
173  float tphotpx2;
174  float tphotpy2;
175  float tphotpz2;
178  float tphotpt2;
179  float tphotphi2;
180  float tphoteta2;
181 
182  const float pi2 = -1.5707963;
183  const float threepi2 = 4.71238898;
184  const float pi = 3.1415926;
185 };
186 
187 #endif // __FORWARD_PI0S_H__