Skip to content

Commit 3e9df79

Browse files
committed
Make safer - at John's suggestion
1 parent 2215cc3 commit 3e9df79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sbndcode/CRT/CRTReco/CRTStripHitProducer_module.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ std::vector<sbnd::crt::CRTStripHit> sbnd::crt::CRTStripHitProducer::CreateStripH
276276
const uint16_t adc2 = sipm2.pedestal < sipm_adcs[adc_i+1] ? sipm_adcs[adc_i+1] - sipm2.pedestal : 0;
277277

278278
// Saturated?
279-
const bool sat1 = sipm_adcs[adc_i] == fADCSaturation;
280-
const bool sat2 = sipm_adcs[adc_i+1] == fADCSaturation;
279+
const bool sat1 = sipm_adcs[adc_i] >= fADCSaturation;
280+
const bool sat2 = sipm_adcs[adc_i+1] >= fADCSaturation;
281281

282282
// Keep hit if both SiPMs above threshold
283283
if(adc1 > fADCThreshold && adc2 > fADCThreshold)

0 commit comments

Comments
 (0)