IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 31196fb9 authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine Committed by Maximilian Reininghaus
Browse files

Use proposal-internal mass definition when converting total energies to...

Use proposal-internal mass definition when converting total energies to kinetic energies of secondary particles extracted from proposal
parent a599430b
No related branches found
No related tags found
No related merge requests found
Pipeline #10448 passed
This commit is part of merge request !497. Comments created here will be created in the context of that merge request.
......@@ -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