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 (0)
 
c1 cd ()
 
c1 Update ()
 
TFile fa ("water_opt3.root")
 
TFile fb ("water_100um.root")
 
ha1 SetStats (kFALSE)
 
ha1 SetLineColor (kBlue)
 
ha1 Draw ("HIST")
 
hb1 SetLineColor (kRed)
 
hb1 Draw ("HIST SAME")
 
le AddEntry (ha1,"opt3","l")
 
le AddEntry (hb1,"100um","l")
 
le Draw ()
 

Variables

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

Function Documentation

le AddEntry ( ha1  ,
"opt3"  ,
"l"   
)
le AddEntry ( hb1  ,
"100um"  ,
"l"   
)
c1 cd ( )
ha1 Draw ( "HIST"  )
hb1 Draw ( "HIST SAME"  )
le Draw ( )
TFile fa ( "water_opt3.root"  )
TFile fb ( "water_100um.root"  )
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("10")

Definition at line 15 of file plot2.C.

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

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.