Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Detectors/ITSMFT/ITS/tracking/GPU/cuda/TrackingKernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ GPUdii() o2::track::TrackParCov buildTrackSeed(const Cluster& cluster1,

float snp, q2pt, q2pt2;
if (o2::gpu::CAMath::Abs(bz) < 0.01f) {
const float tgp = o2::gpu::CAMath::ATan2(y3 - y1, x3 - x1);
snp = sign * tgp / o2::gpu::CAMath::Sqrt(1.f + tgp * tgp);
const float dx = x3 - x1;
const float dy = y3 - y1;
snp = sign * dy / o2::gpu::CAMath::Hypot(dx, dy);
q2pt = sign / track::kMostProbablePt;
q2pt2 = 1.f;
} else {
Expand Down
5 changes: 3 additions & 2 deletions Detectors/ITSMFT/ITS/tracking/src/TrackerTraits.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1278,8 +1278,9 @@ track::TrackParCov TrackerTraits<nLayers>::buildTrackSeed(const Cluster& cluster

float snp, q2pt, q2pt2;
if (mIsZeroField) {
const float tgp = o2::gpu::CAMath::ATan2(y3 - y1, x3 - x1);
snp = sign * tgp / o2::gpu::CAMath::Sqrt(1.f + tgp * tgp);
const float dx = x3 - x1;
const float dy = y3 - y1;
snp = sign * dy / o2::gpu::CAMath::Hypot(dx, dy);
q2pt = sign / track::kMostProbablePt;
q2pt2 = 1.f;
} else {
Expand Down