18 for (
int i=0;
i<df.size();
i++) {
25 df = Digi (clf.
id ());
26 df.setSize (clf.
size ());
28 for (
int i=0;
i<clf.
size();
i++) {
29 int capId = (fCapIdOffset +
i) % 4;
int adc(sample_type sample)
get the ADC sample (12 bits)
CastorCoderDb(const CastorQIECoder &fCoder, const CastorQIEShape &fShape)
void adc2fC_(const Digi &df, CaloSamples &clf) const
int presamples() const
access presample information
const CastorQIEShape * mShape
virtual void fC2adc(const CaloSamples &clf, CastorDataFrame &df, int fCapIdOffset) const
float charge(const CastorQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
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
virtual void adc2fC(const CastorDataFrame &df, CaloSamples &lf) const
DetId id() const
get the (generic) id
unsigned adc(const CastorQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -> ADC conversion