IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6b762673 authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine Committed by Alan Coleman
Browse files

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

parent a198618a
No related branches found
No related tags found
1 merge request!497Fix inconsistent usage of particle mass definitions for secondary particles coming from PROPOSAL
......@@ -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));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment