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, HcalSpecialTimes::getTDCTime(), mps_fire::i, QIE10DataFrame::id(), QIE10DataFrame::Sample::le_tdc(), min(), HFQIE10Info::N_RAW_MAX, HcalCalibrations::pedestal(), lumiQueryAPI::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().
26 const int nRead = cs.
size();
34 double charge = 0.0, energy = 0.0;
37 for (
int ts=0; ts<nRead; ++ts)
40 const int capid =
s.capid();
41 const float q = cs[ts] -
calib.pedestal(capid);
43 energy += q*
calib.respcorrgain(capid);
45 raw[ts] =
s.wideRaw();
55 timeRising, timeFalling,
58 else if (0 <= tsToUse && tsToUse < nRead)
61 const int capid =
s.capid();
62 const float charge = cs[tsToUse] -
calib.pedestal(capid);
63 const float energy = charge*
calib.respcorrgain(capid);
74 const int winCenter = nStore/2;
75 if (tsToUse > winCenter)
76 shift = tsToUse - winCenter;
77 if (shift + nStore > nRead)
78 shift = nRead - nStore;
83 for (
int i=0;
i<nStore; ++
i)
84 raw[
i] = digi[
i + shift].wideRaw();
87 timeRising, timeFalling,
88 raw, nStore, tsToUse -
shift);
auto_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