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