CMS 3D CMS Logo

EcalZeroSuppressor.h
Go to the documentation of this file.
1 #ifndef EcalZeroSuppressionAlgos_EcalZeroSuppressor_h
2 #define EcalZeroSuppressionAlgos_EcalZeroSuppressor_h
3 
4 /*
5  * \file EcalZeroSuppressor.h
6  *
7  * \author F. Cossutti
8  *
9  */
10 
16 
22 
24 
25 #include <vector>
26 
27 template <class C>
29 public:
30  virtual ~EcalZeroSuppressor(){};
31 
32  // the threshold has to be expressed in number of noise sigmas for ADC counts
33  // in the highest gain
34 
35  // bool accept(const C& frame, const double & threshold);
36  bool accept(const C &frame, const double &threshold);
37 
39  void setPedestals(const EcalPedestals *pedestals) { thePedestals = pedestals; }
40 
41 private:
43 
44  void findGain12Pedestal(const DetId &detId, double &pedestal, double &width);
45 
47 };
48 
49 #include "EcalZeroSuppressor.icc"
50 #endif
TrivialAmplitudeAlgo< C > theEnergy_
void setPedestals(const EcalPedestals *pedestals)
can be fetched every event from the EventSetup
bool accept(const C &frame, const double &threshold)
Definition: DetId.h:17
void findGain12Pedestal(const DetId &detId, double &pedestal, double &width)
const EcalPedestals * thePedestals