00001 #ifndef _M_WPANALYZER_HH_
00002 #define _M_WPANALYZER_HH_
00003
00043 #include "QModule.hh"
00044 #include "QWPCommon.hh"
00045 #include "QWPAnalyzer.hh"
00046 #include "QLCConfigWriter.hh"
00047 #include <map>
00048 #include <set>
00049 #include "QMatrix.hh"
00050
00051
00052 namespace Cuore{class QRunData; class QMatrix;}
00053
00054 class MWPAnalyzer : public QModule {
00055
00056 public:
00058 MWPAnalyzer(QSequence* s);
00059
00061 ~MWPAnalyzer();
00062
00064 void Init();
00065
00067 QEvent* Do(QEvent* ev);
00068
00070 void Done();
00071 private:
00072 void FillConfigContainer();
00073 std::map<unsigned short, QWPAnalyzer> fAnalyzers;
00074 int fMaxEvPerConfig;
00075 std::set<unsigned short> fEventsPerChan;
00076 const QRunData* fRunData;
00077 bool fOffline;
00078 QLCConfigWriter fCfgWriter;
00079 QMatrix fResult;
00080
00081 };
00082
00083 #endif
00084