11 in.open(
"./EGSnrc/10keV-DPK.ascii");
21 TH1D*
h1d =
new TH1D(
"h1d",
"",nbdata,x_min,x_max);
24 for (
int i = 0 ; i <
nbdata ; i++ ) {
26 if (!in.good())
break;
32 h1d->SetTitle(
"Dose point kernel : energy deposition profile, e- 10 keV");
33 h1d->GetXaxis()->SetTitle(
"d(E/E0)/d(r/r0) along r/r0 r/r0");
34 h1d->GetYaxis()->SetTitle(
"DPK");
35 h1d->SetStats(kFALSE);
36 h1d->SetLineColor(kRed);
41 TFile
f1(
"./10keV.opt3.root");
42 TH1D*
h1 = (TH1D*)
f1.Get(
"8");
43 h1->SetLineColor(kBlack);
44 h1->Draw(
"SAME HIST");
57 TLegend *
legend =
new TLegend(0.7,0.6,0.86,0.78);
58 legend->AddEntry(h1,
"opt3 ",
"l");
61 legend->AddEntry(h1d,
"EGSnrc",
"l");