diff --git a/Tracking/TrkFitter/TrkGlobalChi2Fitter/TrkGlobalChi2Fitter/GXFTrackState.h b/Tracking/TrkFitter/TrkGlobalChi2Fitter/TrkGlobalChi2Fitter/GXFTrackState.h index 581eb4a25610d63c40a8ea59b8623e5bf885c0ba..c92fd711c83e45a219e037d0ab83a50df62c5703 100755 --- a/Tracking/TrkFitter/TrkGlobalChi2Fitter/TrkGlobalChi2Fitter/GXFTrackState.h +++ b/Tracking/TrkFitter/TrkGlobalChi2Fitter/TrkGlobalChi2Fitter/GXFTrackState.h @@ -78,7 +78,7 @@ namespace Trk { bool isRecalibrated(); void setRecalibrated(bool); - const Amg::Vector3D & position(); + Amg::Vector3D position(); void setPosition(Amg::Vector3D &); bool measuresPhi(); diff --git a/Tracking/TrkFitter/TrkGlobalChi2Fitter/src/GXFTrackState.cxx b/Tracking/TrkFitter/TrkGlobalChi2Fitter/src/GXFTrackState.cxx index 973b803de05da09e4d73b3af40995e553ad08f2a..6920de6867eff7dcb0d9bfe5ed3f48c3cf09f6bf 100644 --- a/Tracking/TrkFitter/TrkGlobalChi2Fitter/src/GXFTrackState.cxx +++ b/Tracking/TrkFitter/TrkGlobalChi2Fitter/src/GXFTrackState.cxx @@ -198,7 +198,7 @@ namespace Trk { return nmeas; } - const Amg::Vector3D & GXFTrackState::position() { + Amg::Vector3D GXFTrackState::position() { if (m_trackpar != nullptr) { return m_trackpar->position(); } if (m_measurement != nullptr) {