IAP GITLAB

Skip to content
Snippets Groups Projects
Commit ce4aa46c authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

there is no anti-eta

parent 5fcc8145
No related branches found
No related tags found
Loading
......@@ -28,11 +28,11 @@ namespace corsika::process::qgsjetII {
}
corsika::particles::Code constexpr ConvertFromQgsjetII(QgsjetIICode pCode) {
auto const s = static_cast<QgsjetIICodeIntType>(pCode);
auto const corsikaCode = qgsjetII2corsika[s - minQgsjetII];
auto const pCodeInt = static_cast<QgsjetIICodeIntType>(pCode);
auto const corsikaCode = qgsjetII2corsika[pCodeInt - minQgsjetII];
if (corsikaCode == corsika::particles::Code::Unknown) {
throw std::runtime_error(std::string("QGSJETII/CORSIKA conversion of ")
.append(std::to_string(s))
throw std::runtime_error(std::string("QGSJETII/CORSIKA conversion of pCodeInt=")
.append(std::to_string(pCodeInt))
.append(" impossible"));
}
return corsikaCode;
......
......@@ -11,7 +11,7 @@ PiPlus 1 1
PiMinus -1 1
# in crmc: all particles from 100 to 999 ???
Eta 10 1
Eta -10 1
# Eta -10 1 there is no anti-eta
Rho0 19 1
# class 2
......
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