diff --git a/Tracking/TrkEvent/TrkParametersBase/TrkParametersBase/ParametersT.icc b/Tracking/TrkEvent/TrkParametersBase/TrkParametersBase/ParametersT.icc index 1715d16a155ccdfc45829fc31e9aff73ce7fd2a4..dd7bac520e72a3f707387ea7f69673b8e2a38a3f 100644 --- a/Tracking/TrkEvent/TrkParametersBase/TrkParametersBase/ParametersT.icc +++ b/Tracking/TrkEvent/TrkParametersBase/TrkParametersBase/ParametersT.icc @@ -19,7 +19,6 @@ namespace Trk static constexpr double INVALID=std::numeric_limits<double>::quiet_NaN(); static constexpr double INVALID_P(10e9); static constexpr double INVALID_QOP(10e-9); - static const Amg::Vector2D INVALID_POSITION(INVALID,INVALID); template<typename T> int sgn(const T& val) @@ -133,7 +132,7 @@ namespace Trk Amg::Vector2D lPosition; const bool ok = m_surface->globalToLocal(position(),momentum(),lPosition); if(not ok) - lPosition = INVALID_POSITION; + lPosition = Amg::Vector2D (INVALID,INVALID); // fill the vector now m_parameters << lPosition[Trk::loc1], lPosition[Trk::loc2], momentum().phi(), @@ -174,7 +173,7 @@ namespace Trk Amg::Vector2D lPosition; const bool ok = m_surface->globalToLocal(position(),momentum(),lPosition); if (not ok) - lPosition = INVALID_POSITION; + lPosition = Amg::Vector2D (INVALID,INVALID); // fill the vector now m_parameters << lPosition[Trk::loc1], lPosition[Trk::loc2], phi, theta, qop;