From fd58a141f178b7bdf57b576ed493cbd102d16cc1 Mon Sep 17 00:00:00 2001 From: Jaesung Kim Date: Thu, 15 Feb 2024 15:20:41 -0600 Subject: [PATCH] Saving non primaries to nu.prim for G4 study --- sbncode/CAFMaker/FillTrue.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbncode/CAFMaker/FillTrue.cxx b/sbncode/CAFMaker/FillTrue.cxx index 3b9da6340..5d7393832 100644 --- a/sbncode/CAFMaker/FillTrue.cxx +++ b/sbncode/CAFMaker/FillTrue.cxx @@ -470,7 +470,9 @@ namespace caf { for(const caf::SRTrueParticle& part: srparticles){ // save the G4 particles that came from this interaction if(part.interaction_id == (int)i) { - if(part.start_process == caf::kG4primary) srneutrino.prim.push_back(part); + //if(part.start_process == caf::kG4primary) srneutrino.prim.push_back(part); + // Feb. 15th 2024, Jaesung Kim: Saving non-primaries for G4Reweight study + srneutrino.prim.push_back(part); // total up the deposited energy for(int p = 0; p < 3; ++p) {