diff --git a/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtParametersBase.cxx b/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtParametersBase.cxx index 609cd85e631bd1b19153eb0d59f855e28fdd10f6..f9879ff9a08c99c5a2d289978506638fa74dcb6f 100755 --- a/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtParametersBase.cxx +++ b/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtParametersBase.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ // TEMPORARY until track EDM is finalised!!!! @@ -64,6 +64,7 @@ namespace Trk { tmp_refFrameY += perGlobalPos.y() ; tmp_refFrameZ += perGlobalPos.z() ; TrkMatControl tmpMat; // Here we create structure to control material effects + tmpMat.trkSavedLocalVertex.setZero(); tmpMat.trkRefGlobPos=Amg::Vector3D(perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z()); if(m_firstMeasuredPoint){ tmpMat.extrapolationType=0;} //First measured point strategy else{ tmpMat.extrapolationType=1;} //Any measured point strategy @@ -173,6 +174,7 @@ namespace Trk { tmp_refFrameY += perGlobalPos.y() ; tmp_refFrameZ += perGlobalPos.z() ; TrkMatControl tmpMat; // Here we create structure to control material effects + tmpMat.trkSavedLocalVertex.setZero(); tmpMat.trkRefGlobPos=Amg::Vector3D(perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z()); // on track extrapolation tmpMat.extrapolationType=0; //First measured point strategy tmpMat.TrkPnt=nullptr; //No reference point for neutral track for the moment !!! diff --git a/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtTrackParticle.cxx b/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtTrackParticle.cxx index 49dadc22495174083ce4a86837e6e0eb342e7ce2..8d640b9e22e441a4f6e333993a92cabfe0902205 100755 --- a/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtTrackParticle.cxx +++ b/Tracking/TrkVertexFitter/TrkVKalVrtFitter/src/CvtTrackParticle.cxx @@ -61,6 +61,7 @@ namespace Trk { tmp_refFrameY += perGlobalPos.y() ; // Use hit position itself to get more precise tmp_refFrameZ += perGlobalPos.z() ; // magnetic field TrkMatControl tmpMat; + tmpMat.trkSavedLocalVertex.setZero(); tmpMat.trkRefGlobPos=Amg::Vector3D( perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z()); tmpMat.extrapolationType=2; // Perigee point strategy tmpMat.TrkPnt=mPer; @@ -157,6 +158,7 @@ namespace Trk { tmp_refFrameY += perGlobalPos.y() ; // Use hit position itself to get more precise tmp_refFrameZ += perGlobalPos.z() ; // magnetic field TrkMatControl tmpMat; + tmpMat.trkSavedLocalVertex.setZero(); tmpMat.trkRefGlobPos=Amg::Vector3D( perGlobalPos.x(), perGlobalPos.y(), perGlobalPos.z()); tmpMat.extrapolationType=2; // Perigee point strategy tmpMat.TrkPnt=nullptr; //No reference point for neutral particle for the moment