14 if (fAdc >= 31)
return (3*data[31]-data[30])/2.;
15 return (data[fAdc]+data[fAdc+1])/2;
21 for (; adc < 32; adc++) {
22 if (fCharge < data[adc])
return adc-1;
29 return fBin < 32 ? data[fBin] : data[31];
40 if (fBin < 32) data [fBin] = fValue;
45 for (
int i = 0;
i < 32;
i++) data[
i] = fValue[
i];
float minCharge(unsigned fBin) const
float charge(const unsigned fAdc) const
ADC [0..31] -> fC conversion.
unsigned adc(const float fCharge) const
fC -> ADC conversion
void setMinCharges(const float fValue[32])
const float * base() const
void setMinCharge(unsigned fBin, float fValue)
char data[epos_bytes_allocation]
const float * minCharges() const