Geant4  10.02.p03
extended/electromagnetic/TestEm17/plotHisto.C File Reference

Go to the source code of this file.

Functions

TFile f ("allproc.root")
 
c1 Divide (3, 1)
 
c1 cd (1)
 
hist1 Draw ("HIST")
 
hist11 SetLineColor (2)
 
hist11 Draw ("HIST SAME")
 
c1 cd (2)
 
c1 cd (3)
 
c1 Print ("allproc.gif")
 
c1 Close ()
 

Variables

TCanvas * c1 = new TCanvas("c1", " ")
 
TH1D * hist1 = (TH1D*)f.Get("h1")
 
TH1D * hist11 = (TH1D*)f.Get("h11")
 
TH1D * hist2 = (TH1D*)f.Get("h2")
 
TH1D * hist12 = (TH1D*)f.Get("h12")
 
TH1D * hist3 = (TH1D*)f.Get("h3")
 
TH1D * hist13 = (TH1D*)f.Get("h13")
 

Function Documentation

◆ cd() [1/3]

c1 cd ( )

◆ cd() [2/3]

c1 cd ( )

◆ cd() [3/3]

c1 cd ( )

◆ Close()

input_file_2 Close ( )
Here is the caller graph for this function:

◆ Divide()

c1 Divide ( ,
 
)

◆ Draw() [1/2]

hist1 Draw ( "HIST"  )

◆ Draw() [2/2]

h16 Draw ( "HIST SAME"  )

◆ f()

TFile f ( "allproc.root"  )

◆ Print()

c1 Print ( "allproc.gif"  )

◆ SetLineColor()

hist11 SetLineColor ( )

Variable Documentation

◆ c1

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

Definition at line 7 of file extended/electromagnetic/TestEm17/plotHisto.C.

◆ hist1

TH1D* hist1 = (TH1D*)f.Get("h1")

◆ hist11

TH1D* hist11 = (TH1D*)f.Get("h11")

◆ hist12

TH1D* hist12 = (TH1D*)f.Get("h12")

◆ hist13

TH1D* hist13 = (TH1D*)f.Get("h13")

◆ hist2

TH1D* hist2 = (TH1D*)f.Get("h2")

◆ hist3

TH1D* hist3 = (TH1D*)f.Get("h3")