From de80d431af8f07ba30fba93be1764b0e56ef8b97 Mon Sep 17 00:00:00 2001 From: Felix Schlepper Date: Mon, 1 Jun 2026 09:48:14 +0200 Subject: [PATCH] Modify computePhi to constexpr and clean includes Updated computePhi function to be constexpr and removed unnecessary include. --- Detectors/ITSMFT/ITS/tracking/include/ITStracking/MathUtils.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Detectors/ITSMFT/ITS/tracking/include/ITStracking/MathUtils.h b/Detectors/ITSMFT/ITS/tracking/include/ITStracking/MathUtils.h index 950d8c0a9117f..7b586df2108b9 100644 --- a/Detectors/ITSMFT/ITS/tracking/include/ITStracking/MathUtils.h +++ b/Detectors/ITSMFT/ITS/tracking/include/ITStracking/MathUtils.h @@ -16,8 +16,6 @@ #ifndef O2_ITS_TRACKING_MATHUTILS_H_ #define O2_ITS_TRACKING_MATHUTILS_H_ -#include - #include "CommonConstants/MathConstants.h" #include "ITStracking/Constants.h" #include "MathUtils/Utils.h" @@ -27,7 +25,7 @@ namespace o2::its::math_utils { -GPUhdi() float computePhi(float x, float y) +GPUhdi() constexpr float computePhi(float x, float y) { return o2::math_utils::fastATan2(-y, -x) + o2::constants::math::PI; }