diff --git a/PhysicsAnalysis/Algorithms/TrackingAnalysisAlgorithms/Root/SecVertexTruthMatchAlg.cxx b/PhysicsAnalysis/Algorithms/TrackingAnalysisAlgorithms/Root/SecVertexTruthMatchAlg.cxx
index 061197b39f1d7fb2b0e379b3ff2dddfa1c726e5f..b8c6da518b201cd83838e72bc52b8e2cc5e2f843 100644
--- a/PhysicsAnalysis/Algorithms/TrackingAnalysisAlgorithms/Root/SecVertexTruthMatchAlg.cxx
+++ b/PhysicsAnalysis/Algorithms/TrackingAnalysisAlgorithms/Root/SecVertexTruthMatchAlg.cxx
@@ -128,7 +128,7 @@ namespace CP {
     std::vector<const xAOD::Vertex*> recoVerticesToMatch;
     std::vector<const xAOD::TruthVertex*> truthVerticesToMatch;
 
-    for(const auto &recoVertex : *recoVertexContainer) {
+    for(const auto recoVertex : *recoVertexContainer) {
       xAOD::VxType::VertexType vtxType = static_cast<xAOD::VxType::VertexType>( recoVertex->vertexType() );
 
       if(vtxType != xAOD::VxType::SecVtx ){
@@ -138,7 +138,7 @@ namespace CP {
       recoVerticesToMatch.push_back(recoVertex);
     }
 
-    for(const auto &truthVertex : *truthVertexContainer) {
+    for(const auto truthVertex : *truthVertexContainer) {
       if(truthVertex->nIncomingParticles() != 1) {
         continue;
       }