00001 #ifndef _M_LCPREPROCESSFILTER_HH_
00002 #define _M_LCPREPROCESSFILTER_HH_
00003
00031 #include "QFilter.hh"
00032
00033 #include <map>
00034
00035 class MLCPreprocessFilter : public QFilter {
00036
00037 public:
00038
00040 MLCPreprocessFilter(QSequence* s);
00041
00043 ~MLCPreprocessFilter();
00044
00046 void GetCuts();
00047
00049 bool Filter(const QEvent* ev);
00050
00051 private:
00052
00054 bool UpdateRMS(double new_rms, const int lg);
00055
00056 std::map<int,int> fCurrentId;
00057
00058 std::map<int,size_t> fCnt;
00059
00060 size_t fMinNumbAvg;
00061 double fUnitOfRMS;
00062
00063 std::map<int,double> fRMS;
00064
00065
00066 };
00067
00068 #endif
00069