Geant4  10.02.p03
advanced/nanobeam/plot.C File Reference

Go to the source code of this file.

Functions

gROOT SetStyle ("Plain")
 
gStyle SetOptStat (1111)
 
gStyle SetPalette (1)
 
c1 Divide (2, 2)
 
 system ("rm -rf nanobeam.root")
 
 system ("hadd nanobeam.root nanobeam_*.root")
 
TFile f ("nanobeam.root")
 
c1 cd (1)
 
ntuple0 SetMarkerSize (.2)
 
ntuple0 SetMarkerColor (2)
 
ntuple0 SetMarkerStyle (20)
 
ntuple0 Draw ("xIn:yIn:zIn","")
 
c1 cd (2)
 
gPad SetLogz ()
 
ntuple2 Draw ("yIn:xIn","","hcolz")
 
c1 cd (3)
 
ntuple2 SetMarkerColor (4)
 
ntuple2 Draw ("thetaIn:xIn","","hcolz")
 
c1 cd (4)
 
ntuple2 Draw ("phiIn:yIn","","hcolz")
 

Variables

 c1 = new TCanvas ("c1","",200,10,800,800)
 
TNtuple * ntuple0 = (TNtuple*)f.Get("ntuple0")
 
TNtuple * ntuple2 = (TNtuple*)f.Get("ntuple2")
 

Function Documentation

◆ cd() [1/4]

c1 cd ( )

◆ cd() [2/4]

c1 cd ( )

◆ cd() [3/4]

c1 cd ( )

◆ cd() [4/4]

c1 cd ( )

◆ Divide()

c1 Divide ( ,
 
)

◆ Draw() [1/4]

ntuple0 Draw ( "xIn:yIn:zIn"  ,
""   
)

◆ Draw() [2/4]

ntuple2 Draw ( "yIn:xIn"  ,
""  ,
"hcolz"   
)

◆ Draw() [3/4]

ntuple2 Draw ( "thetaIn:xIn"  ,
""  ,
"hcolz"   
)

◆ Draw() [4/4]

ntuple2 Draw ( "phiIn:yIn"  ,
""  ,
"hcolz"   
)

◆ f()

TFile f ( "nanobeam.root"  )

◆ SetLogz()

gPad SetLogz ( )

◆ SetMarkerColor() [1/2]

ntuple0 SetMarkerColor ( )

◆ SetMarkerColor() [2/2]

ntuple2 SetMarkerColor ( )

◆ SetMarkerSize()

ntuple0 SetMarkerSize ( 2)

◆ SetMarkerStyle()

ntuple2 SetMarkerStyle ( 20  )

◆ SetOptStat()

gStyle SetOptStat ( 1111  )

◆ SetPalette()

gStyle SetPalette ( )

◆ SetStyle()

gROOT SetStyle ( "Plain"  )

◆ system() [1/2]

system ( "rm -rf nanobeam.root"  )

◆ system() [2/2]

system ( "hadd nanobeam.root nanobeam_*.root"  )

Variable Documentation

◆ c1

c1 = new TCanvas ("c1","",200,10,800,800)

Definition at line 10 of file advanced/nanobeam/plot.C.

◆ ntuple0

ntuple0 = (TNtuple*)f.Get("ntuple0")

Definition at line 18 of file advanced/nanobeam/plot.C.

◆ ntuple2

ntuple2 = (TNtuple*)f.Get("ntuple2")

Definition at line 28 of file advanced/nanobeam/plot.C.