Skip to content

Commit 826d436

Browse files
committed
ITS: Tracklet use fastATan2
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 0e23762 commit 826d436

File tree

1 file changed

+3
-3
lines changed
  • Detectors/ITSMFT/ITS/tracking/include/ITStracking

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#include "ITStracking/Constants.h"
2020
#include "ITStracking/Cluster.h"
21+
#include "MathUtils/Utils.h"
2122
#include "GPUCommonRtypes.h"
22-
#include "GPUCommonMath.h"
2323
#include "GPUCommonDef.h"
2424
#include "GPUCommonLogger.h"
2525

@@ -67,8 +67,8 @@ GPUhdi() Tracklet::Tracklet(const int firstClusterOrderingIndex, const int secon
6767
secondClusterIndex{secondClusterOrderingIndex},
6868
tanLambda{(firstCluster.zCoordinate - secondCluster.zCoordinate) /
6969
(firstCluster.radius - secondCluster.radius)},
70-
phi{o2::gpu::GPUCommonMath::ATan2(firstCluster.yCoordinate - secondCluster.yCoordinate,
71-
firstCluster.xCoordinate - secondCluster.xCoordinate)},
70+
phi{o2::math_utils::fastATan2(firstCluster.yCoordinate - secondCluster.yCoordinate,
71+
firstCluster.xCoordinate - secondCluster.xCoordinate)},
7272
rof{static_cast<short>(rof0), static_cast<short>(rof1)}
7373
{
7474
// Nothing to do

0 commit comments

Comments
 (0)