IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 4e64d639 authored by Felix Riehn's avatar Felix Riehn
Browse files

catch wrong projectile in DoInteraction call

parent f64c7d4f
No related branches found
No related tags found
1 merge request!65Resolve "add sibyll process NuclearInteraction"
......@@ -185,9 +185,10 @@ namespace corsika::process::sibyll {
cout << "ProcessSibyll: "
<< "DoInteraction: " << corsikaBeamId << " interaction? "
<< process::sibyll::CanInteract(corsikaBeamId) << endl;
if(corsika::particles::IsNucleus(corsikaBeamId)){
// nuclei handled by different process, skip
return process::EProcessReturn::eOk;
// nuclei handled by different process, this should not happen
throw std::runtime_error("Nuclear projectile are not handled by SIBYLL!");
}
if (process::sibyll::CanInteract(corsikaBeamId)) {
......
......@@ -203,7 +203,6 @@ namespace corsika::process::sibyll {
if(!IsNucleus(corsikaProjId)){
// this should not happen
throw std::runtime_error("Non nuclear projectile in NUCLIB!");
return process::EProcessReturn::eOk;
}
fCount++;
......
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