CMS 3D CMS Logo

HcalZeroSuppressionAlgo.h
Go to the documentation of this file.
1 #ifndef SimCalorimetry_HcalZeroSuppressionAlgos_HCALZEROSUPPESSIONALGO_H
2 #define SimCalorimetry_HcalZeroSuppressionAlgos_HCALZEROSUPPESSIONALGO_H 1
3 
7 
13 class HcalDbService;
14 
16 public:
17  virtual ~HcalZeroSuppressionAlgo() = default;
19  void suppress(const HODigiCollection& input, HODigiCollection& output);
20  void suppress(const HFDigiCollection& input, HFDigiCollection& output);
21  void suppress(const QIE10DigiCollection& input, QIE10DigiCollection& output);
22  void suppress(const QIE11DigiCollection& input, QIE11DigiCollection& output);
23  virtual bool shouldKeep(const HBHEDataFrame& digi) const = 0;
24  virtual bool shouldKeep(const HODataFrame& digi) const = 0;
25  virtual bool shouldKeep(const HFDataFrame& digi) const = 0;
26  virtual bool shouldKeep(const QIE10DataFrame& digi) const = 0;
27  virtual bool shouldKeep(const QIE11DataFrame& digi) const = 0;
28  void setDbService(const HcalDbService* db) { m_dbService=db; }
29  void clearDbService() { m_dbService=nullptr; }
30  // template <class DIGI> bool keepMe(const DIGI& inp, int threshold);
31 
32 protected:
35 
36 private:
38 };
39 
40 #endif
const HcalDbService * m_dbService
void suppress(const HBHEDigiCollection &input, HBHEDigiCollection &output)
static std::string const input
Definition: EdmProvDump.cc:44
virtual ~HcalZeroSuppressionAlgo()=default
HcalZeroSuppressionAlgo(bool markAndPass)
virtual bool shouldKeep(const HBHEDataFrame &digi) const =0
void setDbService(const HcalDbService *db)