Skip to content

Commit a82d4bd

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void TrackerTraits<nLayers>::computeLayerTracklets(const int iteration, int iROF
173173

174174
if (deltaZ / sigmaZ < mTrkParams[iteration].NSigmaCut &&
175175
((deltaPhi < mTimeFrame->getPhiCut(iLayer) || o2::gpu::GPUCommonMath::Abs(deltaPhi - o2::constants::math::TwoPI) < mTimeFrame->getPhiCut(iLayer)))) {
176-
const float phi{o2::gpu::CAMath::ATan2(currentCluster.yCoordinate - nextCluster.yCoordinate, currentCluster.xCoordinate - nextCluster.xCoordinate)};
176+
const float phi{o2::math_utils::fastATan2(currentCluster.yCoordinate - nextCluster.yCoordinate, currentCluster.xCoordinate - nextCluster.xCoordinate)};
177177
const float tanL = (currentCluster.zCoordinate - nextCluster.zCoordinate) / (currentCluster.radius - nextCluster.radius);
178178
if constexpr (decltype(Tag)::value == PassMode::OnePass::value) {
179179
tracklets.emplace_back(currentSortedIndex, mTimeFrame->getSortedIndex(targetROF, iLayer + 1, iNext), tanL, phi, pivotROF, targetROF);

0 commit comments

Comments
 (0)