5 TFile
f1(
"./local.root");
6 TH1D*
h1 = (TH1D*)
f1.Get(
"10");
7 h1->SetTitle(
"1 TeV muon in 3 m iron : kinetic energy at exit (GeV)");
8 h1->GetXaxis()->SetTitle(
"Ekine (GeV)");
9 h1->GetYaxis()->SetTitle(
"nb/GeV");
11 h1->SetLineColor(kBlue);
28 in.open(
"mars14.ascii");
34 TH1F*
h1f =
new TH1F(
"h1f",
"",nb_bins,x_min,x_max);
39 if (!in.good())
break;
45 h1f->SetLineColor(kRed);
49 TLegend*
legend =
new TLegend(0.2,0.55,0.45,0.70);
50 legend->AddEntry(h1,
"local (Urban90)",
"l");
52 legend->AddEntry(h1f,
"Mars14 simul ",
"L");