Unsigned eicd::RawCalorimeterHit amplitude causes threshold issues
(rh.getAmplitude() - m_pedMeanADC) < thresholdADC
for negative rh.getAmplitude() - m_pedMeanADC
will results in wraparound since unsigned int - int
is an unsigned int
.
(rh.getAmplitude() - m_pedMeanADC) < thresholdADC
for negative rh.getAmplitude() - m_pedMeanADC
will results in wraparound since unsigned int - int
is an unsigned int
.