|
Geant4
9.6.p02
|
Go to the source code of this file.
Functions | |
| TFile | f1 ("./msc93.root") |
| h1 | SetTitle ("Energy deposited in 530 um of Si by 1 MeV e-") |
| h1 | GetXaxis () -> SetTitle("Ekine (MeV)") |
| h1 | GetYaxis () -> SetTitle("nb / MeV") |
| h1 | SetStats (kFALSE) |
| h1 | SetLineColor (1) |
| h1 | Draw ("HIST") |
| TFile | f2 ("./local.root") |
| h2 | SetLineColor (4) |
| h2 | Draw ("SAME HIST") |
| in | open ("530um.ascii") |
| while (1) | |
| in | close () |
| h3 | SetLineColor (2) |
| h3 | Draw ("SAME") |
| legend | AddEntry (h1,"Urban93","l") |
| legend | AddEntry (h2,"Urban95","l") |
| legend | AddEntry (h3,"Berger data","L") |
| legend | Draw () |
Variables | |
| TH1D * | h1 = (TH1D*) f1.Get("1") |
| TH1D * | h2 = (TH1D*) f2.Get("1") |
| ifstream | in |
| int | nbdata = 0 |
| float | x_min = 0.110 |
| float | x_max = 1.030 |
| TH1F * | h3 = new TH1F("h1f","",nbdata,x_min,x_max) |
| Float_t | x |
| Float_t | y |
| TLegend * | legend = new TLegend(0.6,0.6,0.8,0.8) |
| in close | ( | ) |
| h1 Draw | ( | "HIST" | ) |
| h2 Draw | ( | "SAME HIST" | ) |
| h3 Draw | ( | "SAME" | ) |
| legend Draw | ( | ) |
| TFile f1 | ( | "./msc93.root" | ) |
| TFile f2 | ( | "./local.root" | ) |
| in open | ( | "530um.ascii" | ) |
| h1 SetLineColor | ( | 1 | ) |
| h2 SetLineColor | ( | 4 | ) |
| h3 SetLineColor | ( | 2 | ) |
| h1 SetStats | ( | kFALSE | ) |
1.8.4