Go to the documentation of this file.
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 > HFshortwindowMaxTime_
std::vector< double > HFshortwindowMinTime_
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
HcalHFStatusBitFromDigis()
constexpr HcalQIESample const & sample(int i) const
access a sample
void hfSetFlagFromDigi(HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
std::vector< double > coef_
constexpr int size() const
total number of samples in the digi
void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef)
double HFlongwindowEthresh_
std::vector< double > HFlongwindowMaxTime_
constexpr int capid() const
get the Capacitor id
T getParameter(std::string const &) const
std::vector< double > HFlongwindowMinTime_
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
double HFshortwindowEthresh_
~HcalHFStatusBitFromDigis()