Functions | Variables
plot.C File Reference

Go to the source code of this file.

Functions

gStyle SetPalette (1)
 
gROOT SetStyle ("Plain")
 
TFile f ("ICSD.root")
 
f ls ()
 
ntuple1 SetBranchAddress ("ionisations",&ion)
 
 for (Int_t i=0;i< nentries;i++)
 
hist1 Draw ()
 
hist1 GetXaxis () -> SetLabelSize(0.025)
 
hist1 GetYaxis () -> SetLabelSize(0.025)
 
c1 SaveAs ("ICSD.tiff")
 

Variables

TCanvas * c1 = new TCanvas ("c1","",20,20,1000,500)
 
TH1D * hist1 = new TH1D("histo","ICSD", 30, 0.0, 30)
 
Double_t ion = 0.0
 
TNtuple * ntuple1 = (TNtuple*)f.Get("ntuple_1")
 
Int_t nentries = ntuple1->GetEntries()
 

Function Documentation

hist1 Draw ( )
TFile f ( "ICSD.root"  )
for ( )

Definition at line 24 of file plot.C.

References MECModelEnuComparisons::i.

25  {
26  ntuple1->GetEntry(i);
27  hist1->Fill(ion);
28  }
Double_t ion
Definition: plot.C:18
TH1D * hist1
Definition: plot.C:17
TNtuple * ntuple1
Definition: plot.C:176
hist1 GetXaxis ( ) -> SetLabelSize(0.025)

Definition at line 84 of file plot_lowE_sig_spread_genie.C.

84 {#nu} (GeV)");
hist1 GetYaxis ( ) -> SetLabelSize(0.025)
f ls ( )
c1 SaveAs ( "ICSD.tiff"  )
ntuple1 SetBranchAddress ( "ionisations"  ,
ion 
)
gStyle SetPalette ( )
gROOT SetStyle ( "Plain"  )

Variable Documentation

TCanvas* c1 = new TCanvas ("c1","",20,20,1000,500)

Definition at line 12 of file plot.C.

TH1D* hist1 = new TH1D("histo","ICSD", 30, 0.0, 30)

Definition at line 17 of file plot.C.

Double_t ion = 0.0

Definition at line 18 of file plot.C.

Referenced by main().

Int_t nentries = ntuple1->GetEntries()

Definition at line 22 of file plot.C.

TNtuple* ntuple1 = (TNtuple*)f.Get("ntuple_1")

Definition at line 20 of file plot.C.