25 const int nRead = cs.
size();
35 for (
int ts = 0; ts < nRead; ++ts) {
37 const int capid = s.
capid();
38 const float q = cs[ts] - calib.
pedestal(capid);
52 }
else if (0 <= tsToUse && tsToUse < nRead) {
54 const int capid = s.
capid();
66 const int winCenter = nStore / 2;
67 if (tsToUse > winCenter)
68 shift = tsToUse - winCenter;
69 if (shift + nStore > nRead)
70 shift = nRead - nStore;
75 for (
int i = 0;
i < nStore; ++
i)
76 raw[
i] = digi[
i + shift].wideRaw();
HFQIE10Info reconstruct(const QIE10DataFrame &digi, int tsToUse, const HcalCoder &coder, const HcalCalibrations &calibs) const
unique_ptr< ClusterSequence > cs
edm::DataFrame::id_type id() const
constexpr float getTDCTime(const int tdc)
QIE10DataFrame::Sample::wide_type wideRaw() const
QIE10DataFrame::Sample::wide_type raw_type
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
constexpr double pedestal(int fCapId) const
get pedestal for capid=0..3
int size() const
get the size
constexpr float UNKNOWN_T_NOTDC
static unsigned int const shift
static const unsigned N_RAW_MAX
constexpr double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3