Skip to content

Commit

Permalink
Fix a regression in SiStripAPVRestorer::cleaner_LocalMinimumAdder
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterdavid committed Sep 5, 2018
1 parent b462d55 commit bcf84c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bcf84c8

Please sign in to comment.