38 int tot = 0,
piplus,
piminus = 0,
nproton = 0,
nelectron = 0,
kplus = 0,
kminus = 0,
numu = 0,
nue = 0,
nutau = 0,
numubar = 0,
nuebar = 0,
nutaubar = 0,
neutron = 0,
muon =
154 std::vector<std::string> fFileVec;
155 fFileVec.push_back(
"g4lbne_example_010.root");
156 fFileVec.push_back(
"g4lbne_example_011.root");
161 double potperfile = 10000.0;
162 fTotalPOT = potperfile*(double)fFileVec.size();
167 ffilename =
"g4lbne_fluxexample_pion.root";
174 fChain =
new TChain(
"H2trackingdata");
177 fChain -> Add(sit -> c_str());
205 delete fChain->GetCurrentFile();
212 return fChain->GetEntry(entry);
218 Long64_t centry =
fChain->LoadTree(entry);
219 if (centry < 0)
return centry;
220 if (!
fChain->InheritsFrom(TChain::Class()))
return centry;
221 TChain *chain = (TChain*)
fChain;
222 if (chain->GetTreeNumber() !=
fCurrent) {
309 #endif // #ifdef pidata_H2_cxx
void SetTitles1(TH1 *h, const std::string &xtitle="", const std::string &ytitle="")
TBranch * b_fH2NParticles
virtual Int_t Cut(Long64_t entry)
TBranch * b_fH2ParticlePDG
Int_t fCurrent
pointer to the analyzed TTree or TChain
TBranch * b_fH2ParticleDX
TBranch * b_fH2ParticleEnergy
TBranch * b_fH2PProductionZ
virtual Int_t GetEntry(Long64_t entry)
Double_t fTotalPOT
current Tree number in a TChain
TBranch * b_fH2ParticlePYPZ
TBranch * b_fH2ParticlePXPZ
TBranch * b_fH2PmomentumdirY
virtual void Init(TTree *tree)
TBranch * b_fH2PProductionY
TBranch * b_fH2ParticleDZ
TBranch * b_fH2PmomentumdirX
void SetTitles2(TH2 *h, const std::string &xtitle="", const std::string &ytitle="")
TBranch * b_fH2ParticlePZ
TBranch * b_fH2ParticleDY
TBranch * b_fH2PmomentumdirZ
virtual Long64_t LoadTree(Long64_t entry)
TBranch * b_fH2ParticlePX
virtual void Show(Long64_t entry=-1)
TBranch * b_fH2ParticleMass
TBranch * b_fH2PProductionX
h
training ###############################
TBranch * b_fH2ParticlePY