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) {
96 RecomputedEnergy +=
value *
calib.respcorrgain(capid);
114 for (
unsigned int zz = 1;
zz <
coef_.size(); ++
zz) {
116 powRE *= RecomputedEnergy;
120 if (peakCharge / totalCharge <
cutoff)
126 if (
hf.id().depth() == 1) {
128 float mult = 1. /
hf.energy();
140 }
else if (
hf.id().depth() == 2) {
142 float mult = 1. /
hf.energy();
std::vector< double > HFlongwindowMaxTime_
T getParameter(std::string const &) const
~HcalHFStatusBitFromDigis()
std::vector< double > HFshortwindowMinTime_
void hfSetFlagFromDigi(HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef)
HcalHFStatusBitFromDigis()
constexpr HcalQIESample const & sample(int i) const
access a sample
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
double HFshortwindowEthresh_
std::vector< double > HFlongwindowMinTime_
std::vector< double > coef_
constexpr int size() const
total number of samples in the digi
constexpr int capid() const
get the Capacitor id
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
std::vector< double > HFshortwindowMaxTime_
double HFlongwindowEthresh_