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