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  * $Date: 2011/05/20 17:17:34 $
8  * $Revision: 1.6 $
9  * \author F. Cossutti
10  *
11  * simple weights algorithm for energy and pedestal reconstruction
12  *
13 */
14 
15 
22 
24 
25 #include <vector>
26 
27 template<class C> class TrivialAmplitudeAlgo
28 {
29 public:
30 
31  explicit TrivialAmplitudeAlgo();
32  virtual ~TrivialAmplitudeAlgo(){};
33 
34  double energy(const C& frame);
35 
36  double pedestal(const C& frame);
37 
38  private:
39 
40  std::vector<double> theWeights;
41  std::vector<double> theGainFactors;
42 
43 };
44 
45 #include "TrivialAmplitudeAlgo.icc"
46 #endif
std::vector< double > theWeights
std::vector< double > theGainFactors
double pedestal(const C &frame)
double energy(const C &frame)