Skip to content
Snippets Groups Projects
Commit a71ddf6c authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

L1TopoCoreSim: Fix clang 10 warning.

Avoid spurious object copy in range for.
parent ec7c7242
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
*/
#include <iostream>
#include <vector>
......@@ -68,7 +68,7 @@ int run(int argc, const char* argv[]) {
h[2] = new TH1F("Decision/DecisionModule3", "L1 Topo Decision (Module 3)", 64, 0, 64);
const std::vector<TXC::TriggerLine> & topoTriggers = XMLParser.menu().getL1TopoConfigOutputList().getTriggerLines();
for(const TXC::TriggerLine tl : topoTriggers) {
for(const TXC::TriggerLine& tl : topoTriggers) {
h[tl.module()]->GetXaxis()->SetBinLabel(1+ tl.counter() % 64, tl.name().c_str());
}
for(uint i=0; i<3; ++i)
......
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