Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
blob
master
A_N
Ana
AndersonAnalysisModules
AntiSigma
BBCStudy
Calo_Validation_Package
Calo_waveform_sim
Calorimeter
CalorimeterEmbedding
CalorimeterJets
cdbEMCalExample
cemcRecoAna
Centrality_Validation_Package
dNdEta_Run2023
EIC-IR
EIC-SynRad
EICAnalysis
EICMCAnalysis
EICTrigger
ElectronID
EMCal-analysis
EMCal-calibration
EMCal-commissioning
EMCal-LEDs
EMCal-position-dependent-calibration
EMCal-QA
EMCal_pi0_Calib_2023
EMCTemplateFitting
EpFinder
Event-Display
EventMix
FilterEvents
FilterEventsUpsilon
Fluence
ForwardCalo
ForwardTracking
FrawleyTrackEvalMacros
hbcup
HCal-analysis
HCalCosmicCalib
HCalHotTowerFinder
HCalib
HcalSingleHadronCalib
HF-Jet
HF-Particle
isoCluster
IsolatedTrackAnalysis
JS-Jet
Calibrations
FastJetMedianBkg
src_JetMedianTree
macro
loc_lib
plot
CalcDecile_RhoFluct.cc
decile_RhoFluct.cc
dodecile_RhoFluct.C
doJES_Sub1rhoA.C
doMatchFakeMiss_Sub1rhoA.C
JES_Sub1rhoA.cc
MatchFakeMiss_Sub1rhoA.cc
RhoFluct.cc
RhoFluct.h
Sub1rhoA.h
Fun4All_JetRhoMedian.C
Fun4All_RhoFluct.C
make_inp_lists.py
JetRhoMedian.cc
JetRhoMedian.h
PrintTowers.cc
PrintTowers.h
RhoFluct.cc
RhoFluct.h
FullJetFinder
HCalJetPhiShift
jet-kinematics-mc
JetAnalysis
JetBkgdSub
JetMultSub
JetNconstituents
JetRTrack
JetSeedCount
JetUESize-v2Psi2Centrality
JetUnderlyingEvent
JetValidation
RandomConeAna
TracksInJets
TruthJetTagging
mbdAnalysis
MBDStudy
MultiDetectorMultiplicity
MvtxTelescope
mybuild
ParticleID
PHFlowJetMaker
PhotonConversion
PhotonJet
pi0ClusterAna
pi0Efficiency
Pi0MassAnalysis
Prototype2
Prototype3
Prototype4
psTOF
pythiaEMCalAna
pythiaInfo
QuarkoniaBG
quickHIJING
ResonanceJetTaggingOutputs
runTrackingDiagnostics
Shift_emcal_g4hits
SimpleTrackingAnalysis
singlePhotonClusterAna
sPhenixAj
SvtxSimPerformanceCheckReco
TemplateCreation
Test
TowerInfoExample
TPC
TPC-ClusterAnimation
TPC-GemGain
Tracking
TrackPid
TreeMaker
ZDC-CALIB
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Sub1rhoA.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Sub1rhoA.h
1
2
// This class has been automatically generated on
3
// Thu Oct 19 12:42:52 2023 by ROOT version 6.26/06
4
// from TTree T/JetRhoMedian Tree
5
// found on file: hadd_Sub1rhoA.root
7
8
#ifndef Sub1rhoA_h
9
#define Sub1rhoA_h
10
11
#include <TROOT.h>
12
#include <TChain.h>
13
#include <TFile.h>
14
15
// Header file for the classes stored in the TTree if any.
16
#include "vector"
17
18
class
Sub1rhoA
{
19
public
:
20
TTree *
fChain
;
21
Int_t
fCurrent
;
22
23
// Fixed size dimensions of array or collections stored in the TTree if any.
24
25
// Declaration of leaf types
26
Float_t
rho
;
27
Float_t
rho_sigma
;
28
Float_t
cent_mdb
;
29
Float_t
cent_epd
;
30
Float_t
impactparam
;
31
vector<float> *
TruthJetEta
;
32
vector<float> *
TruthJetPhi
;
33
vector<float> *
TruthJetPt
;
34
vector<float> *
sub1JetEta
;
35
vector<float> *
sub1JetPhi
;
36
vector<float> *
sub1JetPt
;
37
vector<float> *
rhoAJetEta
;
38
vector<float> *
rhoAJetPhi
;
39
vector<float> *
rhoAJetPt
;
40
vector<float> *
rhoAJetPtLessRhoA
;
41
vector<float> *
rhoAJetArea
;
42
43
// List of branches
44
TBranch *
b_rho
;
45
TBranch *
b_rho_sigma
;
46
TBranch *
b_cent_mdb
;
47
TBranch *
b_cent_epd
;
48
TBranch *
b_impactparam
;
49
TBranch *
b_TruthJetEta
;
50
TBranch *
b_TruthJetPhi
;
51
TBranch *
b_TruthJetPt
;
52
TBranch *
b_sub1JetEta
;
53
TBranch *
b_sub1JetPhi
;
54
TBranch *
b_sub1JetPt
;
55
TBranch *
b_rhoAJetEta
;
56
TBranch *
b_rhoAJetPhi
;
57
TBranch *
b_rhoAJetPt
;
58
TBranch *
b_rhoAJetPtLessRhoA
;
59
TBranch *
b_rhoAJetArea
;
60
61
Sub1rhoA
(TTree *
tree
=0);
62
virtual
~Sub1rhoA
();
63
virtual
Int_t
Cut
(Long64_t
entry
);
64
virtual
Int_t
GetEntry
(Long64_t
entry
);
65
virtual
Long64_t
LoadTree
(Long64_t
entry
);
66
virtual
void
Init
(TTree *
tree
);
67
virtual
void
Loop
(
string
inp=
""
);
68
virtual
Bool_t
Notify
();
69
virtual
void
Show
(Long64_t
entry
= -1);
70
};
71
72
#endif
73
74
#ifdef Sub1rhoA_cxx
75
Sub1rhoA::Sub1rhoA
(TTree *
tree
) :
fChain
(0)
76
{
77
// if parameter tree is not specified (or zero), connect the file
78
// used to generate this class and read the Tree.
79
if
(tree == 0) {
80
TFile *
f
= (TFile*)gROOT->GetListOfFiles()->FindObject(
"hadd_Sub1rhoA.root"
);
81
if
(!f || !f->IsOpen()) {
82
f =
new
TFile(
"hadd_Sub1rhoA.root"
);
83
}
84
f->GetObject(
"T"
,tree);
85
86
}
87
Init
(tree);
88
}
89
90
Sub1rhoA::~Sub1rhoA
()
91
{
92
if
(!
fChain
)
return
;
93
delete
fChain
->GetCurrentFile();
94
}
95
96
Int_t
Sub1rhoA::GetEntry
(Long64_t
entry
)
97
{
98
// Read contents of entry.
99
if
(!
fChain
)
return
0;
100
return
fChain
->GetEntry(entry);
101
}
102
Long64_t
Sub1rhoA::LoadTree
(Long64_t entry)
103
{
104
// Set the environment to read one entry
105
if
(!
fChain
)
return
-5;
106
Long64_t centry =
fChain
->LoadTree(entry);
107
if
(centry < 0)
return
centry;
108
if
(
fChain
->GetTreeNumber() !=
fCurrent
) {
109
fCurrent
=
fChain
->GetTreeNumber();
110
Notify
();
111
}
112
return
centry;
113
}
114
115
void
Sub1rhoA::Init
(TTree *tree)
116
{
117
// The Init() function is called when the selector needs to initialize
118
// a new tree or chain. Typically here the branch addresses and branch
119
// pointers of the tree will be set.
120
// It is normally not necessary to make changes to the generated
121
// code, but the routine can be extended by the user if needed.
122
// Init() will be called many times when running on PROOF
123
// (once per file to be processed).
124
125
// Set object pointer
126
TruthJetEta
= 0;
127
TruthJetPhi
= 0;
128
TruthJetPt
= 0;
129
sub1JetEta
= 0;
130
sub1JetPhi
= 0;
131
sub1JetPt
= 0;
132
rhoAJetEta
= 0;
133
rhoAJetPhi
= 0;
134
rhoAJetPt
= 0;
135
rhoAJetPtLessRhoA
= 0;
136
rhoAJetArea
= 0;
137
// Set branch addresses and branch pointers
138
if
(!tree)
return
;
139
fChain
=
tree
;
140
fCurrent
= -1;
141
fChain
->SetMakeClass(1);
142
143
fChain
->SetBranchAddress(
"rho"
, &
rho
, &
b_rho
);
144
fChain
->SetBranchAddress(
"rho_sigma"
, &
rho_sigma
, &
b_rho_sigma
);
145
fChain
->SetBranchAddress(
"cent_mdb"
, &
cent_mdb
, &
b_cent_mdb
);
146
fChain
->SetBranchAddress(
"cent_epd"
, &
cent_epd
, &
b_cent_epd
);
147
fChain
->SetBranchAddress(
"impactparam"
, &
impactparam
, &
b_impactparam
);
148
fChain
->SetBranchAddress(
"TruthJetEta"
, &
TruthJetEta
, &
b_TruthJetEta
);
149
fChain
->SetBranchAddress(
"TruthJetPhi"
, &
TruthJetPhi
, &
b_TruthJetPhi
);
150
fChain
->SetBranchAddress(
"TruthJetPt"
, &
TruthJetPt
, &
b_TruthJetPt
);
151
fChain
->SetBranchAddress(
"sub1JetEta"
, &
sub1JetEta
, &
b_sub1JetEta
);
152
fChain
->SetBranchAddress(
"sub1JetPhi"
, &
sub1JetPhi
, &
b_sub1JetPhi
);
153
fChain
->SetBranchAddress(
"sub1JetPt"
, &
sub1JetPt
, &
b_sub1JetPt
);
154
fChain
->SetBranchAddress(
"rhoAJetEta"
, &
rhoAJetEta
, &
b_rhoAJetEta
);
155
fChain
->SetBranchAddress(
"rhoAJetPhi"
, &
rhoAJetPhi
, &
b_rhoAJetPhi
);
156
fChain
->SetBranchAddress(
"rhoAJetPt"
, &
rhoAJetPt
, &
b_rhoAJetPt
);
157
fChain
->SetBranchAddress(
"rhoAJetPtLessRhoA"
, &
rhoAJetPtLessRhoA
, &
b_rhoAJetPtLessRhoA
);
158
fChain
->SetBranchAddress(
"rhoAJetArea"
, &
rhoAJetArea
, &
b_rhoAJetArea
);
159
Notify
();
160
}
161
162
Bool_t
Sub1rhoA::Notify
()
163
{
164
// The Notify() function is called when a new file is opened. This
165
// can be either for a new TTree in a TChain or when when a new TTree
166
// is started when using PROOF. It is normally not necessary to make changes
167
// to the generated code, but the routine can be extended by the
168
// user if needed. The return value is currently not used.
169
170
return
kTRUE;
171
}
172
173
void
Sub1rhoA::Show
(Long64_t entry)
174
{
175
// Print contents of entry.
176
// If entry is not specified, print current entry
177
if
(!
fChain
)
return
;
178
fChain
->Show(entry);
179
}
180
Int_t
Sub1rhoA::Cut
(Long64_t entry)
181
{
182
// This function may be called from Loop.
183
// returns 1 if entry is accepted.
184
// returns -1 otherwise.
185
return
1;
186
}
187
#endif // #ifdef Sub1rhoA_cxx
analysis
blob
master
JS-Jet
FastJetMedianBkg
src_JetMedianTree
macro
plot
Sub1rhoA.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:53
using
1.8.2 with
sPHENIX GitHub integration