IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 22a09a17 authored by Alan Coleman's avatar Alan Coleman
Browse files

Merge branch 'proposal_inconsistent_mass_definitions' into 'master'

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

See merge request !497
parents a198618a 6b762673
No related branches found
No related tags found
1 merge request!497Fix inconsistent usage of particle mass definitions for secondary particles coming from PROPOSAL
Pipeline #10463 passed with warnings
...@@ -133,7 +133,10 @@ namespace corsika::proposal { ...@@ -133,7 +133,10 @@ namespace corsika::proposal {
this->doHadronicPhotonInteraction(view, labCS, photonP4, targetId); this->doHadronicPhotonInteraction(view, labCS, photonP4, targetId);
} else { } else {
auto sec_code = convert_from_PDG(static_cast<PDGCode>(s.type)); 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