We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b78b46 commit b669badCopy full SHA for b669bad
1 file changed
Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx
@@ -1278,8 +1278,9 @@ track::TrackParCov TrackerTraits<nLayers>::buildTrackSeed(const Cluster& cluster
1278
1279
float snp, q2pt, q2pt2;
1280
if (mIsZeroField) {
1281
- const float tgp = o2::gpu::CAMath::ATan2(y3 - y1, x3 - x1);
1282
- snp = sign * tgp / o2::gpu::CAMath::Sqrt(1.f + tgp * tgp);
+ const float dx = x3 - x1;
+ const float dy = y3 - y1;
1283
+ snp = sign * dy / o2::gpu::CAMath::Hypot(dx, dy);
1284
q2pt = sign / track::kMostProbablePt;
1285
q2pt2 = 1.f;
1286
} else {
0 commit comments