Go to the documentation of this file.
15 for (
int i = 0;
i < df.size();
i++) {
44 df.setSize(clf.
size());
46 for (
int i = 0;
i < clf.
size();
i++) {
47 int capId = (fCapIdOffset +
i) % 4;
55 for (
int i = 0;
i < clf.
size();
i++) {
56 int capId = (fCapIdOffset +
i) % 4;
57 bool soi = (
i == presample);
66 for (
int i = 0;
i < clf.
size();
i++) {
67 int capId = (fCapIdOffset +
i) % 4;
68 bool soi = (
i == presample);
100 fC2adc_(clf, df, fCapIdOffset);
void fC2adc(const CaloSamples &clf, HBHEDataFrame &df, int fCapIdOffset) const override
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
constexpr int samples() const
total number of samples in the digi
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.
int size() const
get the size
constexpr void setCapid0(int cap0)
void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const override
HcalCoderDb(const HcalQIECoder &fCoder, const HcalQIEShape &fShape)
constexpr int samples() const
total number of samples in the digi
void setPresamples(int pre)
set presample information
constexpr void setSample(edm::DataFrame::size_type isample, int adc, int tdc, bool soi=false)
set the sample contents
void fC2adc_(const CaloSamples &clf, Digi &df, int fCapIdOffset) const
constexpr edm::DataFrame::id_type id() const
DetId id() const
get the (generic) id
constexpr void setSample(edm::DataFrame::size_type isample, int adc, int le_tdc, int te_tdc, int capid, bool soi=false, bool ok=true)
set the sample contents
int presamples() const
access presample information
void adc2fC_(const Digi &df, CaloSamples &clf) const
const HcalQIEShape * mShape
constexpr edm::DataFrame::id_type id() const
unsigned adc(const HcalQIEShape &fShape, float fCharge, unsigned fCapId) const
fC + capid [0..3] -> ADC conversion
const HcalQIECoder * mCoder