12 fFluxTree =
dynamic_cast<TTree*
>(fluxInputFile->Get(
"flux"));
13 fMetaTree =
dynamic_cast<TTree*
>(fluxInputFile->Get(
"meta"));
32 if (!
fFluxTree->GetEntry(ientry))
return false;
64 if (TMath::Abs(
fGSimpleNuMI->pppz) < 1.0e-30) apppz = 1.0e-30;
76 const std::vector<std::string>& auxdblname =
fGSimpleMeta->auxdblname;
77 const std::vector<std::string>& auxintname =
fGSimpleMeta->auxintname;
78 const std::vector<int>& auxint =
fGSimpleAux->auxint;
79 const std::vector<double>& auxdbl =
fGSimpleAux->auxdbl;
81 for (
size_t id = 0;
id < auxdblname.size(); ++id) {
82 if (
"muparpx" == auxdblname[
id]) flux.
fmuparpx = auxdbl[id];
83 if (
"muparpy" == auxdblname[
id]) flux.
fmuparpy = auxdbl[id];
84 if (
"muparpz" == auxdblname[
id]) flux.
fmuparpz = auxdbl[id];
85 if (
"mupare" == auxdblname[
id]) flux.
fmupare = auxdbl[id];
86 if (
"necm" == auxdblname[
id]) flux.
fnecm = auxdbl[id];
87 if (
"nimpwt" == auxdblname[
id]) flux.
fnimpwt = auxdbl[id];
88 if (
"fgXYWgt" == auxdblname[
id]) { flux.
fnwtnear = flux.
fnwtfar = auxdbl[id]; }
90 for (
size_t ii = 0; ii < auxintname.size(); ++ii) {
91 if (
"tgen" == auxintname[ii]) flux.
ftgen = auxint[ii];
92 if (
"tgptype" == auxintname[ii]) flux.
ftgptype = auxint[ii];
genie::flux::GSimpleNtpEntry * fGSimpleEntry
genie::flux::GSimpleNtpNuMI * fGSimpleNuMI
double fdk2gen
distance from decay to ray origin
void SetRootFile(TFile *rootFileName)
genie::flux::GSimpleNtpMeta * fGSimpleMeta
genie::flux::GSimpleNtpAux * fGSimpleAux
bool FillMCFlux(Long64_t ientry, simb::MCFlux &mcflux)