#include <HcalZSAlgoEnergy.h>
Public Member Functions | |
void | done () |
HcalZSAlgoEnergy (bool markAndPass, int level, int start, int samples, bool twosided) | |
void | prepare (const HcalDbService *db) |
Protected Member Functions | |
virtual bool | shouldKeep (const HBHEDataFrame &digi) const |
virtual bool | shouldKeep (const HFDataFrame &digi) const |
virtual bool | shouldKeep (const HODataFrame &digi) const |
Private Attributes | |
const HcalDbService * | db_ |
int | firstsample_ |
int | samplecount_ |
int | threshold_ |
bool | twosided_ |
Simple amplitude-based zero suppression algorithm. For each digi, add up (samples) samples beginning with (start) sample. Subtract the average pedestal, and compare with digital threshold (in ADC counts). The algorithm can keep both positive and negative side fluctuations if "two sided" is enabled.
Definition at line 18 of file HcalZSAlgoEnergy.h.
HcalZSAlgoEnergy::HcalZSAlgoEnergy | ( | bool | markAndPass, |
int | level, | ||
int | start, | ||
int | samples, | ||
bool | twosided | ||
) |
Definition at line 7 of file HcalZSAlgoEnergy.cc.
: HcalZeroSuppressionAlgo(mp), threshold_(level), firstsample_(start), samplecount_(samples), twosided_(twosided) { }
void HcalZSAlgoEnergy::done | ( | ) |
void HcalZSAlgoEnergy::prepare | ( | const HcalDbService * | db | ) |
bool HcalZSAlgoEnergy::shouldKeep | ( | const HODataFrame & | digi | ) | const [protected, virtual] |
Implements HcalZeroSuppressionAlgo.
Definition at line 61 of file HcalZSAlgoEnergy.cc.
References db_, firstsample_, samplecount_, threshold_, and twosided_.
{ return ZSEnergy_impl::keepMe<HODataFrame>(*db_,digi,threshold_,firstsample_,samplecount_,twosided_); }
bool HcalZSAlgoEnergy::shouldKeep | ( | const HBHEDataFrame & | digi | ) | const [protected, virtual] |
Implements HcalZeroSuppressionAlgo.
Definition at line 58 of file HcalZSAlgoEnergy.cc.
References db_, firstsample_, samplecount_, threshold_, and twosided_.
{ return ZSEnergy_impl::keepMe<HBHEDataFrame>(*db_,digi,threshold_,firstsample_,samplecount_,twosided_); }
bool HcalZSAlgoEnergy::shouldKeep | ( | const HFDataFrame & | digi | ) | const [protected, virtual] |
Implements HcalZeroSuppressionAlgo.
Definition at line 64 of file HcalZSAlgoEnergy.cc.
References db_, firstsample_, samplecount_, threshold_, and twosided_.
{ return ZSEnergy_impl::keepMe<HFDataFrame>(*db_,digi,threshold_,firstsample_,samplecount_,twosided_); }
const HcalDbService* HcalZSAlgoEnergy::db_ [private] |
Definition at line 30 of file HcalZSAlgoEnergy.h.
Referenced by done(), prepare(), and shouldKeep().
int HcalZSAlgoEnergy::firstsample_ [private] |
Definition at line 28 of file HcalZSAlgoEnergy.h.
Referenced by shouldKeep().
int HcalZSAlgoEnergy::samplecount_ [private] |
Definition at line 28 of file HcalZSAlgoEnergy.h.
Referenced by shouldKeep().
int HcalZSAlgoEnergy::threshold_ [private] |
Definition at line 28 of file HcalZSAlgoEnergy.h.
Referenced by shouldKeep().
bool HcalZSAlgoEnergy::twosided_ [private] |
Definition at line 29 of file HcalZSAlgoEnergy.h.
Referenced by shouldKeep().