Geant4_10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
source
examples
extended
hadronic
Hadr00
scripts
PlotSingle.C
Go to the documentation of this file.
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
}
y2
Double_t y2[nxs]
Definition:
Style.C:21
hh
hh[ixs]
Definition:
PlotSingle.C:6
y1
Double_t y1[nxs]
Definition:
Style.C:20
x2
Double_t x2[nxs]
Definition:
Style.C:19
ixs
Int_t ixs
Definition:
Style.C:12
ntarg
Int_t ntarg
Definition:
Style.C:6
ipart
Int_t ipart
Definition:
Style.C:10
axtit
TString axtit[3]
Definition:
Style.C:14
filp
TString filp[npart]
Definition:
Style.C:31
c1
TCanvas * c1
Definition:
plotHisto.C:7
gtit
gtit
Definition:
PlotSingle.C:5
part
TString part[npart]
Definition:
Style.C:32
x1
Double_t x1[nxs]
Definition:
Style.C:18
fil0
TString fil0[nxs]
Definition:
Style.C:17
itarg
Int_t itarg
Definition:
Style.C:11
leg
leg
Definition:
comparison.C:61
hed
TString hed[nxs]
Definition:
Style.C:16
Generated on Sat Dec 14 2013 14:33:14 for Geant4_10 by
1.8.5