00001 #ifndef _M_SELECT_K40_PHOTOPEAK_HH_ 00002 #define _M_SELECT_K40_PHOTOPEAK_HH_ 00003 00039 #include "QFilter.hh" 00040 #include <map> 00041 #include <set> 00042 #include <string> 00043 00044 class MSelectK40Photopeak : public QFilter { 00045 00046 public: 00048 MSelectK40Photopeak(QSequence* s); 00049 00051 ~MSelectK40Photopeak(); 00052 00054 void GetCuts(); 00055 00057 bool Filter(const QEvent* ev); 00058 00059 private: 00061 std::string GetPeaksFile(const int& run); 00062 00063 class PeakData { 00064 public: 00065 double mean; 00066 double mode; 00067 double sigma; 00068 }; 00069 00071 bool fIsFirstEvent; 00072 00074 std::set<int> fMissingChannels; 00075 00077 std::map<int, PeakData> fPeaks; 00078 00080 std::string fPeaksFileDir; 00081 00083 std::string fPeaksFilePrefix; 00084 00085 }; 00086 00087 #endif