CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrivialAmplitudeAlgo.h
Go to the documentation of this file.
1 #ifndef EcalZeroSuppressionAlgos_TrivialAmplitudeAlgo_h
2 #define EcalZeroSuppressionAlgos_TrivialAmplitudeAlgo_h
3 
4 /*
5  * \file TrivialAmplitudeAlgo.h
6  *
7  * \author F. Cossutti
8  *
9  * simple weights algorithm for energy and pedestal reconstruction
10  *
11 */
12 
13 
20 
22 
23 #include <vector>
24 
25 template<class C> class TrivialAmplitudeAlgo
26 {
27 public:
28 
29  explicit TrivialAmplitudeAlgo();
30  virtual ~TrivialAmplitudeAlgo(){};
31 
32  double energy(const C& frame);
33 
34  double pedestal(const C& frame);
35 
36  private:
37 
38  std::vector<double> theWeights;
39  std::vector<double> theGainFactors;
40 
41 };
42 
43 #include "TrivialAmplitudeAlgo.icc"
44 #endif
std::vector< double > theWeights
std::vector< double > theGainFactors
double pedestal(const C &frame)
double energy(const C &frame)