CMS 3D CMS Logo

TrivialAmplitudeAlgo.h

Go to the documentation of this file.
00001 #ifndef EcalZeroSuppressionAlgos_TrivialAmplitudeAlgo_h
00002 #define EcalZeroSuppressionAlgos_TrivialAmplitudeAlgo_h
00003 
00004 /*
00005  * \file TrivialAmplitudeAlgo.h
00006  *
00007  * $Date: 2007/03/07 10:12:43 $
00008  * $Revision: 1.5 $
00009  * \author F. Cossutti
00010  *
00011  * simple weights algorithm for energy and pedestal reconstruction
00012  *
00013 */
00014 
00015 
00016 #include "FWCore/Framework/interface/EDProducer.h"
00017 #include "DataFormats/Common/interface/EDProduct.h"
00018 #include "FWCore/Framework/interface/Event.h"
00019 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00020 #include "FWCore/Framework/interface/ESHandle.h"
00021 #include "FWCore/Framework/interface/EventSetup.h"
00022 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00023 
00024 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
00025 
00026 #include <vector>
00027 
00028 template<class C> class TrivialAmplitudeAlgo 
00029 {
00030 public:
00031 
00032   explicit TrivialAmplitudeAlgo();
00033   virtual ~TrivialAmplitudeAlgo(){};
00034 
00035   double energy(const C& frame);
00036 
00037   double pedestal(const C& frame);
00038 
00039  private:
00040 
00041   std::vector<double> theWeights;
00042   std::vector<double> theGainFactors;
00043 
00044 };
00045 
00046 #include "TrivialAmplitudeAlgo.icc"
00047 #endif

Generated on Tue Jun 9 17:46:22 2009 for CMSSW by  doxygen 1.5.4