11 samplecount_(samples),
16 namespace ZSEnergy_impl {
27 for (
int j=0;
j<4;
j++) {
38 for (
int j=0;
j<samples &&
j+firstSample < inp.size();
j++) {
45 if (sum>=threshold) keepIt=
true;
46 else if (sum<=(-threshold) && twosided) keepIt=
true;
virtual bool shouldKeep(const HBHEDataFrame &digi) const
tuple start
Check for commandline option errors.
static const double slope[3]
HcalZSAlgoEnergy(bool markAndPass, int level, int start, int samples, bool twosided)
void prepare(const HcalDbService *db)
float getValue(int fCapId) const
get value for capId = 0..3
unsigned int offset(bool)
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
const HcalDbService * db_
const HcalPedestal * getPedestal(const HcalGenericDetId &fId) const
bool keepMe(const HcalDbService &db, const DIGI &inp, int threshold, int firstSample, int samples, bool twosided)
float charge(const HcalQIEShape &fShape, unsigned fAdc, unsigned fCapId) const
ADC [0..127] + capid [0..3] -> fC conversion.