IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 33239ed9 authored by ralfulrich's avatar ralfulrich
Browse files

maybe the enum was not setup correctly

parent ee9ec049
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ namespace corsika::process::qgsjetII { ...@@ -71,7 +71,7 @@ namespace corsika::process::qgsjetII {
if (process::qgsjetII::CanInteract(beamId)) { if (process::qgsjetII::CanInteract(beamId)) {
const int iBeam = process::qgsjetII::GetQgsjetIIXSCodeRaw(beamId); const int xsCode = process::qgsjetII::GetQgsjetIIXSCodeRaw(beamId);
int iTarget = 1; int iTarget = 1;
if (particles::IsNucleus(targetId)) { if (particles::IsNucleus(targetId)) {
iTarget = targetA; iTarget = targetA;
...@@ -88,9 +88,9 @@ namespace corsika::process::qgsjetII { ...@@ -88,9 +88,9 @@ namespace corsika::process::qgsjetII {
throw std::runtime_error("QgsjetII target outside range. "); throw std::runtime_error("QgsjetII target outside range. ");
} }
cout << "QgsjetII::GetCrossSection Elab=" << Elab << " iBeam=" << iBeam cout << "QgsjetII::GetCrossSection Elab=" << Elab << " xs-code=" << xsCode
<< " iProjectile=" << iProjectile << " iTarget=" << iTarget << endl; << " iProjectile=" << iProjectile << " iTarget=" << iTarget << endl;
sigProd = qgsect_(Elab / 1_GeV, iBeam, iProjectile, iTarget); sigProd = qgsect_(Elab / 1_GeV, xsCode, iProjectile, iTarget);
cout << "QgsjetII::GetCrossSection sigProd=" << sigProd << endl; cout << "QgsjetII::GetCrossSection sigProd=" << sigProd << endl;
} }
......
...@@ -50,8 +50,8 @@ namespace corsika::process::qgsjetII { ...@@ -50,8 +50,8 @@ namespace corsika::process::qgsjetII {
Kaon0LType = +5, Kaon0LType = +5,
Kaon0SType = -5, Kaon0SType = -5,
// special codes, not in QGSJetII // special codes, not in QGSJetII
NucleusType, NucleusType = 100,
NeutralLightMesonType NeutralLightMesonType = 101,
}; };
using QgsjetIIHadronTypeIntType = std::underlying_type<QgsjetIIHadronType>::type; using QgsjetIIHadronTypeIntType = std::underlying_type<QgsjetIIHadronType>::type;
......
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