#include <HFPreRecAlgo.h>
Definition at line 10 of file HFPreRecAlgo.h.
◆ HFPreRecAlgo()
HFPreRecAlgo::HFPreRecAlgo |
( |
const bool |
sumAllTS | ) |
|
|
inlineexplicit |
◆ ~HFPreRecAlgo()
HFPreRecAlgo::~HFPreRecAlgo |
( |
| ) |
|
|
inline |
◆ reconstruct()
Definition at line 12 of file HFPreRecAlgo.cc.
25 const int nRead =
cs.size();
35 for (
int ts = 0; ts < nRead; ++ts) {
37 const int capid =
s.capid();
39 const float q =
cs[ts] - pAndGain.pedestal(
false);
43 raw[ts] =
s.wideRaw();
53 }
else if (0 <= tsToUse && tsToUse < nRead) {
55 const int capid =
s.capid();
57 const float charge =
cs[tsToUse] - pAndGain.pedestal(
false);
68 const int winCenter = nStore / 2;
69 if (tsToUse > winCenter)
70 shift = tsToUse - winCenter;
71 if (
shift + nStore > nRead)
72 shift = nRead - nStore;
77 for (
int i = 0;
i < nStore; ++
i)
78 raw[
i] = digi[
i +
shift].wideRaw();
References HcalCoder::adc2fC(), ALCARECOTkAlJpsiMuMu_cff::charge, fwrapper::cs, HCALHighEnergyHPDFilter_cfi::energy, HcalSpecialTimes::getTDCTime(), mps_fire::i, QIE10DataFrame::id(), min(), HFQIE10Info::N_RAW_MAX, HcalChannelProperties::pedsAndGains, submitPVResolutionJobs::q, mps_fire::result, alignCSCRings::s, edm::shift, sumAllTS_, and HcalSpecialTimes::UNKNOWN_T_NOTDC.
Referenced by HFPreReconstructor::fillInfos().
◆ sumAllTS_
bool HFPreRecAlgo::sumAllTS_ |
|
private |