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
AnaTutorial.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file AnaTutorial.h
1
#ifndef ANATUTORIAL_H__
2
#define ANATUTORIAL_H__
3
4
#include <
fun4all/SubsysReco.h
>
5
7
class
Fun4AllHistoManager
;
8
class
PHCompositeNode
;
9
class
TFile;
10
class
TTree;
11
class
TH1;
12
class
TH2;
13
class
PHCompositeNode
;
14
class
RawClusterContainer
;
15
class
RawCluster
;
16
class
SvtxTrackMap
;
17
class
JetMap
;
18
class
GlobalVertex
;
19
class
PHHepMCGenEventMap
;
20
class
JetEvalStack
;
21
class
JetRecoEval
;
22
class
SvtxTrackEval
;
23
class
PHG4TruthInfoContainer
;
24
class
PHHepMCGenEvent
;
25
class
CaloTriggerInfo
;
26
class
JetTruthEval
;
27
class
SvtxEvalStack
;
28
class
JetEvalStack
;
29
31
class
AnaTutorial
:
public
SubsysReco
32
{
33
public
:
35
AnaTutorial
(
const
std::string
&
name
=
"AnaTutorial"
,
36
const
std::string
&
fname
=
"AnaTutorial.root"
);
37
38
// Destructor
39
virtual
~AnaTutorial
();
40
42
int
Init
(
PHCompositeNode
*);
43
45
int
process_event
(
PHCompositeNode
*);
46
48
int
End
(
PHCompositeNode
*);
49
51
void
setMinJetPt
(
float
minjetpt) {
m_minjetpt
= minjetpt; }
52
54
void
setMinClusPt
(
float
mincluspt) {
m_mincluspt
= mincluspt; }
55
57
void
analyzeTracks
(
bool
analyzeTracks
) {
m_analyzeTracks
=
analyzeTracks
; }
58
void
analyzeClusters
(
bool
analyzeClusters
) {
m_analyzeClusters
=
analyzeClusters
; }
59
void
analyzeJets
(
bool
analyzeJets
) {
m_analyzeJets
=
analyzeJets
; }
60
void
analyzeTruth
(
bool
analyzeTruth
) {
m_analyzeTruth
=
analyzeTruth
; }
61
62
private
:
64
std::string
m_outfilename
;
65
67
Fun4AllHistoManager
*
m_hm
;
68
70
float
m_minjetpt
;
71
73
float
m_mincluspt
;
74
76
bool
m_analyzeTracks
;
77
79
bool
m_analyzeClusters
;
80
82
bool
m_analyzeJets
;
83
85
bool
m_analyzeTruth
;
86
88
TFile *
m_outfile
;
89
TTree *
m_clustertree
;
90
TTree *
m_tracktree
;
91
TTree *
m_hepmctree
;
92
TTree *
m_truthtree
;
93
TTree *
m_recojettree
;
94
TTree *
m_truthjettree
;
95
TH1 *
m_phi_h
;
96
TH2 *
m_eta_phi_h
;
97
98
SvtxEvalStack
*
m_svtxEvalStack
=
nullptr
;
99
JetEvalStack
*
m_jetEvalStack
=
nullptr
;
100
102
void
getTracks
(
PHCompositeNode
*topNode);
103
void
getTruthJets
(
PHCompositeNode
*topNode);
104
void
getReconstructedJets
(
PHCompositeNode
*topNode);
105
void
getEMCalClusters
(
PHCompositeNode
*topNode);
106
void
getHEPMCTruth
(
PHCompositeNode
*topNode);
107
void
getPHG4Truth
(
PHCompositeNode
*topNode);
108
109
void
initializeVariables
();
110
void
initializeTrees
();
111
116
117
int
m_partid1
;
118
int
m_partid2
;
119
double
m_x1
;
120
double
m_x2
;
121
int
m_mpi
;
122
int
m_process_id
;
123
double
m_truthenergy
;
124
double
m_trutheta
;
125
double
m_truthphi
;
126
double
m_truthpx
;
127
double
m_truthpy
;
128
double
m_truthpz
;
129
double
m_truthpt
;
130
double
m_truthp
;
131
int
m_numparticlesinevent
;
132
int
m_truthpid
;
133
135
double
m_tr_px
;
136
double
m_tr_py
;
137
double
m_tr_pz
;
138
double
m_tr_p
;
139
double
m_tr_pt
;
140
double
m_tr_phi
;
141
double
m_tr_eta
;
142
int
m_charge
;
143
double
m_chisq
;
144
int
m_ndf
;
145
double
m_dca
;
146
double
m_tr_x
;
147
double
m_tr_y
;
148
double
m_tr_z
;
149
int
m_truth_is_primary
;
150
double
m_truthtrackpx
;
151
double
m_truthtrackpy
;
152
double
m_truthtrackpz
;
153
double
m_truthtrackp
;
154
double
m_truthtracke
;
155
double
m_truthtrackpt
;
156
double
m_truthtrackphi
;
157
double
m_truthtracketa
;
158
int
m_truthtrackpid
;
159
161
double
m_recojetpt
;
162
int
m_recojetid
;
163
double
m_recojetpx
;
164
double
m_recojetpy
;
165
double
m_recojetpz
;
166
double
m_recojetphi
;
167
double
m_recojetp
;
168
double
m_recojetenergy
;
169
double
m_recojeteta
;
170
int
m_truthjetid
;
171
double
m_truthjetp
;
172
double
m_truthjetphi
;
173
double
m_truthjeteta
;
174
double
m_truthjetpt
;
175
double
m_truthjetenergy
;
176
double
m_truthjetpx
;
177
double
m_truthjetpy
;
178
double
m_truthjetpz
;
179
double
m_dR
;
180
182
double
m_clusenergy
;
183
double
m_cluseta
;
184
double
m_clustheta
;
185
double
m_cluspt
;
186
double
m_clusphi
;
187
double
m_cluspx
;
188
double
m_cluspy
;
189
double
m_cluspz
;
190
double
m_E_4x4
;
191
};
192
193
#endif
tutorials
blob
master
AnaTutorial
src
AnaTutorial.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:49
using
1.8.2 with
sPHENIX GitHub integration