ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sum.C File Reference

Go to the source code of this file.

Functions

TFile f ("./93ref0.root")
 
h1d SetTitle ("30 GeV e- on 20 X0 Fe : cumul longit energy dep")
 
h1d GetXaxis () -> SetTitle("depth (X0)")
 
h1d GetYaxis () -> SetTitle("100 Edep/E0")
 
h1d SetStats (kFALSE)
 
h1d Draw ("HIST")
 
in open ("sum.ascii")
 
 while (1)
 
in close ()
 
h1f SetLineColor (2)
 
h1f Draw ("SAME")
 
legend AddEntry (h1d,"93ref0","l")
 
legend AddEntry (h1f,"EGS4","L")
 
legend Draw ()
 

Variables

TH1D * h1d = (TH1D*) f.Get("6")
 
ifstream in
 
int nb_bins = 40
 
float x_min = 0.25
 
float x_max = 20.25
 
TH1F * h1f = new TH1F("h1f","",nb_bins,x_min,x_max)
 
Float_t x
 
Float_t y
 
TLegend * legend = new TLegend(0.65,0.55,0.85,0.68)
 

Function Documentation

legend AddEntry ( h1d  ,
"93ref0"  ,
"l"   
)
legend AddEntry ( h1f  ,
"EGS4"  ,
"L"   
)
in close ( )
h1d Draw ( "HIST"  )
h1f Draw ( "SAME"  )
legend Draw ( )
TFile f ( "./93ref0.root"  )
h1d GetXaxis ( ) -> SetTitle("depth (X0)")
h1d GetYaxis ( ) -> SetTitle("100 Edep/E0")
in open ( "sum.ascii"  )
h1f SetLineColor ( )
h1d SetStats ( kFALSE  )
h1d SetTitle ( "30 GeV e- on 20 X0 Fe : cumul longit energy dep"  )
while ( )

Definition at line 24 of file sum.C.

View newest version in sPHENIX GitHub at line 24 of file sum.C

References y.

Variable Documentation

TH1D* h1d = (TH1D*) f.Get("6")

Definition at line 6 of file sum.C.

View newest version in sPHENIX GitHub at line 6 of file sum.C

TH1F* h1f = new TH1F("h1f","",nb_bins,x_min,x_max)

Definition at line 21 of file sum.C.

View newest version in sPHENIX GitHub at line 21 of file sum.C

ifstream in

Definition at line 14 of file sum.C.

View newest version in sPHENIX GitHub at line 14 of file sum.C

TLegend* legend = new TLegend(0.65,0.55,0.85,0.68)

Definition at line 36 of file sum.C.

View newest version in sPHENIX GitHub at line 36 of file sum.C

int nb_bins = 40

Definition at line 18 of file sum.C.

View newest version in sPHENIX GitHub at line 18 of file sum.C

Float_t x

Definition at line 23 of file sum.C.

View newest version in sPHENIX GitHub at line 23 of file sum.C

float x_max = 20.25

Definition at line 20 of file sum.C.

View newest version in sPHENIX GitHub at line 20 of file sum.C

float x_min = 0.25

Definition at line 19 of file sum.C.

View newest version in sPHENIX GitHub at line 19 of file sum.C

Float_t y

Definition at line 23 of file sum.C.

View newest version in sPHENIX GitHub at line 23 of file sum.C