ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
advanced
basic
extended
analysis
biasing
common
electromagnetic
errorpropagation
eventgenerator
exoticphysics
field
g3tog4
geometry
hadronic
FissionFragment
Hadr00
include
scripts
AddMC.C
Plot.C
PlotSingle.C
Style.C
src
Hadr00.cc
Hadr01
Hadr02
Hadr03
Hadr04
Hadr06
Hadr07
Hadr08
NeutronSource
medical
optical
parallel
parameterisations
persistency
physicslists
polarisation
radioactivedecay
runAndEvent
visualization
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PlotSingle.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PlotSingle.C
1
{
2
3
c1
=
new
TCanvas(
"c1"
,
" "
,0.5, 5, 800, 600);
4
5
gtit
=
hed
[
ixs
] +
" Cross Section for "
+
part
[
ipart
];
6
hh
[
ixs
] = gPad->DrawFrame(
x1
[
ixs
],
y1
[ixs],
x2
[ixs],
y2
[ixs],
gtit
);
7
hh
[
ixs
]->GetYaxis()->SetTitle(
axtit
[1]);
8
gPad->SetLogy();
9
if
(ixs==0 || ixs==2)
hh
[
ixs
]->GetXaxis()->SetTitle(
axtit
[2]);
10
else
hh
[
ixs
]->GetXaxis()->SetTitle(
axtit
[0]);
11
12
leg
[
ixs
] =
new
TLegend(0.9, 0.6, 1.1, 0.9);
13
14
for
(
itarg
=0;
itarg
<
ntarg
;
itarg
++) {
15
gROOT->ProcessLine(
".x $G4INSTALL/examples/extended/hadronic/Hadr00/scripts/AddMC.C"
);
16
cout <<
"Target# "
<<
itarg
<<
" max# "
<< ntarg << endl;
17
}
18
cout <<
"Loop is completed ixs= "
<< ixs << endl;
19
leg
[
ixs
]->Draw(
"SAME"
);
20
cout <<
"Legend is done "
<< endl;
21
c1
->Update();
22
c1
->Print(
"a"
+
filp
[
ipart
] +
fil0
[ixs] +
".gif"
);
23
}
geant4
tree
geant4-10.6-release
examples
extended
hadronic
Hadr00
scripts
PlotSingle.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:05
using
1.8.2 with
ECCE GitHub integration