19 coef_.push_back(0.93);
20 coef_.push_back(-0.38275);
21 coef_.push_back(-0.012667);
81 double totalCharge = 0;
82 double peakCharge = 0;
83 double RecomputedEnergy = 0;
89 for (
int i = 0;
i < digi.
size(); ++
i) {
114 for (
unsigned int zz = 1; zz <
coef_.size(); ++zz) {
115 expo_arg +=
coef_[zz] * powRE;
116 powRE *= RecomputedEnergy;
118 cutoff -=
exp(expo_arg);
120 if (peakCharge / totalCharge < cutoff)
137 if (hf.
time() < mintime || hf.
time() > maxtime)
140 }
else if (hf.
id().
depth() == 2) {
151 if (hf.
time() < mintime || hf.
time() > maxtime)
constexpr float energy() const
std::vector< double > HFlongwindowMaxTime_
~HcalHFStatusBitFromDigis()
std::vector< double > HFshortwindowMinTime_
void hfSetFlagFromDigi(HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
Exp< T >::type exp(const T &t)
void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef)
constexpr void setFlagField(uint32_t value, int base, int width=1)
HcalHFStatusBitFromDigis()
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
constexpr int size() const
total number of samples in the digi
double HFshortwindowEthresh_
constexpr float time() const
std::vector< double > HFlongwindowMinTime_
std::vector< double > coef_
constexpr double pedestal(int fCapId) const
get pedestal for capid=0..3
T getParameter(std::string const &) const
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
constexpr int capid() const
get the Capacitor id
std::vector< double > HFshortwindowMaxTime_
double HFlongwindowEthresh_
constexpr HcalDetId id() const
constexpr int depth() const
get the tower depth
constexpr HcalQIESample const & sample(int i) const
access a sample
constexpr double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3