diff --git a/RecoTracker/LSTCore/src/alpaka/LST.dev.cc b/RecoTracker/LSTCore/src/alpaka/LST.dev.cc index 173476b265a35..18d6aac7681b5 100644 --- a/RecoTracker/LSTCore/src/alpaka/LST.dev.cc +++ b/RecoTracker/LSTCore/src/alpaka/LST.dev.cc @@ -5,6 +5,7 @@ using namespace ALPAKA_ACCELERATOR_NAMESPACE; #include "Math/Vector3D.h" +#include "Math/VectorUtil.h" using XYZVector = ROOT::Math::XYZVector; namespace { @@ -93,7 +94,8 @@ void ALPAKA_ACCELERATOR_NAMESPACE::lst::LST::prepareInput(std::vector con XYZVector p3PCA(see_px[iSeed], see_py[iSeed], see_pz[iSeed]); XYZVector r3PCA(calculateR3FromPCA(p3PCA, see_dxy[iSeed], see_dz[iSeed])); - float pixelSegmentDeltaPhiChange = (r3LH - p3LH).phi(); + // The charge could be used directly in the line below + float pixelSegmentDeltaPhiChange = ROOT::Math::VectorUtil::DeltaPhi(r3LH, p3LH); float etaErr = see_etaErr[iSeed]; float px = p3LH.x(); float py = p3LH.y(); diff --git a/RecoTracker/LSTCore/standalone/code/core/trkCore.cc b/RecoTracker/LSTCore/standalone/code/core/trkCore.cc index 13ae0992f8615..9c7b8e1169b3e 100644 --- a/RecoTracker/LSTCore/standalone/code/core/trkCore.cc +++ b/RecoTracker/LSTCore/standalone/code/core/trkCore.cc @@ -710,6 +710,7 @@ void addInputsToLineSegmentTrackingPreLoad(std::vector> &out_ TVector3 seedSD_r3 = r3LH; TVector3 seedSD_p3 = p3LH; + // The charge could be used directly in the line below float pixelSegmentDeltaPhiChange = r3LH.DeltaPhi(p3LH); float etaErr = trk.see_etaErr()[iSeed]; float px = p3LH.X();