16 fFluxTree=
dynamic_cast<TTree*
>(fluxInputFile->Get(
"flux"));
17 fMetaTree=
dynamic_cast<TTree*
>(fluxInputFile->Get(
"meta"));
36 std::cout <<
"GSimple Window:" << std::endl;
37 std::cout <<
"\tBase: " << window_base[0] <<
", " << window_base[1] <<
", " << window_base[2] << std::endl;
38 std::cout <<
"\tDir 1: " << window_dir_1[0] <<
", " << window_dir_1[1] <<
", " << window_dir_1[2] << std::endl;
39 std::cout <<
"\tDir 2: " << window_dir_2[0] <<
", " << window_dir_2[1] <<
", " << window_dir_2[2] << std::endl;
75 if ( TMath::Abs(
fGSimpleNuMI->pppz) < 1.0e-30 ) apppz = 1.0e-30;
87 const std::vector<std::string>& auxdblname =
fGSimpleMeta->auxdblname;
88 const std::vector<std::string>& auxintname =
fGSimpleMeta->auxintname;
89 const std::vector<int>& auxint =
fGSimpleAux->auxint;
90 const std::vector<double>& auxdbl =
fGSimpleAux->auxdbl;
92 for (
size_t id=0;
id<auxdblname.size(); ++id) {
93 if (
"muparpx" == auxdblname[
id]) flux.fmuparpx = auxdbl[id];
94 if (
"muparpy" == auxdblname[
id]) flux.fmuparpy = auxdbl[id];
95 if (
"muparpz" == auxdblname[
id]) flux.fmuparpz = auxdbl[id];
96 if (
"mupare" == auxdblname[
id]) flux.fmupare = auxdbl[id];
97 if (
"necm" == auxdblname[
id]) flux.fnecm = auxdbl[id];
98 if (
"nimpwt" == auxdblname[
id]) flux.fnimpwt = auxdbl[id];
99 if (
"fgXYWgt" == auxdblname[
id]) {
100 flux.fnwtnear = flux.fnwtfar = auxdbl[id];
103 for (
size_t ii=0; ii<auxintname.size(); ++ii) {
104 if (
"tgen" == auxintname[ii]) flux.ftgen = auxint[ii];
105 if (
"tgptype" == auxintname[ii]) flux.ftgptype = auxint[ii];
genie::flux::GSimpleNtpEntry * fGSimpleEntry
genie::flux::GSimpleNtpNuMI * fGSimpleNuMI
void SetRootFile(TFile *rootFileName)
genie::flux::GSimpleNtpMeta * fGSimpleMeta
genie::flux::GSimpleNtpAux * fGSimpleAux
bool FillMCFlux(Long64_t ientry, simb::MCFlux &mcflux)
BEGIN_PROLOG could also be cout