Functions | Variables
plot.C File Reference

Go to the source code of this file.

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
c1 Divide (3, 1)
 
 system ("rm -rf dna.root")
 
 system ("hadd dna.root dna_*.root")
 
TFile f ("dna.root")
 
c1 cd (1)
 
gStyle SetOptStat (000000)
 
ntuple SetFillStyle (1001)
 
ntuple SetFillColor (2)
 
ntuple Draw ("flagProcess","","B")
 
ntuple SetFillColor (3)
 
ntuple Draw ("flagProcess","flagProcess==12||flagProcess==15||flagProcess==22||flagProcess==32||flagProcess==42||flagProcess==52||flagProcess==62","Bsame")
 
ntuple SetFillColor (4)
 
ntuple SetFillColor (5)
 
gPad SetLogy ()
 
c1 cd (2)
 
ntuple SetMarkerColor (2)
 
ntuple Draw ("x:y:z","flagParticle==1")
 
c1 cd (3)
 
ntuple SetBranchAddress ("flagParticle",&flagParticle)
 
ntuple SetBranchAddress ("flagProcess",&flagProcess)
 
ntuple SetBranchAddress ("x",&x)
 
ntuple SetBranchAddress ("y",&y)
 
ntuple SetBranchAddress ("z",&z)
 
ntuple SetBranchAddress ("totalEnergyDeposit",&totalEnergyDeposit)
 
ntuple SetBranchAddress ("stepLength",&stepLength)
 
ntuple SetBranchAddress ("kineticEnergyDifference",&kineticEnergyDifference)
 
ntuple SetBranchAddress ("kineticEnergy",&kineticEnergy)
 
ntuple SetBranchAddress ("cosTheta",&angle)
 
ntuple SetBranchAddress ("eventID",&eventID)
 
ntuple SetBranchAddress ("trackID",&trackID)
 
ntuple SetBranchAddress ("parentID",&parentID)
 
ntuple SetBranchAddress ("stepID",&stepID)
 
 for (Int_t j=0;j< ntuple->GetEntries();j++)
 
helastE GetXaxis () -> SetTitle("x (nm)")
 
helastE SetLineColor (2)
 
hexcitE SetLineColor (3)
 
hioniE SetLineColor (4)
 
hattE SetLineColor (5)
 
hvibE SetLineColor (6)
 
hsolvE SetLineColor (7)
 
helastE Draw ("")
 
hexcitE Draw ("SAME")
 

Variables

 c1 = new TCanvas ("c1","",20,20,1500,500)
 
TNtuple * ntuple = (TNtuple*)f.Get("dna")
 
Double_t flagParticle
 
Double_t flagProcess
 
Double_t x
 
Double_t y
 
Double_t z
 
Double_t totalEnergyDeposit
 
Double_t stepLength
 
Double_t kineticEnergyDifference
 
Int_t eventID
 
Double_t kineticEnergy
 
Int_t stepID
 
Int_t trackID
 
Int_t parentID
 
Double_t angle
 
TH1F * hsolvE = new TH1F ("hsolvE","solvE",100,0,2000)
 
TH1F * helastE = new TH1F ("helastE","elastE",100,0,2000)
 
TH1F * hexcitE = new TH1F ("hexcitE","excitE",100,0,2000)
 
TH1F * hioniE = new TH1F ("hiioniE","ioniE",100,0,2000)
 
TH1F * hattE = new TH1F ("hattE","attE",100,0,2000)
 
TH1F * hvibE = new TH1F ("hvibE","vibE",100,0,2000)
 

Function Documentation

c1 cd ( )
c1 cd ( )
c1 cd ( )
c1 Divide ( ,
 
)
ntuple Draw ( "flagProcess"  ,
""  ,
"B"   
)
ntuple Draw ( "flagProcess"  )
ntuple Draw ( "x:y:z"  )
helastE Draw ( ""  )
hexcitE Draw ( "SAME"  )
TFile f ( "dna.root"  )
for ( Int_t  j = 0;j<ntuple->GetEntries(); j++)

Definition at line 110 of file plot.C.

References febshutoff_auto::end, and calib::j.

