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;
void fC2adc(const CaloSamples &clf, CastorDataFrame &df, int fCapIdOffset) const override
CastorCoderDb(const CastorQIECoder &fCoder, const CastorQIEShape &fShape)
void adc2fC_(const Digi &df, CaloSamples &clf) const
int presamples() const
access presample information
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
const CastorQIEShape * mShape
float charge(const CastorQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
void setPresamples(int pre)
set presample information
void fC2adc_(const CaloSamples &clf, Digi &df, int fCapIdOffset) const
const CastorQIECoder * mCoder
int size() const
get the size
void adc2fC(const CastorDataFrame &df, CaloSamples &lf) const override
DetId id() const
get the (generic) id
unsigned adc(const CastorQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -> ADC conversion