Skip to content
Snippets Groups Projects
Commit 25a14517 authored by Scott Snyder's avatar Scott Snyder Committed by Tadej Novak
Browse files

TrackingAnalysisAlgorithms: Fix clang warnings.

TrackingAnalysisAlgorithms: Fix clang warnings.

Binding references to temporaries in range-for.
parent d56ff48c
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ namespace CP { ...@@ -128,7 +128,7 @@ namespace CP {
std::vector<const xAOD::Vertex*> recoVerticesToMatch; std::vector<const xAOD::Vertex*> recoVerticesToMatch;
std::vector<const xAOD::TruthVertex*> truthVerticesToMatch; 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() ); xAOD::VxType::VertexType vtxType = static_cast<xAOD::VxType::VertexType>( recoVertex->vertexType() );
if(vtxType != xAOD::VxType::SecVtx ){ if(vtxType != xAOD::VxType::SecVtx ){
...@@ -138,7 +138,7 @@ namespace CP { ...@@ -138,7 +138,7 @@ namespace CP {
recoVerticesToMatch.push_back(recoVertex); recoVerticesToMatch.push_back(recoVertex);
} }
for(const auto &truthVertex : *truthVertexContainer) { for(const auto truthVertex : *truthVertexContainer) {
if(truthVertex->nIncomingParticles() != 1) { if(truthVertex->nIncomingParticles() != 1) {
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment