5 TFile
f(
"./93ref0.root");
6 TH1D*
h1d = (TH1D*)
f.Get(
"6");
7 h1d->SetTitle(
"30 GeV e- on 20 X0 Fe : cumul longit energy dep");
8 h1d->GetXaxis()->SetTitle(
"depth (X0)");
9 h1d->GetYaxis()->SetTitle(
"100 Edep/E0");
10 h1d->SetStats(kFALSE);
21 TH1F*
h1f =
new TH1F(
"h1f",
"",nb_bins,x_min,x_max);
26 if (!in.good())
break;
36 TLegend *
legend =
new TLegend(0.65,0.55,0.85,0.68);
37 legend->AddEntry(h1d,
"93ref0",
"l");
38 legend->AddEntry(h1f,
"EGS4",
"L");