diff --git a/RecoLocalTracker/SiStripZeroSuppression/src/SiStripAPVRestorer.cc b/RecoLocalTracker/SiStripZeroSuppression/src/SiStripAPVRestorer.cc index 78eeb3dc33cd2..0443d3634b135 100644 --- a/RecoLocalTracker/SiStripZeroSuppression/src/SiStripAPVRestorer.cc +++ b/RecoLocalTracker/SiStripZeroSuppression/src/SiStripAPVRestorer.cc @@ -541,8 +541,8 @@ void inline SiStripAPVRestorer::cleaner_LocalMinimumAdder(const digivector_t& ad } const uint16_t firstStripFlat = smoothedpoints.begin()->first; - const uint16_t lastStripFlat = smoothedpoints.begin()->first; - const int16_t firstStripFlatADC = (--smoothedpoints.end())->second; + const uint16_t lastStripFlat = (--smoothedpoints.end())->first; + const int16_t firstStripFlatADC = smoothedpoints.begin()->second; const int16_t lastStripFlatADC = (--smoothedpoints.end())->second; if ( firstStripFlat > 3 ) { auto it = smoothedpoints.begin();