12 : mCoder(&fCoder), mShape(&fShape) {}
17 for (
int i = 0;
i <
df.size();
i++) {
28 for (
int i = 0;
i < clf.
size();
i++) {
29 int capId = (fCapIdOffset +
i) % 4;
float charge(const CastorQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
int size() const
get the size
CastorCoderDb(const CastorQIECoder &fCoder, const CastorQIEShape &fShape)
void fC2adc_(const CaloSamples &clf, Digi &df, int fCapIdOffset) const
const CastorQIEShape * mShape
DetId id() const
get the (generic) id
unsigned adc(const CastorQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -> ADC conversion
void adc2fC(const CastorDataFrame &df, CaloSamples &lf) const override
void setPresamples(int pre)
set presample information
void adc2fC_(const Digi &df, CaloSamples &clf) const
const CastorQIECoder * mCoder
void fC2adc(const CaloSamples &clf, CastorDataFrame &df, int fCapIdOffset) const override
int presamples() const
access presample information
uint16_t *__restrict__ uint16_t const *__restrict__ adc