You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// auto const& mclist = *e.getValidHandle<std::vector<simb::MCTruth>>(fGeneratorModuleLabel);
220
228
@@ -287,7 +295,28 @@ namespace sbn {
287
295
288
296
// First let's check that the parent of the neutrino we are looking for is
289
297
// the particle we intended it to be, if not set all weights to 1
290
-
if (std::find(fprimaryHad.begin(), fprimaryHad.end(),(fluxlist[inu].ftptype)) == fprimaryHad.end() ){//if it does not contain any particles we need get 1
298
+
299
+
simb::MCFlux flux;
300
+
flux.ftptype = fluxlist[inu].ftptype;
301
+
flux.ftpx = fluxlist[inu].ftpx;
302
+
flux.ftpy = fluxlist[inu].ftpy;
303
+
flux.ftpz = fluxlist[inu].ftpz;
304
+
305
+
// If Dk2Nu flux, use ancestors to evaluate tptype
0 commit comments