00001 #ifndef _M_CALCOMPATIBILITY_HH_ 00002 #define _M_CALCOMPATIBILITY_HH_ 00003 00060 #include "QModule.hh" 00061 #include "TF1.h" 00062 #include <map> 00063 #include <vector> 00064 #include <set> 00065 00066 class MCalCompatibility : public QModule { 00067 00068 public: 00070 MCalCompatibility(QSequence* s); 00071 00073 ~MCalCompatibility(); 00074 00076 void Init(); 00077 00079 QEvent* Do(QEvent* ev); 00080 00082 void Done(); 00083 private: 00085 int fCutoff; 00086 00088 std::string fFilename; 00089 00091 std::map<int, std::vector<double> > fInitialEnergy; 00092 00094 std::map<int, std::vector<double> > fFinalEnergy; 00095 00097 double fReferenceEnergy; 00098 00100 double fWindow; 00101 00103 double fFWHMStabilityCutoff; 00104 double fMeanStabilityCutoff; 00105 00107 bool fUseDB; 00108 00110 std::set<int> fRuns; 00111 00113 TF1* fCalFunction; 00114 00116 std::map<int, double*> fParams; 00117 00118 }; 00119 00120 #endif 00121