Skip to content

Commit de80d43

Browse files
authored
Modify computePhi to constexpr and clean includes
Updated computePhi function to be constexpr and removed unnecessary include.
1 parent 6364844 commit de80d43

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)