IAP GITLAB

Skip to content
Snippets Groups Projects

Fix inconsistent usage of particle mass definitions for secondary particles coming from PROPOSAL

Merged Jean-Marco Alameddine requested to merge proposal_inconsistent_mass_definitions into master
All threads resolved!
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -133,7 +133,10 @@ namespace corsika::proposal {
this->doHadronicPhotonInteraction(view, labCS, photonP4, targetId);
} else {
auto sec_code = convert_from_PDG(static_cast<PDGCode>(s.type));
view.addSecondary(std::make_tuple(sec_code, E - get_mass(sec_code), dir));
// use mass provided by PROPOSAL to ensure correct conversion to kinetic energy
auto massProposal =
PROPOSAL::ParticleDef::GetParticleDefForType(s.type).mass * 1_MeV;
view.addSecondary(std::make_tuple(sec_code, E - massProposal, dir));
}
}
}
Loading