11 in.open(
"./EGSnrc/100keV-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- 100 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(
"./100keV_local.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,
"local ",
"l");
61 legend->AddEntry(h1d,
"EGSnrc",
"l");
TFile f1("./100keV_local.root")