Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
;
14
class
RawClusterContainer
;
15
class
RawCluster
;
16
class
SvtxTrackMap
;
17
class
JetMap
;
18
class
JetEvalStack
;
19
class
JetRecoEval
;
20
class
SvtxTrackEval
;
21
class
PHG4TruthInfoContainer
;
22
class
PHHepMCGenEvent
;
23
class
Forward_pi0s
:
public
SubsysReco
24
{
25
public
:
26
Forward_pi0s
(
const
std::string
&
name
=
"pi0_eval.root"
);
27
double
isoconeradius
,
mincluspt
;
28
float
jet_cone_size
;
29
float
_etalow
,
_etahi
;
30
int
_useforwardarm
;
31
int
use_isocone
;
32
33
int
Init
(
PHCompositeNode
*);
34
int
process_event
(
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
;
53
TTree *
truth_g4particles
;
54
TTree *
inhcal_tree
;
55
TTree *
fcluster_tree
;
56
57
std::string
outfilename
;
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
;
71
float
hcal_x
,
hcal_y
,
hcal_z
,
hcal_t
;
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
;
91
float
clus_x
,
clus_y
,
clus_z
,
clus_t
;
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
104
float
truthpx
,
truthpy
,
truthpz
;
105
float
truthp
;
106
float
truthphi
;
107
float
trutheta
;
108
float
truthpt
;
109
float
truthenergy
;
110
int
truthpid
;
111
int
numparticlesinevent
;
112
int
process_id
;
113
114
//clust truth variables
115
float
clustruthpx
;
116
float
clustruthpy
;
117
float
clustruthpz
;
118
float
clustruthenergy
;
119
float
clustruthpt
;
120
float
clustruthphi
;
121
float
clustrutheta
;
122
int
clustruthpid
;
123
124
125
126
float
hclustruthpx
;
127
float
hclustruthpy
;
128
float
hclustruthpz
;
129
float
hclustruthenergy
;
130
float
hclustruthpt
;
131
float
hclustruthphi
;
132
float
hclustrutheta
;
133
int
hclustruthpid
;
134
135
//forward clusters
136
float
fclusenergy
;
137
float
fclus_eta
;
138
float
fclus_phi
;
139
float
fclus_theta
;
140
float
fclus_pt
;
141
int
fclustruthpid
;
142
float
fclustruthpx
;
143
float
fclustruthpy
;
144
float
fclustruthpz
;
145
float
fclustruthenergy
;
146
float
fclustruthpt
;
147
float
fclustruthphi
;
148
float
fclustrutheta
;
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
;
166
int
tphotpid1
;
167
int
tphotparentid1
;
168
float
tphotpt1
;
169
float
tphotphi1
;
170
float
tphoteta1
;
171
172
float
tphote2
;
173
float
tphotpx2
;
174
float
tphotpy2
;
175
float
tphotpz2
;
176
int
tphotpid2
;
177
int
tphotparentid2
;
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__
analysis
blob
master
PhotonJet
Photons
Forward_pi0s.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:55
using
1.8.2 with
sPHENIX GitHub integration