19 coef_.push_back(0.93);
20 coef_.push_back(-0.38275);
21 coef_.push_back(-0.012667);
87 double RecomputedEnergy=0;
120 for (
unsigned int zz=1;zz<
coef_.size();++zz)
122 expo_arg+=
coef_[zz]*powRE;
123 powRE*=RecomputedEnergy;
125 cutoff-=
exp(expo_arg);
127 if (peakCharge/totalCharge<cutoff)
147 if (hf.
time()<mintime || hf.
time()>maxtime)
165 if (hf.
time()<mintime || hf.
time()>maxtime)
T getParameter(std::string const &) const
std::vector< double > HFlongwindowMaxTime_
~HcalHFStatusBitFromDigis()
double respcorrgain(int fCapId) const
get response corrected gain for capid=0..3
std::vector< double > HFshortwindowMinTime_
void hfSetFlagFromDigi(HFRecHit &hf, const HFDataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calib)
void setFlagField(uint32_t value, int base, int width=1)
double pedestal(int fCapId) const
get pedestal for capid=0..3
void resetParamsFromDB(int firstSample, int samplesToAdd, int expectedPeak, double minthreshold, const std::vector< double > &coef)
HcalHFStatusBitFromDigis()
int depth() const
get the tower depth
MVATrainerComputer * calib
void resetFlagTimeSamples(int firstSample, int samplesToAdd, int expectedPeak)
double HFshortwindowEthresh_
std::vector< double > HFlongwindowMinTime_
const HcalQIESample & sample(int i) const
access a sample
std::vector< double > coef_
int size() const
total number of samples in the digi
int capid() const
get the Capacitor id
virtual void adc2fC(const HBHEDataFrame &df, CaloSamples &lf) const =0
std::vector< double > HFshortwindowMaxTime_
double HFlongwindowEthresh_