From be17d655514505c5f89c1ad7d1e97456fa88f6f6 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Tue, 12 Oct 2021 14:14:15 +0200 Subject: [PATCH] no abs in epos particle conversions --- corsika/modules/epos/ParticleConversion.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corsika/modules/epos/ParticleConversion.hpp b/corsika/modules/epos/ParticleConversion.hpp index 736b93074..8e501d67f 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) { -- GitLab