111  {
112 
113  ntuple->GetEntry(j);
114  if (flagProcess==10) hsolvE->Fill(x);
115  if (flagProcess==11) helastE->Fill(x);
116  if (flagProcess==12) hexcitE->Fill(x);
117  if (flagProcess==13) hioniE->Fill(x);
118  if (flagProcess==14) hattE->Fill(x);
119  if (flagProcess==15) hvibE->Fill(x);
120 
121  }
TH1F * hexcitE
Definition: plot.C:105
Double_t x
Definition: plot.C:277
TNtuple * ntuple
Definition: plot.C:20
const double j
Definition: BetheBloch.cxx:29
TH1F * hsolvE
Definition: plot.C:103
TH1F * hvibE
Definition: plot.C:108
TH1F * hattE
Definition: plot.C:107
TH1F * helastE
Definition: plot.C:104
Double_t flagProcess
Definition: plot.C:74
TH1F * hioniE
Definition: plot.C:106
helastE GetXaxis ( ) -> SetTitle("x (nm)")

Definition at line 84 of file plot_lowE_sig_spread_genie.C.

84 {#nu} (GeV)");
ntuple SetBranchAddress ( "flagParticle"  ,
flagParticle 
)
ntuple SetBranchAddress ( "flagProcess"  ,
flagProcess 
)
ntuple SetBranchAddress ( "x"  ,
x 
)
ntuple SetBranchAddress ( "y"  ,
y 
)
ntuple SetBranchAddress ( "z"  ,
z 
)
ntuple SetBranchAddress ( "totalEnergyDeposit"  ,
totalEnergyDeposit 
)
ntuple SetBranchAddress ( "stepLength"  ,
stepLength 
)
ntuple SetBranchAddress ( "kineticEnergyDifference"  ,
kineticEnergyDifference 
)
ntuple SetBranchAddress ( "kineticEnergy"  ,
kineticEnergy 
)
ntuple SetBranchAddress ( "cosTheta"  ,
angle 
)
ntuple SetBranchAddress ( "eventID"  ,
eventID 
)
ntuple SetBranchAddress ( "trackID"  ,
trackID 
)
ntuple SetBranchAddress ( "parentID"  ,
parentID 
)
ntuple SetBranchAddress ( "stepID"  ,
stepID 
)
ntuple SetFillColor ( )
ntuple SetFillColor ( )
ntuple SetFillColor ( )
ntuple SetFillColor ( )
ntuple SetFillStyle ( 1001  )
helastE SetLineColor ( )
hexcitE SetLineColor ( )
hioniE SetLineColor ( )
hattE SetLineColor ( )
hvibE SetLineColor ( )
hsolvE SetLineColor ( )
gPad SetLogy ( )
ntuple SetMarkerColor ( )
gStyle SetOptStat ( 000000  )
gStyle SetPalette ( )
gROOT SetStyle ( "Plain"  )
system ( "rm -rf dna.root"  )
system ( "hadd dna.root dna_*.root"  )

Variable Documentation

Double_t angle
c1 = new TCanvas ("c1","",20,20,1500,500)

Definition at line 15 of file plot.C.

Int_t eventID
Double_t flagParticle

Definition at line 73 of file plot.C.

Double_t flagProcess

Definition at line 74 of file plot.C.

TH1F* hattE = new TH1F ("hattE","attE",100,0,2000)

Definition at line 107 of file plot.C.

TH1F* helastE = new TH1F ("helastE","elastE",100,0,2000)

Definition at line 104 of file plot.C.

TH1F* hexcitE = new TH1F ("hexcitE","excitE",100,0,2000)

Definition at line 105 of file plot.C.

TH1F* hioniE = new TH1F ("hiioniE","ioniE",100,0,2000)

Definition at line 106 of file plot.C.

TH1F* hsolvE = new TH1F ("hsolvE","solvE",100,0,2000)

Definition at line 103 of file plot.C.

TH1F* hvibE = new TH1F ("hvibE","vibE",100,0,2000)

Definition at line 108 of file plot.C.

Double_t kineticEnergy

Definition at line 82 of file plot.C.

Double_t kineticEnergyDifference

Definition at line 80 of file plot.C.

ntuple = (TNtuple*)f.Get("dna")

Definition at line 23 of file plot.C.

Int_t parentID
Int_t stepID

Definition at line 83 of file plot.C.

Double_t stepLength

Definition at line 79 of file plot.C.

Double_t totalEnergyDeposit

Definition at line 78 of file plot.C.

Int_t trackID
Double_t x

Definition at line 75 of file plot.C.

Double_t y

Definition at line 76 of file plot.C.

Double_t z

Definition at line 77 of file plot.C.