IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 8a073279 authored by Jean-Marco Alameddine's avatar Jean-Marco Alameddine
Browse files

Put projectile back on stack if no stochastic interaction is possible for the current energy

parent 7ea8ba16
No related branches found
No related tags found
1 merge request!421Update PROPOSAL version to 7.3.0
Pipeline #6089 passed with warnings
...@@ -68,9 +68,13 @@ namespace corsika::proposal { ...@@ -68,9 +68,13 @@ namespace corsika::proposal {
auto [type, target_hash, v] = std::get<eINTERACTION>(c->second)->SampleLoss( auto [type, target_hash, v] = std::get<eINTERACTION>(c->second)->SampleLoss(
projectile.getEnergy() / 1_MeV, rates, distr(RNG_)); projectile.getEnergy() / 1_MeV, rates, distr(RNG_));
// TODO: Is this case necessary? // TODO: This should become obsolete as soon #482 is fixed
// In this case, the original particle should not be altered and put back on the stack
if (type == PROPOSAL::InteractionType::Undefined) { if (type == PROPOSAL::InteractionType::Undefined) {
CORSIKA_LOG_WARN(
"PROPOSAL: No particle interaction possible. "
"Put initial particle back on stack.");
view.addSecondary(std::make_tuple(projectileId, projectile.getEnergy(),
projectile.getDirection()));
return ProcessReturn::Ok; return ProcessReturn::Ok;
} }
......
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