1 #ifndef CastorQIECoder_h
2 #define CastorQIECoder_h
15 #include <boost/cstdint.hpp>
35 unsigned adc (
const CastorQIEShape& fShape,
float fCharge,
unsigned fCapId)
const;
38 float offset (
unsigned fCapId,
unsigned fRange)
const;
39 float slope (
unsigned fCapId,
unsigned fRange)
const;
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)
#define COND_SERIALIZABLE
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