IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 459849b2 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

removed redundant code

parent 9a630f1c
No related branches found
No related tags found
No related merge requests found
......@@ -88,15 +88,13 @@ namespace corsika::qgsjetII {
int const iBeam = static_cast<QgsjetIIXSClassIntType>(
corsika::qgsjetII::getQgsjetIIXSCode(projectileId));
int const iTarget = is_nucleus(targetId) ? get_nucleus_A(targetId) : 1;
int const iProjectile = is_nucleus(projectileId) ? get_nucleus_A(projectileId) : 1;
CORSIKA_LOG_DEBUG(
"QgsjetII::getCrossSection Elab= {} GeV iBeam= {}"
" iProjectile= {} iTarget= {}",
ElabN / 1_GeV, iBeam, iProjectile, iTarget);
ElabN / 1_GeV, iBeam, AfactorProjectile, AfactorTarget);
double const ElabNGeV{ElabN * (1 / 1_GeV)};
double const sigProd = qgsect_(ElabNGeV, iBeam, iProjectile, iTarget);
double const sigProd = qgsect_(ElabNGeV, iBeam, AfactorProjectile, AfactorTarget);
CORSIKA_LOG_DEBUG("QgsjetII::getCrossSection sigProd= {} mb", sigProd);
return sigProd * 1_mb;
}
......
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