Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
egs.C File Reference

Go to the source code of this file.

Functions

TFile f1 ("./Ta.1000keV.msc93.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 (kBlack)
 
h1 Draw ("HIST")
 
TFile f2 ("./Ta.1000keV.local.root")
 
h2 SetLineColor (kBlue)
 
h2 Draw ("SAME HIST")
 
in open ("./EGSnrc/Ta_1000keV_EGSnrc.ascii")
 
 for (int i=0;i< nbdata;i++)
 
in close ()
 
legend AddEntry (h1,"Urban93 ","l")
 
legend AddEntry (h2,"Urban95 ","l")
 
legend AddEntry (pt,"EGSnrc","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.5,0.8,0.70)
 

Function Documentation

legend AddEntry ( h1  ,
"Urban93 "  ,
"l"   
)
legend AddEntry ( h2  ,
"Urban95 "  ,
"l"   
)
legend AddEntry ( pt  ,
"EGSnrc"  ,
"P"   
)
in close ( )
h1 Draw ( "HIST"  )
h3 Draw ( "SAME HIST"  )
legend Draw ( )
TFile f1 ( "./Ta.1000keV.msc93.root"  )
TFile f2 ( "./Ta.1000keV.local.root"  )
for ( )

Definition at line 33 of file egs.C.

h1 GetXaxis ( ) -> SetTitle("Edep (Mev.cm2/g) along x/r0 x/r0")
h1 GetYaxis ( ) -> SetTitle("MeV*cm2/g")
in open ( "./EGSnrc/Ta_1000keV_EGSnrc.ascii"  )
h1 SetLineColor ( kBlack  )
h2 SetLineColor ( kBlue  )
h3 SetStats ( kFALSE  )
h1 SetTitle ( "Depth dose distribution of 1000 keV e- in Ta"  )

Variable Documentation

TH1D* h1 = (TH1D*) f1.Get("8")

Definition at line 7 of file egs.C.

TH1D* h2 = (TH1D*) f2.Get("8")

Definition at line 16 of file egs.C.

ifstream in

Definition at line 25 of file egs.C.

TLegend* legend = new TLegend(0.6,0.5,0.8,0.70)

Definition at line 43 of file egs.C.

in nbdata = 0

Definition at line 31 of file egs.C.

TMarker* pt

Definition at line 28 of file egs.C.

Double_t x

Definition at line 29 of file egs.C.

Double_t y

Definition at line 29 of file egs.C.