From aa8898247be1d5fbf72f16cdc51edb0769a8d7c9 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Mon, 9 May 2022 09:09:20 -0400 Subject: [PATCH] FlavorTagDiscriminants: clang warning. Binding to temporary in for loop. --- .../FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx b/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx index 67175200149d..a67c1e24b5d9 100644 --- a/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx +++ b/PhysicsAnalysis/JetTagging/FlavorTagDiscriminants/src/TrackTruthDecoratorAlg.cxx @@ -74,7 +74,7 @@ namespace FlavorTagDiscriminants { // sort the tracks by pt to ensure the vertex clustering is deterministic std::vector<const xAOD::TrackParticle*> sorted_tracks; - for (const auto& track : *tracks) { sorted_tracks.push_back(track); } + for (const auto track : *tracks) { sorted_tracks.push_back(track); } std::sort(sorted_tracks.begin(), sorted_tracks.end(), sort_tracks); // first loop - decorate origin label, just store truth vertex for now -- GitLab