diff --git a/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrization.h b/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrization.h index 766000ab191b0..dc2799e4592d8 100644 --- a/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrization.h +++ b/DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrization.h @@ -641,7 +641,7 @@ GPUdi() auto TrackParametrization::getXYZGlo() const -> math_utils::Poi #else // mockup on GPU without ROOT float sina, cosa; gpu::CAMath::SinCos(getAlpha(), sina, cosa); - return math_utils::Point3D(cosa * getX() + sina * getY(), cosa * getY() - sina * getX(), getZ()); + return math_utils::Point3D(cosa * getX() - sina * getY(), cosa * getY() + sina * getX(), getZ()); #endif } @@ -671,7 +671,7 @@ GPUdi() auto TrackParametrization::getXYZGloAt(value_t xk, value_t b, b #else // mockup on GPU without ROOT float sina, cosa; gpu::CAMath::SinCos(getAlpha(), sina, cosa); - return math_utils::Point3D(cosa * xk + sina * y, cosa * y - sina * xk, z); + return math_utils::Point3D(cosa * xk - sina * y, cosa * y + sina * xk, z); #endif } else { return math_utils::Point3D();