Skip to content

Commit

Permalink
Iterate with a const& to avoid copying the values
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Jul 2, 2020
1 parent 5d3a849 commit 1e63c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoPPS/Local/plugins/TotemRPUVPatternFinder.cc
Expand Up @@ -206,9 +206,9 @@ void TotemRPUVPatternFinder::produce(edm::Event &event, const edm::EventSetup &e
}

// track recognition pot by pot
for (auto it : rpData) {
for (auto const& it : rpData) {
CTPPSDetId rpId(it.first);
RPData &data = it.second;
RPData const &data = it.second;

// merge default and exceptional settings (if available)
unsigned int minPlanesPerProjectionToFit_U = minPlanesPerProjectionToFit;
Expand Down

0 comments on commit 1e63c5c

Please sign in to comment.