8 TFile
f1(
"./Ta_1000keV_opt3.root");
9 TH1D*
h1 = (TH1D*)
f1.Get(
"8");
10 h1->SetTitle(
"Depth dose distribution of 1000 keV e- in Ta");
11 h1->GetXaxis()->SetTitle(
"Edep (Mev.cm2/g) along x/r0 x/r0");
12 h1->GetYaxis()->SetTitle(
"MeV*cm2/g");
14 h1->SetLineColor(kBlack);
23 in.open(
"./EGSnrc/Ta_1000keV_EGSnrc.ascii");
30 for (
int i = 0 ; i <
nbdata ; i++ ) {
32 if (!in.good())
break;
33 pt =
new TMarker(x,y,22);
34 pt->SetMarkerColor(kRed);
40 TLegend*
legend =
new TLegend(0.6,0.5,0.8,0.70);
41 legend->AddEntry(h1,
"ref10 ",
"l");
42 legend->AddEntry(pt,
"EGSnrc",
"P");