33GPUhdi() constexpr
float hypot(
float x,
float y)
35 return o2::gpu::CAMath::Hypot(
x,
y);
38GPUhdi() constexpr
float getNormalizedPhi(
float phi)
60GPUhdi() float computeCurvatureCentreX(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
63 float dx21 =
x2 -
x1, dx32 =
x3 -
x2;
80 const float d = o2::gpu::CAMath::Hypot(
x1 -
x2,
y1 -
y2);
87GPUhdi() float smallestAngleDifference(
float a,
float b)
92GPUhdi() bool isPhiDifferenceBelow(const
float phiA, const
float phiB, const
float phiCut)
94 const float deltaPhi = o2::gpu::CAMath::Abs(phiA -
phiB);
98GPUhdi() constexpr
float Sq(
float v)
105 return Sq(
v) + Sq(
w);
108GPUhdi() constexpr
float SqSum(
float u,
float v,
float w)
110 return Sq(u) + SqSum(
v,
w);
113GPUhdi() constexpr
float SqDiff(
float x,
float y)
120 float beta =
p / o2::gpu::CAMath::Hypot(mass,
p);
121 return 0.0136f * o2::gpu::CAMath::Sqrt(
xX0) * (1.f + 0.038f * o2::gpu::CAMath::Log(
xX0)) / (beta *
p);