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