Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sbncode/EventGenerator/MeVPrtl/Tools/BNBKaonGen_tool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ simb::MCFlux BNBKaonGen::MakeMCFlux(const bsim::BooNe &boone) {
<< std::endl;
}

flux.fFluxType = simb::kDk2Nu;
flux.fFluxType = simb::kSimple_Flux;
Comment thread
jicrespo marked this conversation as resolved.
Outdated
flux.fnimpwt = fBooneNtp.beamwgt;
flux.fvx = fBooneNtp.ini_pos[0][0]; //0
flux.fvy = fBooneNtp.ini_pos[0][1]; //0
Expand Down
4 changes: 2 additions & 2 deletions sbncode/SBNEventWeight/Calculators/BNBFlux/FluxCalcPrep.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ namespace sbn {
}

//or do the above 3 lines in one line
// auto const& mclist = *e.getValidHandle<std::vector<simb::MCTruth>>(fGeneratorModuleLabel);
auto const& mclist = *e.getValidHandle<std::vector<simb::MCTruth>>(fGeneratorModuleLabel);
Comment thread
jicrespo marked this conversation as resolved.

// If no neutrinos in this event, gives 0 weight;
int NUni = fParameterSet.fNuniverses;
Expand Down Expand Up @@ -264,8 +264,8 @@ namespace sbn {
}

// Collect neutrino energy; mclist is replaced with fluxlist.
// double enu= mclist[inu].GetNeutrino().Nu().E();
double enu= fluxlist[inu].fnenergyn;
if ( enu == -1 ) enu= mclist[inu].GetNeutrino().Nu().E(); //For MeVPrtl generator, not all MCFlux result in a neutrino, so equivalent neutrino energy is computed and saved as MCTruth
Comment thread
jicrespo marked this conversation as resolved.

//Let's make a weights based on the calculator you have requested

Expand Down