All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Variables
demo Namespace Reference

Variables

string fname = '/pnfs/icarus/persistent/users/dmendez/SBNAnaFiles/test/icarus/gen-prodcorsika_genie_nooverburden__nuetest.caf.root'
 
tuple loader = cafana.SpectrumLoader(fname)
 
tuple kTruthEnergy = cafana.CSliceVar('if(sr.truth.index > 0) return sr.truth.E; else return -1.;')
 
tuple binsEnergy = cafana.Binning.Simple(50, 0, 5)
 
tuple axEnergy = cafana.HistAxis('True energy (GeV)', binsEnergy, kTruthEnergy)
 
tuple sEnergy = cafana.Spectrum(loader, axEnergy, cafana.kNoCut)
 

Variable Documentation

tuple demo.axEnergy = cafana.HistAxis('True energy (GeV)', binsEnergy, kTruthEnergy)

Definition at line 13 of file demo.py.

tuple demo.binsEnergy = cafana.Binning.Simple(50, 0, 5)

Definition at line 11 of file demo.py.

string demo.fname = '/pnfs/icarus/persistent/users/dmendez/SBNAnaFiles/test/icarus/gen-prodcorsika_genie_nooverburden__nuetest.caf.root'

Definition at line 5 of file demo.py.

tuple demo.kTruthEnergy = cafana.CSliceVar('if(sr.truth.index > 0) return sr.truth.E; else return -1.;')

Definition at line 9 of file demo.py.

tuple demo.loader = cafana.SpectrumLoader(fname)

Definition at line 7 of file demo.py.

tuple demo.sEnergy = cafana.Spectrum(loader, axEnergy, cafana.kNoCut)

Definition at line 14 of file demo.py.