diff --git a/projects/dataclasses/private/InteractionRecord.cxx b/projects/dataclasses/private/InteractionRecord.cxx index d9bed081..ee73a714 100644 --- a/projects/dataclasses/private/InteractionRecord.cxx +++ b/projects/dataclasses/private/InteractionRecord.cxx @@ -440,7 +440,10 @@ std::array SecondaryParticleRecord::GetFourMomentum() const { if(not momentum_set) { UpdateMomentum(); } - return {momentum.at(0), momentum.at(1), momentum.at(2), GetEnergy()}; + if(not energy_set) { + UpdateEnergy(); + } + return {energy, momentum.at(0), momentum.at(1), momentum.at(2)}; } std::array const & SecondaryParticleRecord::GetInitialPosition() const {