CMS 3D CMS Logo

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 
18 
20 
21 #include <vector>
22 
23 template <class C>
25 public:
26  explicit TrivialAmplitudeAlgo();
27  virtual ~TrivialAmplitudeAlgo(){};
28 
29  double energy(const C &frame);
30 
31  double pedestal(const C &frame);
32 
33 private:
34  std::vector<double> theWeights;
35  std::vector<double> theGainFactors;
36 };
37 
38 #include "TrivialAmplitudeAlgo.icc"
39 #endif
std::vector< double > theWeights
std::vector< double > theGainFactors
double pedestal(const C &frame)
double energy(const C &frame)