00001 00016 #ifndef PED_ESTIMATOR_HH 00017 #define PED_ESTIMATOR_HH 00018 00019 #include "Base-TypeDef.hh" 00020 #include "DataFormat-TypeDef.hh" 00021 #include <cmath> 00022 00027 class ped_estimator : public decoder_base { 00028 00029 public: 00030 00032 ped_estimator(); 00033 00035 virtual ~ped_estimator(){}; 00036 00038 void compute_pedestal(const std::vector<UShort_t>* wf, size_t start, size_t nsample); 00039 00041 double mean(){return _mean;}; 00042 00044 double sigma() {return _sigma;}; 00045 00046 protected: 00047 00049 double _mean; 00050 00052 double _sigma; 00053 00054 }; 00055 00056 #endif 00057 // end of doxygen group
1.4.7