14 #include <TObjArray.h>
87 #ifndef SKIP_MINERVA_MODS
187 #ifndef SKIP_MINERVA_MODS
226 virtual Int_t
Cut(Long64_t entry);
227 virtual Int_t
GetEntry(Long64_t entry);
228 virtual Long64_t
LoadTree(Long64_t entry);
229 virtual void Init(TTree *tree);
232 virtual void Show(Long64_t entry = -1);
243 TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(
"generic_g4numi.root");
245 f =
new TFile(
"generic_g4numi.root");
247 tree = (TTree*)gDirectory->Get(
"g4numi");
256 delete fChain->GetCurrentFile();
263 return fChain->GetEntry(entry);
269 Long64_t centry =
fChain->LoadTree(entry);
270 if (centry < 0)
return centry;
271 if (!
fChain->InheritsFrom(TChain::Class()))
return centry;
272 TChain *chain = (TChain*)
fChain;
273 if (chain->GetTreeNumber() !=
fCurrent) {
358 #ifndef SKIP_MINERVA_MODS
360 bool has_ancestry = (
fChain->GetBranch(
"ntrajectory") != 0 );
361 std::cout <<
"g4numi ntuple "
362 << ((has_ancestry)?
"has":
"lacks") <<
" ancestry branches"
364 if ( has_ancestry ) {
429 #endif // #ifdef g4numi_cxx
Int_t run
current Tree number in a TChain
TBranch * b_data_NdydzNear
TBranch * b_data_NenergyN
TBranch * b_data_hornCurrent
virtual void Show(Long64_t entry=-1)
TBranch * b_data_ppenergy
virtual Int_t Cut(Long64_t entry)
TBranch * b_data_NdxdzFar
TBranch * b_data_ppmedium
virtual Int_t GetEntry(Long64_t entry)
TBranch * b_data_beamVWidth
Int_t fCurrent
pointer to the analyzed TTree or TChain
TBranch * b_data_protonPx
TBranch * b_data_ntrajectory
TBranch * b_data_parentId
TBranch * b_data_beamHWidth
TBranch * b_data_overflow
TBranch * b_data_protonPz
virtual void Init(TTree *tree)
virtual Long64_t LoadTree(Long64_t entry)
TBranch * b_data_NdydzFar
TBranch * b_data_NenergyF
TBranch * b_data_protonPy
TBranch * b_data_NdxdzNear