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());
44 df.setSize(clf.
size());
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);
100 fC2adc_(clf, df, fCapIdOffset);
void adc2fC_(const Digi &df, CaloSamples &clf) const
void fC2adc(const CaloSamples &clf, HBHEDataFrame &df, int fCapIdOffset) const override
int presamples() const
access presample information
void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const override
HcalCoderDb(const HcalQIECoder &fCoder, const HcalQIEShape &fShape)
void fC2adc_(const CaloSamples &clf, Digi &df, int fCapIdOffset) const
void setPresamples(int pre)
set presample information
const HcalQIEShape * mShape
int size() const
get the size
unsigned adc(const HcalQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -> ADC conversion
DetId id() const
get the (generic) id
const HcalQIECoder * mCoder
uint16_t *__restrict__ uint16_t const *__restrict__ adc
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.