LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
plot2.C File Reference

Go to the source code of this file.

Functions

c1 SetLogy (1)
 
c1 cd ()
 
c1 Update ()
 
TFile fa ("Li7.root")
 
TFile fb ("Li6.root")
 
ha1 SetStats (kFALSE)
 
ha1 SetLineColor (kBlue)
 
ha1 Draw ("HIST")
 
hb1 SetLineColor (kRed)
 
hb1 Draw ("HIST SAME")
 
le AddEntry (ha1,"Li7","l")
 
le AddEntry (hb1,"Li6","l")
 
le Draw ()
 

Variables

TCanvas * c1 = new TCanvas("c1", " ")
 
TH1D * ha1 = (TH1D*)fa.Get("6")
 
TH1D * hb1 = (TH1D*)fb.Get("6")
 
TLegend * le = new TLegend(0.6,0.6,0.8,0.8)
 

Function Documentation

le AddEntry ( ha1  ,
"Li7"  ,
"l"   
)
le AddEntry ( hb1  ,
"Li6"  ,
"l"   
)
c1 cd ( )
ha1 Draw ( "HIST"  )
hb1 Draw ( "HIST SAME"  )
le Draw ( )
ha1 SetLineColor ( kBlue  )
hb1 SetLineColor ( kRed  )
c1 SetLogy ( )
ha1 SetStats ( kFALSE  )
c1 Update ( )

Variable Documentation

TCanvas* c1 = new TCanvas("c1", " ")

Definition at line 6 of file plot2.C.

TH1D* ha1 = (TH1D*)fa.Get("6")

Definition at line 15 of file plot2.C.

TH1D* hb1 = (TH1D*)fb.Get("6")

Definition at line 19 of file plot2.C.

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

Definition at line 24 of file plot2.C.