@@ -402,7 +402,7 @@ GPUdi() auto TrackParametrization<value_T>::getR2() const -> value_t
402402template <typename value_T>
403403GPUdi () auto TrackParametrization<value_T>::getR() const -> value_t
404404{
405- return gpu::CAMath::Sqrt (getR2 ());
405+ return math_utils::detail::sqrt< value_t > (getR2 ());
406406}
407407
408408// ____________________________________________________________
@@ -441,7 +441,7 @@ GPUdi() auto TrackParametrization<value_T>::getCsp2() const -> value_t
441441template <typename value_T>
442442GPUdi () auto TrackParametrization<value_T>::getCsp() const -> value_t
443443{
444- return gpu::CAMath::Sqrt (getCsp2 ());
444+ return math_utils::detail::sqrt< value_t > (getCsp2 ());
445445}
446446
447447// ____________________________________________________________
@@ -518,7 +518,7 @@ GPUdi() void TrackParametrization<value_T>::getCircleParamsLoc(value_t bz, o2::m
518518 constexpr value_t MinSagitta = 0 .01f , TPCMidR = 160 .f , MinCurv = 8 * MinSagitta / (TPCMidR * TPCMidR);
519519 if (gpu::CAMath::Abs (c.rC ) > MinCurv) {
520520 c.rC = 1 .f / getCurvature (bz);
521- value_t sn = getSnp (), cs = gpu::CAMath::Sqrt ((1 .f - sn) * (1 .f + sn));
521+ value_t sn = getSnp (), cs = math_utils::detail::sqrt< value_t > ((1 .f - sn) * (1 .f + sn));
522522 c.xC = getX () - sn * c.rC ; // center in tracking
523523 c.yC = getY () + cs * c.rC ; // frame. Note: r is signed!!!
524524 c.rC = gpu::CAMath::Abs (c.rC );
@@ -546,7 +546,7 @@ GPUdi() void TrackParametrization<value_T>::getLineParams(o2::math_utils::Interv
546546 // get line parameterization as { x = x0 + xSlp*t, y = y0 + ySlp*t }
547547 o2::math_utils::detail::sincos (getAlpha (), sna, csa);
548548 o2::math_utils::detail::rotateZ<value_t >(getX (), getY (), ln.getX0 (), ln.getY0 (), sna, csa); // reference point in global frame
549- value_t snp = getSnp (), csp = gpu::CAMath::Sqrt ((1 .f - snp) * (1 .f + snp));
549+ value_t snp = getSnp (), csp = math_utils::detail::sqrt< value_t > ((1 .f - snp) * (1 .f + snp));
550550 ln.setDX (csp * csa - snp * sna);
551551 ln.setDY (snp * csa + csp * sna);
552552}
@@ -577,7 +577,7 @@ template <typename value_T>
577577GPUdi () auto TrackParametrization<value_T>::getPhi() const -> value_t
578578{
579579 // track pt direction phi (in 0:2pi range)
580- value_t phi = gpu::CAMath::ASin (getSnp ()) + getAlpha ();
580+ value_t phi = math_utils::detail::asin< value_t > (getSnp ()) + getAlpha ();
581581 math_utils::detail::bringTo02Pi<value_t >(phi);
582582 return phi;
583583}
@@ -587,7 +587,7 @@ template <typename value_T>
587587GPUdi () auto TrackParametrization<value_T>::getPhiPos() const -> value_t
588588{
589589 // angle of track position (in -pi:pi range)
590- value_t phi = gpu::CAMath::ATan2 (getY (), getX ()) + getAlpha ();
590+ value_t phi = math_utils::detail::atan2< value_t > (getY (), getX ()) + getAlpha ();
591591 math_utils::detail::bringTo02Pi<value_t >(phi);
592592 return phi;
593593}
@@ -638,7 +638,7 @@ template <typename value_T>
638638GPUdi () auto TrackParametrization<value_T>::getPInv() const -> value_t
639639{
640640 // return the inverted track momentum
641- return getPtInv () / gpu::CAMath::Sqrt (1 .f + getTgl () * getTgl ()); // getPtInv() is protected against being 0, full charge accounted
641+ return getPtInv () / math_utils::detail::sqrt< value_t > (1 .f + getTgl () * getTgl ()); // getPtInv() is protected against being 0, full charge accounted
642642}
643643
644644// ____________________________________________________________
@@ -662,7 +662,7 @@ template <typename value_T>
662662GPUdi () auto TrackParametrization<value_T>::getE() const -> value_t
663663{
664664 // return the track energy
665- return gpu::CAMath::Sqrt (getE2 ());
665+ return math_utils::detail::sqrt< value_t > (getE2 ());
666666}
667667
668668// ____________________________________________________________
@@ -677,14 +677,14 @@ GPUdi() auto TrackParametrization<value_T>::getPt() const -> value_t
677677template <typename value_T>
678678GPUdi () auto TrackParametrization<value_T>::getTheta() const -> value_t
679679{
680- return constants::math::PIHalf - gpu::CAMath::ATan (mP [3 ]);
680+ return constants::math::PIHalf - math_utils::detail::atan< value_t > (mP [3 ]);
681681}
682682
683683// ____________________________________________________________
684684template <typename value_T>
685685GPUdi () auto TrackParametrization<value_T>::getEta() const -> value_t
686686{
687- return -gpu::CAMath::Log ( gpu::CAMath::Tan (0 .5f * getTheta ()));
687+ return -math_utils::detail::log< value_t >(math_utils::detail::tan< value_t > (0 .5f * getTheta ()));
688688}
689689
690690// _______________________________________________________
0 commit comments