1 #ifndef OVERLAY_DATAOVERLAY_RAWDIGITADDER_35T_CXX 2 #define OVERLAY_DATAOVERLAY_RAWDIGITADDER_35T_CXX 12 _forceStuckBitRetention(false),
21 throw std::runtime_error(
"Error in RawDigitAdder_35t::SetScaleInput : scale < 0");
33 else d_out = (short)(std::round((
float)d1 *
_scale1)) + (short)(std::round((
float)d2 *
_scale2));
Defintion for a class to add two vectors together, and give an "added" waveform.
void SetScaleInput(float f, float &_scale)
RawDigitAdder_35t(bool t=true)
void AddRawDigit(short const &, short const &, short &)
bool _forceStuckBitRetention
bool hasStickyBits(AdcCount sig)
void FixOverflow(short &)