FairRoot/PandaRoot
Functions | Variables
plot_momentum.C File Reference

Go to the source code of this file.

Functions

gStyle SetFillColor (0)
 
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 SetHistFillColor (0)
 
gStyle SetHistLineWidth (2)
 
gStyle SetOptFit (1)
 
simtree AddFriend ("pndsim","points_sttcombi.root")
 
c1 Divide (2, 2)
 
c1 cd (1)
 
charg_mom GetXaxis () -> SetTitle("(P_
 

Variables

TFile * inFile = TFile::Open("pid_sttcombi.root")
 
TTree * tree =(TTree *) inFile->Get("pndsim")
 
TCanvas * c1 = new TCanvas("Charged Candidate", "Charged Candidate", 100, 100, 1200, 800)
 
TCanvas * c2 = new TCanvas("Neutral Candidate", "Neutral Candidate", 100, 100, 1200, 800)
 
TH1F * charg_mom = new TH1F("charg_mom","charg_mom",100,-0.2,0.2)
 

Function Documentation

simtree AddFriend ( "pndsim"  ,
"points_sttcombi.root"   
)
c1 cd ( )
c1 Divide ( ,
 
)
charg_mom GetXaxis ( ) -> SetTitle("(P_

Definition at line 20 of file plot_momentum.C.

20 {MC} - P_{track}) / P_{MC}");
PndRiemannTrack track
Definition: RiemannTest.C:33
gStyle SetFillColor ( )
gStyle SetHistFillColor ( )
gStyle SetHistLineWidth ( )
gStyle SetLabelSize ( 05,
"Y"   
)
gStyle SetLabelSize ( 05,
"X"   
)
gStyle SetOptFit ( )
gStyle SetTitleOffset ( 85,
"X"   
)
gStyle SetTitleOffset ( 85,
"Y"   
)
gStyle SetTitleSize ( 05,
"X"   
)
gStyle SetTitleSize ( 05,
"Y"   
)

Variable Documentation

TCanvas* c1 = new TCanvas("Charged Candidate", "Charged Candidate", 100, 100, 1200, 800)

Definition at line 14 of file plot_momentum.C.

TCanvas* c2 = new TCanvas("Neutral Candidate", "Neutral Candidate", 100, 100, 1200, 800)

Definition at line 15 of file plot_momentum.C.

TH1F* charg_mom = new TH1F("charg_mom","charg_mom",100,-0.2,0.2)

Definition at line 19 of file plot_momentum.C.

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

Definition at line 10 of file plot_momentum.C.

TTree* tree =(TTree *) inFile->Get("pndsim")

Definition at line 11 of file plot_momentum.C.