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

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)
 

Function Documentation

legend AddEntry ( h1  ,
"Urban93"  ,
"l"   
)
legend AddEntry ( h2  ,
"Urban95"  ,
"l"   
)
legend AddEntry ( h3  ,
"Berger data ,
"L"   
)
in close ( )
h1 Draw ( "HIST"  )
h2 Draw ( "SAME HIST"  )
h3 Draw ( "SAME"  )
legend Draw ( )
TFile f1 ( "./msc93.root"  )
TFile f2 ( "./local.root"  )
h1 GetXaxis ( ) -> SetTitle("Ekine (MeV)")
h1 GetYaxis ( ) -> SetTitle("nb / MeV")
in open ( "530um.ascii"  )
h1 SetLineColor ( )
h2 SetLineColor ( )
h3 SetLineColor ( )
h1 SetStats ( kFALSE  )
h1 SetTitle ( "Energy deposited in 530 um of Si by 1 MeV e-"  )
while ( )

Definition at line 39 of file berger.C.

Variable Documentation

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

Definition at line 6 of file berger.C.

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

Definition at line 15 of file berger.C.

TH1F* h3 = new TH1F("h1f","",nbdata,x_min,x_max)

Definition at line 36 of file berger.C.

ifstream in

Definition at line 26 of file berger.C.

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

Definition at line 51 of file berger.C.

in nbdata = 0

Definition at line 30 of file berger.C.

Float_t x

Definition at line 38 of file berger.C.

float x_max = 1.030

Definition at line 35 of file berger.C.

float x_min = 0.110

Definition at line 34 of file berger.C.

Float_t y

Definition at line 38 of file berger.C.