Skip to content

Commit 58bff66

Browse files
committed
ITS: constexpr computePhi
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 4e0f039 commit 58bff66

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • Detectors/ITSMFT/ITS/tracking/include/ITStracking

Detectors/ITSMFT/ITS/tracking/include/ITStracking/MathUtils.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#ifndef O2_ITS_TRACKING_MATHUTILS_H_
1717
#define O2_ITS_TRACKING_MATHUTILS_H_
1818

19-
#include <cstdint>
20-
2119
#include "CommonConstants/MathConstants.h"
2220
#include "ITStracking/Constants.h"
2321
#include "MathUtils/Utils.h"
@@ -27,7 +25,7 @@
2725
namespace o2::its::math_utils
2826
{
2927

30-
GPUhdi() float computePhi(float x, float y)
28+
GPUhdi() constexpr float computePhi(float x, float y)
3129
{
3230
return o2::math_utils::fastATan2(-y, -x) + o2::constants::math::PI;
3331
}

0 commit comments

Comments
 (0)