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