CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
17 
23 
25 
26 #include <vector>
27 
28 template<class C> class EcalZeroSuppressor
29 {
30 public:
31 
32  virtual ~EcalZeroSuppressor(){};
33 
34  // the threshold has to be expressed in number of noise sigmas for ADC counts in the highest gain
35 
36  // bool accept(const C& frame, const double & threshold);
37  bool accept(const C& frame, const double & threshold);
38 
40  void setPedestals(const EcalPedestals * pedestals) {thePedestals = pedestals;}
41 
42  private:
43 
45 
46  void findGain12Pedestal(const DetId & detId,
47  double & pedestal, double & width);
48 
50 
51 };
52 
53 #include "EcalZeroSuppressor.icc"
54 #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:18
void findGain12Pedestal(const DetId &detId, double &pedestal, double &width)
const EcalPedestals * thePedestals