00001 #ifndef _M_OBCHISQUARECUT_HH_ 00002 #define _M_OBCHISQUARECUT_HH_ 00003 00044 #include "QModule.hh" 00045 #include <map> 00046 #include <set> 00047 #include <vector> 00048 #include <sstream> 00049 #include "TF1.h" 00050 00051 class MOBChiSquareCut : public QModule { 00052 00053 public: 00055 MOBChiSquareCut(QSequence* s); 00056 00058 ~MOBChiSquareCut(); 00059 00061 void Init(); 00062 00064 QEvent* Do(QEvent* ev); 00065 00067 void Done(); 00068 private: 00070 std::string fInputFile; 00071 00073 std::string fOutputFile; 00074 00076 std::map<int, TF1* > fCutFunctions; 00077 00079 std::set<int> fMissingChannels; 00080 00082 double fQuantileProbability; 00083 00085 std::stringstream fWarnings; 00086 00088 std::multiset<int> fTotalEvents; 00089 00091 std::multiset<int> fNumberAgree; 00092 00094 std::multiset<int> fNumberCut; 00095 00097 std::string fEnergyVar; 00098 }; 00099 00100 #endif 00101