Skip to content

Commit fd11b45

Browse files
committed
minor const-correctness fix
1 parent 3bf58ee commit fd11b45

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SimTracker/Common/interface/SiPixelChargeReweightingAlgorithm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ bool SiPixelChargeReweightingAlgorithm::lateSignalReweight(const PixelGeomDetUni
823823
}
824824

825825
// need to store the digi out of the 21x13 box.
826-
for (auto& i : theDigiSignal) {
826+
for (const auto& i : theDigiSignal) {
827827
// check if in the 21x13 box
828828
int chanDigi = i.first;
829829
std::pair<int, int> ip = PixelDigi::channelToPixel(chanDigi);
@@ -1039,7 +1039,7 @@ bool SiPixelChargeReweightingAlgorithm::lateSignalReweight(const PixelGeomDetUni
10391039
}
10401040

10411041
// need to store the digi out of the 21x13 box.
1042-
for (auto& i : theDigiSignal) {
1042+
for (const auto& i : theDigiSignal) {
10431043
// check if in the 21x13 box
10441044
int chanDigi = i.first;
10451045
std::pair<int, int> ip = PixelDigi::channelToPixel(chanDigi);

SimTracker/SiPixelDigitizer/plugins/PreMixingSiPixelWorker.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void PreMixingSiPixelWorker::addPileups(PileUpEventPrincipal const& pep, edm::Ev
266266
jtest = SiHitExtraStorage_.find(detID);
267267
OneExtraInfoMap LocalSimHitExtraMap = jtest->second;
268268
std::vector<PixelSimHitExtraInfo> TempSimExtra;
269-
for (auto& iLocal : LocalSimHitExtraMap) {
269+
for (const auto& iLocal : LocalSimHitExtraMap) {
270270
TempSimExtra.push_back(iLocal.second);
271271
}
272272

@@ -285,7 +285,7 @@ void PreMixingSiPixelWorker::addPileups(PileUpEventPrincipal const& pep, edm::Ev
285285
jtest = SiHitExtraLiteStorage_.find(detID);
286286
OneExtraInfoLiteMap LocalSimHitExtraMap = jtest->second;
287287
std::vector<PixelSimHitExtraInfoLite> TempSimExtra;
288-
for (auto& iLocal : LocalSimHitExtraMap) {
288+
for (const auto& iLocal : LocalSimHitExtraMap) {
289289
TempSimExtra.push_back(iLocal.second);
290290
}
291291

0 commit comments

Comments
 (0)