1 #ifndef CastorQIECoder_h
2 #define CastorQIECoder_h
13 #include <boost/cstdint.hpp>
33 unsigned adc (
const CastorQIEShape& fShape,
float fCharge,
unsigned fCapId)
const;
36 float offset (
unsigned fCapId,
unsigned fRange)
const;
37 float slope (
unsigned fCapId,
unsigned fRange)
const;
39 void setOffset (
unsigned fCapId,
unsigned fRange,
float fValue);
40 void setSlope (
unsigned fCapId,
unsigned fRange,
float fValue);
void setSlope(unsigned fCapId, unsigned fRange, float fValue)
float charge(const CastorQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
void setOffset(unsigned fCapId, unsigned fRange, float fValue)
CastorQIECoder(unsigned long fId=0)
float offset(unsigned fCapId, unsigned fRange) const
unsigned adc(const CastorQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -> ADC conversion
float slope(unsigned fCapId, unsigned fRange) const