00001 00028 #ifndef _M_PULSE_START_TIME_OFFSET_HH_ 00029 #define _M_PULSE_START_TIME_OFFSET_HH_ 00030 00031 #include "QModule.hh" 00032 #include "QOffset.hh" 00033 #include <map> 00034 #include <set> 00035 #include <string> 00036 00037 namespace Cuore {class QTime;} 00038 00039 class MPulseStartTimeOffset : public QModule { 00040 00041 public: 00042 MPulseStartTimeOffset(QSequence* s); 00043 00044 virtual ~MPulseStartTimeOffset(); 00045 00047 void Init(); 00048 00051 QEvent* Do(QEvent* ev); 00052 00054 void Done(); 00055 00056 00057 private: 00058 00060 void SetUpChannel(const int channel, const QTime& evTime); 00061 00063 std::set<int> fBadChannels; 00064 00066 std::set<int> fGoodChannels; 00067 00069 std::string fIdealPulseFilename; 00070 00073 std::map<int, QOffset> fOffsetAnalyzer; 00074 00075 }; 00076 00077 #endif