33GPUhdi() constexpr
float hypot(
float x,
float y)
35 return o2::gpu::CAMath::Hypot(
x,
y);
38GPUhdi() constexpr
float getNormalizedPhi(
float phi)
48 if (o2::gpu::CAMath::Abs(d) < o2::its::constants::Tolerance) {
55 const float den = o2::gpu::CAMath::Hypot(d *
x1 -
a, d *
y1 -
b);
56 if (
den < o2::its::constants::Tolerance) {
62GPUhdi() float computeCurvatureCentreX(
float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
65 float dx21 =
x2 -
x1, dx32 =
x3 -
x2;
66 if (o2::gpu::CAMath::Abs(dx21) < o2::its::constants::Tolerance ||
67 o2::gpu::CAMath::Abs(dx32) < o2::its::constants::Tolerance) {
73 if (o2::gpu::CAMath::Abs(
k2 -
k1) < o2::its::constants::Tolerance) {
82 const float d = o2::gpu::CAMath::Hypot(
x1 -
x2,
y1 -
y2);
83 if (o2::gpu::CAMath::Abs(d) < o2::its::constants::Tolerance) {
89GPUhdi() float smallestAngleDifference(
float a,
float b)
101 float beta =
p / o2::gpu::CAMath::Hypot(mass,
p);
102 return 0.0136f * o2::gpu::CAMath::Sqrt(
xX0) * (1.f + 0.038f * o2::gpu::CAMath::Log(
xX0)) / (beta *
p);