Skip to content

Commit

Permalink
Capture by const &.
Browse files Browse the repository at this point in the history
  • Loading branch information
rekovic committed Jun 28, 2020
1 parent 02ab555 commit 1c3c7f6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -403,7 +403,7 @@ void L1EGCrystalClusterEmulatorProducer::produce(edm::Event& iEvent, const edm::
throw cms::Exception("L1EGCrystalClusterEmulatorProducer");
continue;
}
std::vector<HcalDetId> hcId = theTrigTowerGeometry.detIds(hit.id());
const std::vector<HcalDetId>& hcId = theTrigTowerGeometry.detIds(hit.id());
if (hcId.empty()) {
LogError("L1EGCrystalClusterEmulatorProducer")
<< "Cannot find any HCalDetId corresponding to " << hit.id() << std::endl;
Expand Down

0 comments on commit 1c3c7f6

Please sign in to comment.