Definition at line 10 of file HFPreRecAlgo.h.
Definition at line 12 of file HFPreRecAlgo.cc.
References HcalCoder::adc2fC(), QIE10DataFrame::Sample::capid(), ALCARECOTkAlJpsiMuMu_cff::charge, fwrapper::cs, HCALHighEnergyHPDFilter_cfi::energy, HcalSpecialTimes::getTDCTime(), mps_fire::i, QIE10DataFrame::id(), QIE10DataFrame::Sample::le_tdc(), min(), HFQIE10Info::N_RAW_MAX, HcalCalibrations::pedestal(), data-class-funcs::q, HcalCalibrations::respcorrgain(), mps_fire::result, alignCSCRings::s, edm::shift, CaloSamples::size(), sumAllTS_, HcalSpecialTimes::UNKNOWN_T_NOTDC, and QIE10DataFrame::Sample::wideRaw().
Referenced by HFPreReconstructor::fillInfos(), and ~HFPreRecAlgo().
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);
42 raw[ts] =
s.wideRaw();
52 }
else if (0 <= tsToUse && tsToUse < nRead) {
54 const int capid =
s.capid();
55 const float charge = cs[tsToUse] -
calib.pedestal(capid);
56 const float energy = charge *
calib.respcorrgain(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();
unique_ptr< ClusterSequence > cs
edm::DataFrame::id_type id() const
constexpr float getTDCTime(const int tdc)
QIE10DataFrame::Sample::wide_type raw_type
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
int size() const
get the size
constexpr float UNKNOWN_T_NOTDC
static unsigned int const shift
static const unsigned N_RAW_MAX