FairRoot/PandaRoot
Functions | Variables
examples/pid/plot_pid.C File Reference

Go to the source code of this file.

Functions

gStyle SetTitleOffset (.85,"X")
 
gStyle SetTitleOffset (.85,"Y")
 
gStyle SetTitleSize (.05,"X")
 
gStyle SetTitleSize (.05,"Y")
 
gStyle SetLabelSize (.05,"X")
 
gStyle SetLabelSize (.05,"Y")
 
gStyle SetHistLineWidth (2)
 
gStyle SetOptFit (1)
 
c1 Divide (3, 2)
 
c1 cd (1)
 
simtree Draw ("PidChargedCand.GetEmcRawEnergy()/PidChargedCand.GetMomentum().Mag():PidChargedCand.GetMomentum().Mag()>>emc_pid(100,0,3,100,0,1.2)","PidChargedCand.GetEmcIndex()>-1","colz")
 
emc_pid GetXaxis () -> SetTitle("Momentum [GeV/c]")
 
emc_pid GetYaxis () -> SetTitle("EMC Energy / Momentum [c]")
 
c1 cd (2)
 
simtree Draw ("PidChargedCand.GetTofBeta():PidChargedCand.GetMomentum().Mag()>>tof_pid(100,0,3,100,0,1.2)","PidChargedCand.GetTofIndex()>-1","colz")
 
c1 cd (3)
 
simtree Draw ("PidChargedCand.GetDrcThetaC()*TMath::RadToDeg():PidChargedCand.GetMomentum().Mag()>>drc_pid(100,0,3,100,0,60)","PidChargedCand.GetDrcIndex()>-1","colz")
 
c1 cd (4)
 
simtree Draw ("PidChargedCand.GetMvdDEDX():PidChargedCand.GetMomentum().Mag()>>mvd_pid(100,0,3,100,0,0.1)","PidChargedCand.GetMvdHits()>0","colz")
 
c1 cd (5)
 
simtree Draw ("PidChargedCand.GetMuoNumberOfLayers():PidChargedCand.GetMomentum().Mag()>>muo_pid(100,0,3,17,-0.5,16.5)","","colz")
 
c1 cd (6)
 
simtree Draw ("PidChargedCand.GetMuoNumberOfLayers():PidChargedCand.GetMomentum().Theta()*TMath::RadToDeg()>>muo_pidt(100,0,100,17,-0.5,16.5)","","colz")
 
c1 cd ()
 

Variables

TFile * inFile = TFile::Open("pid_sttcombi.root")
 
TCanvas * c1 = new TCanvas("PID", "PID", 100, 100, 800, 800)
 

Function Documentation

c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 Divide ( ,
 
)
simtree Draw ( "PidChargedCand.GetEmcRawEnergy()/PidChargedCand.GetMomentum().Mag():PidChargedCand.GetMomentum().Mag()>>emc_pid(100,0,3,100,0,1.2)"  ,
"PidChargedCand.  GetEmcIndex(),
-1"  ,
"colz"   
)
simtree Draw ( "PidChargedCand.GetTofBeta():PidChargedCand.GetMomentum().Mag()>>tof_pid(100,0,3,100,0,1.2)"  ,
"PidChargedCand.  GetTofIndex(),
-1"  ,
"colz"   
)
simtree Draw ( "PidChargedCand.GetDrcThetaC()*TMath::RadToDeg():PidChargedCand.GetMomentum().Mag()>>drc_pid(100,0,3,100,0,60)"  ,
"PidChargedCand.  GetDrcIndex(),
-1"  ,
"colz"   
)
simtree Draw ( "PidChargedCand.GetMvdDEDX():PidChargedCand.GetMomentum().Mag()>>mvd_pid(100,0,3,100,0,0.1)"  ,
"PidChargedCand.  GetMvdHits(),
0"  ,
"colz"   
)
simtree Draw ( "PidChargedCand.GetMuoNumberOfLayers():PidChargedCand.GetMomentum().Mag()>>muo_pid(100,0,3,17,-0.5,16.5)"  ,
""  ,
"colz"   
)
simtree Draw ( "PidChargedCand.GetMuoNumberOfLayers():PidChargedCand.GetMomentum().Theta()*TMath::RadToDeg()>>muo_pidt(100,0,100,17,-0.5,16.5)"  ,
""  ,
"colz"   
)
emc_pid GetXaxis ( ) -> SetTitle("Momentum [GeV/c]")

Definition at line 653 of file anal_hit_digi_cluster_fwendcap.C.

653 {Reconstructed}-#theta_{MC} (#circ)");
emc_pid GetYaxis ( ) -> SetTitle("EMC Energy / Momentum [c]")
gStyle SetHistLineWidth ( )
gStyle SetLabelSize ( 05,
"X"   
)
gStyle SetLabelSize ( 05,
"Y"   
)
gStyle SetOptFit ( )
gStyle SetTitleOffset ( 85,
"Y"   
)
gStyle SetTitleOffset ( 85,
"X"   
)
gStyle SetTitleSize ( 05,
"Y"   
)
gStyle SetTitleSize ( 05,
"X"   
)

Variable Documentation

TCanvas* c1 = new TCanvas("PID", "PID", 100, 100, 800, 800)

Definition at line 10 of file examples/pid/plot_pid.C.

TFile* inFile = TFile::Open("pid_sttcombi.root")

Definition at line 8 of file examples/pid/plot_pid.C.