함수 | |
TFile | f1 ("./opt3.root") |
h1 | SetTitle ("1 TeV muon in 3 m iron : kinetic energy at exit (GeV)") |
h1 | GetXaxis () -> SetTitle("Ekine (GeV)") |
h1 | GetYaxis () -> SetTitle("nb/GeV") |
h1 | SetStats (kFALSE) |
h1 | SetLineColor (kBlue) |
h1 | Draw ("HIST") |
in | open ("mars14.ascii") |
while (1) | |
in | close () |
h1f | SetLineColor (kRed) |
h1f | Draw ("SAME") |
legend | AddEntry (h1,"local (Urban90)","l") |
legend | AddEntry (h1f,"Mars14 simul ","L") |
legend | Draw () |
변수 | |
TH1D * | h1 = (TH1D*) f1.Get("10") |
ifstream | in |
int | nb_bins = 100 |
float | x_min = 950. |
float | x_max = 1000. |
TH1F * | h1f = new TH1F("h1f","",nb_bins,x_min,x_max) |
Float_t | x |
Float_t | y |
TLegend * | legend = new TLegend(0.2,0.55,0.45,0.70) |
in close | ( | ) |
h1 Draw | ( | "HIST" | ) |
h1f Draw | ( | "SAME" | ) |
legend Draw | ( | ) |
TFile f1 | ( | "./opt3.root" | ) |
in open | ( | "mars14.ascii" | ) |
h1 SetLineColor | ( | kBlue | ) |
h1f SetLineColor | ( | kRed | ) |
h1 SetStats | ( | kFALSE | ) |