15 for (
int i = 0;
i <
df.size();
i++) {
24 for (
int i = 0;
i <
df.samples();
i++) {
25 clf[
i] = mCoder->charge(*mShape,
df[
i].
adc(),
df[
i].capid());
34 for (
int i = 0;
i <
df.samples();
i++) {
35 clf[
i] = mCoder->charge(*mShape,
df[
i].
adc(),
df[
i].capid());
46 for (
int i = 0;
i < clf.
size();
i++) {
47 int capId = (fCapIdOffset +
i) % 4;
54 int presample = clf.presamples();
55 for (
int i = 0;
i < clf.size();
i++) {
56 int capId = (fCapIdOffset +
i) % 4;
57 bool soi = (
i == presample);
58 df.setSample(
i, mCoder->adc(*mShape, clf[
i], capId), 0, 0, capId, soi,
true);
64 int presample = clf.presamples();
65 df.setCapid0(fCapIdOffset % 4);
66 for (
int i = 0;
i < clf.size();
i++) {
67 int capId = (fCapIdOffset +
i) % 4;
68 bool soi = (
i == presample);
69 df.setSample(
i, mCoder->adc(*mShape, clf[
i], capId), 0, soi);
int size() const
get the size
void fC2adc(const CaloSamples &clf, HBHEDataFrame &df, int fCapIdOffset) const override
void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const override
HcalCoderDb(const HcalQIECoder &fCoder, const HcalQIEShape &fShape)
DetId id() const
get the (generic) id
void setPresamples(int pre)
set presample information
const HcalQIEShape * mShape
void fC2adc_(const CaloSamples &clf, Digi &df, int fCapIdOffset) const
unsigned adc(const HcalQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -> ADC conversion
int presamples() const
access presample information
const HcalQIECoder * mCoder
void adc2fC_(const Digi &df, CaloSamples &clf) const
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
uint16_t *__restrict__ uint16_t const *__restrict__ adc