CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
19 
21 
22 #include <vector>
23 
24 template <class C>
26 public:
27  explicit TrivialAmplitudeAlgo();
28  virtual ~TrivialAmplitudeAlgo(){};
29 
30  double energy(const C &frame);
31 
32  double pedestal(const C &frame);
33 
34 private:
35  std::vector<double> theWeights;
36  std::vector<double> theGainFactors;
37 };
38 
39 #include "TrivialAmplitudeAlgo.icc"
40 #endif
std::vector< double > theWeights
std::vector< double > theGainFactors
double pedestal(const C &frame)
double energy(const C &frame)