Skip to content

Commit

Permalink
Update Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx
Browse files Browse the repository at this point in the history
Co-authored-by: Matteo Concas <mconcas@cern.ch>
  • Loading branch information
davidrohr and mconcas authored Mar 15, 2024
1 parent a89af5f commit 8dc1d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ track::TrackParCov TrackerTraits::buildTrackSeed(const Cluster& cluster1, const
const float z3 = tf3.positionTrackingFrame[1];

const bool zeroField{std::abs(getBz()) < o2::constants::math::Almost0};
const float tgp = zeroField ? std::atan2(y3 - y1, x3 - x1) : 1.f;
const float tgp = zeroField ? o2::gpu::CAMath::ATan2(y3 - y1, x3 - x1) : 1.f;
const float crv = zeroField ? 1.f : math_utils::computeCurvature(x3, y3, x2, y2, x1, y1);
const float snp = zeroField ? tgp / o2::gpu::CAMath::Sqrt(1.f + tgp * tgp) : crv * (x3 - math_utils::computeCurvatureCentreX(x3, y3, x2, y2, x1, y1));
const float tgl12 = math_utils::computeTanDipAngle(x1, y1, x2, y2, z1, z2);
Expand Down

0 comments on commit 8dc1d54

Please sign in to comment.