diff --git a/corsika/modules/epos/ParticleConversion.hpp b/corsika/modules/epos/ParticleConversion.hpp index 736b93074d3e50d42c110a249283f7a31f779443..8e501d67f544c3ac6fc0bd23c247d21e9f5e1680 100644 --- a/corsika/modules/epos/ParticleConversion.hpp +++ b/corsika/modules/epos/ParticleConversion.hpp @@ -37,12 +37,12 @@ namespace corsika::epos { unsigned int constexpr get_nucleus_A(EposCode const eposId) { // 100ZZZAAA0 -> std. pdg code EposCodeIntType const eposPdg = static_cast<EposCodeIntType>(eposId); - return int(abs(eposPdg) / 10) % 1000; + return int(eposPdg / 10) % 1000; } unsigned int constexpr get_nucleus_Z(EposCode const eposId) { // 100ZZZAAA0 -> std. pdg code EposCodeIntType const eposPdg = static_cast<EposCodeIntType>(eposId); - return int(abs(eposPdg) / 10000) % 1000; + return int(eposPdg / 10000) % 1000; } EposCode constexpr convertToEpos(Code const code) {