diff --git a/src/algorithms/reco/UndoAfterBurner.cc b/src/algorithms/reco/UndoAfterBurner.cc index 69430e97e..129674f47 100644 --- a/src/algorithms/reco/UndoAfterBurner.cc +++ b/src/algorithms/reco/UndoAfterBurner.cc @@ -115,6 +115,9 @@ void eicrecon::UndoAfterBurner::process( // Now, loop through events and apply operations to the MCparticles for (const auto& p: *mcparts) { + if (p.isCreatedInSimulation()) { + continue; + } ROOT::Math::PxPyPzEVector mc(p.getMomentum().x, p.getMomentum().y, p.getMomentum().z, p.getEnergy());