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  * $Date: 2007/03/07 10:12:43 $
8  * $Revision: 1.3 $
9  * \author F. Cossutti
10  *
11 */
12 
20 
26 
28 
29 #include <vector>
30 
31 template<class C> class EcalZeroSuppressor
32 {
33 public:
34 
35  virtual ~EcalZeroSuppressor(){};
36 
37  // the threshold has to be expressed in number of noise sigmas for ADC counts in the highest gain
38 
39  // bool accept(const C& frame, const double & threshold);
40  bool accept(const C& frame, const double & threshold);
41 
43  void setPedestals(const EcalPedestals * pedestals) {thePedestals = pedestals;}
44 
45  private:
46 
48 
49  void findGain12Pedestal(const DetId & detId,
50  double & pedestal, double & width);
51 
53 
54 };
55 
56 #include "EcalZeroSuppressor.icc"
57 #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:20
void findGain12Pedestal(const DetId &detId, double &pedestal, double &width)
const EcalPedestals * thePedestals