|
Geant4
9.6.p02
|
Go to the source code of this file.
Functions | |
| TFile | f1 ("./Ta.1000keV.opt0.root") |
| h1 | SetTitle ("Depth dose distribution of 1000 keV e- in Ta") |
| h1 | GetXaxis () -> SetTitle("Edep (Mev.cm2/g) along x/r0 x/r0") |
| h1 | GetYaxis () -> SetTitle("MeV*cm2/g") |
| h1 | SetStats (kFALSE) |
| h1 | SetLineColor (4) |
| h1 | Draw ("HIST") |
| TFile | f2 ("./Ta.1000keV.opt2.root") |
| h2 | SetLineColor (3) |
| h2 | Draw ("SAME HIST") |
| in | open ("./data/Ta_1000keV.ascii") |
| for (int i=0;i< nbdata;i++) | |
| in | close () |
| legend | AddEntry (h1,"ref10-opt0 ","l") |
| legend | AddEntry (h2,"ref10-opt2 ","l") |
| legend | AddEntry (pt,"Sandia data","P") |
| legend | Draw () |
Variables | |
| TH1D * | h1 = (TH1D*) f1.Get("8") |
| TH1D * | h2 = (TH1D*) f2.Get("8") |
| ifstream | in |
| TMarker * | pt |
| Double_t | x |
| Double_t | y |
| int | nbdata = 0 |
| TLegend * | legend = new TLegend(0.6,0.55,0.8,0.68) |
| in close | ( | ) |
| h1 Draw | ( | "HIST" | ) |
| h2 Draw | ( | "SAME HIST" | ) |
| legend Draw | ( | ) |
| TFile f1 | ( | "./Ta.1000keV.opt0.root" | ) |
| TFile f2 | ( | "./Ta.1000keV.opt2.root" | ) |
| in open | ( | "./data/Ta_1000keV.ascii" | ) |
| h1 SetLineColor | ( | 4 | ) |
| h2 SetLineColor | ( | 3 | ) |
| h1 SetStats | ( | kFALSE | ) |
1.8.4