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
CalcDecile_RhoFluct.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file CalcDecile_RhoFluct.cc
1
root
-l hadd_RhoFluct.root <<EOF
2
3
TH1D* hparamt =
new
TH1D(
"hparamt"
,
";impactparam;N_{events}"
, 10000, 0.,22);
4
TH1D* gross =
new
TH1D(
"gross"
,
";impact param [fm];N_{events}"
, 100, 0.,22);
5
double
x
[11];
6
double
* q =
new
double
[11];
7
for
(
int
i
=0;
i
<11;++
i
) {
8
x
[
i
] = .1*
i
;
9
}
10
11
T
->Draw(
"impactparam>>hparamt"
);
12
hparamt->GetQuantiles(11,q,
x
);
13
for
(
int
i
=0;
i
<11;++
i
) {
14
cout <<
" i("
<<
i
<<
") x("
<<
x
[
i
]<<
") q("
<<q[
i
]<<
")"
<<endl;
15
}
16
17
T
->Draw(
"impactparam>>gross"
);
18
TCanvas*
c
=
new
TCanvas(
"c"
,
"c"
);
19
hparamt->Draw(
"PE"
);
20
/* c->WaitPrimitive(); */
21
TFile *
fout
=
new
TFile(
"CalcDecile_RhoFluct.root"
,
"recreate"
);
22
TH1D*
keep
= (TH1D*) gross->Clone(
"h_impactparam"
);
23
TH1D*
bounds
=
new
TH1D(
"bound"
,
";[fm];"
, 10, q);
24
keep->Write();
25
bounds->Write();
26
fout->Close();
27
28
29
EOF
analysis
blob
master
JS-Jet
FastJetMedianBkg
src_JetMedianTree
macro
plot
CalcDecile_RhoFluct.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:53
using
1.8.2 with
sPHENIX GitHub integration