5 TFile
f1(
"./msc93.root");
6 TH1D*
h1 = (TH1D*)
f1.Get(
"1");
7 h1->SetTitle(
"Energy deposited in 530 um of Si by 1 MeV e-");
8 h1->GetXaxis()->SetTitle(
"Ekine (MeV)");
9 h1->GetYaxis()->SetTitle(
"nb / MeV");
14 TFile
f2(
"./local.root");
15 TH1D*
h2 = (TH1D*)
f2.Get(
"1");
18 h2->Draw(
"SAME HIST");
27 in.open(
"530um.ascii");
36 TH1F*
h3 =
new TH1F(
"h1f",
"",nbdata,x_min,x_max);
41 if (!in.good())
break;
51 TLegend *
legend =
new TLegend(0.6,0.6,0.8,0.8);
52 legend->AddEntry(h1,
"Urban93",
"l");
53 legend->AddEntry(h2,
"Urban95",
"l");
54 legend->AddEntry(h3,
"Berger data",
"L");