178 double GetWeight(
const std::vector<double> xdet,
198 std::vector<std::string> fFileVec;
199 fFileVec.push_back(
"g4lbne_example_010.root");
200 fFileVec.push_back(
"g4lbne_example_011.root");
205 double potperfile = 10000.0;
206 fTotalPOT = potperfile*(double)fFileVec.size();
218 fChain =
new TChain(
"nudata");
221 fChain -> Add(sit -> c_str());
249 delete fChain->GetCurrentFile();
256 return fChain->GetEntry(entry);
262 Long64_t centry =
fChain->LoadTree(entry);
263 if (centry < 0)
return centry;
264 if (!
fChain->InheritsFrom(TChain::Class()))
return centry;
265 TChain *chain = (TChain*)
fChain;
266 if (chain->GetTreeNumber() !=
fCurrent) {
379 #endif // #ifdef nudata_cxx
TBranch * b_data_protonPy
TBranch * b_data_NdxdzFar
TBranch * b_data_beamHWidth
TBranch * b_data_NdydzFar
TBranch * b_data_beamVWidth
TBranch * b_data_protonPx
virtual Long64_t LoadTree(Long64_t entry)
TBranch * b_data_NenergyN
virtual void Show(Long64_t entry=-1)
Int_t fCurrent
pointer to the analyzed TTree or TChain
TBranch * b_data_hornCurrent
TBranch * b_data_NdxdzNear
virtual Int_t GetEntry(Long64_t entry)
virtual Int_t Cut(Long64_t entry)
std::string GetPOTAsString(const double dpot)
void SetTitles(TH1 *h, const std::string &xtitle="", const std::string &ytitle="")
double GetWeight(const std::vector< double > xdet, double &nu_wght, double &nu_energy)
TBranch * b_data_NenergyF
TBranch * b_data_ppmedium
TBranch * b_data_ppenergy
Double_t fTotalPOT
current Tree number in a TChain
TBranch * b_data_NdydzNear
TBranch * b_data_protonPz
h
training ###############################
virtual void Init(TTree *tree)