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, 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, HcalSpecialTimes::UNKNOWN_T_OVERSHOOT, HcalSpecialTimes::UNKNOWN_T_UNDERSHOOT, and QIE10DataFrame::Sample::wideRaw().
Referenced by HFPreReconstructor::fillInfos(), and ~HFPreRecAlgo().
18 static const float qie10_tdc_to_ns = 0.5f;
22 static const int qie10_tdc_code_overshoot = 62;
23 static const int qie10_tdc_code_undershoot = 63;
34 const int nRead = cs.
size();
42 double charge = 0.0, energy = 0.0;
45 for (
int ts=0; ts<nRead; ++ts)
48 const int capid =
s.capid();
49 const float q = cs[ts] -
calib.pedestal(capid);
51 energy += q*
calib.respcorrgain(capid);
53 raw[ts] =
s.wideRaw();
63 timeRising, timeFalling,
66 else if (0 <= tsToUse && tsToUse < nRead)
69 const int capid =
s.capid();
70 const float charge = cs[tsToUse] -
calib.pedestal(capid);
71 const float energy = charge*
calib.respcorrgain(capid);
73 const int tdc =
s.le_tdc();
74 float timeRising = qie10_tdc_to_ns*tdc;
75 if (tdc == qie10_tdc_code_overshoot)
77 else if (tdc == qie10_tdc_code_undershoot)
88 const int winCenter = nStore/2;
89 if (tsToUse > winCenter)
90 shift = tsToUse - winCenter;
91 if (shift + nStore > nRead)
92 shift = nRead - nStore;
97 for (
int i=0;
i<nStore; ++
i)
98 raw[
i] = digi[
i + shift].wideRaw();
101 timeRising, timeFalling,
102 raw, nStore, tsToUse -
shift);
auto_ptr< ClusterSequence > cs
edm::DataFrame::id_type id() const
constexpr float UNKNOWN_T_UNDERSHOOT
constexpr float UNKNOWN_T_OVERSHOOT
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