00001 /* 00002 * LTQualCut.h 00003 * 00004 * Created on: 10-mar-2009 00005 * Author: Nicola Mori, S. Ricciarini 00006 */ 00007 00010 #ifndef LTQUALCUT_H_ 00011 #define LTQUALCUT_H_ 00012 00013 #include "../../PamCutBase/PamCutBase.h" 00014 00016 enum LT_Return { 00017 LT_NEWRUN, 00018 LT_INVALID 00020 }; 00021 00024 class LTQualCut: public PamCut { 00025 00026 public: 00034 LTQualCut(const char* cutName, float threshold=4500) : 00035 PamCut(cutName), _previousRun(numeric_limits<UInt_t>::max()), _LT(-1.), _timeout(threshold) { 00036 } 00038 ~LTQualCut() { 00039 } 00040 00048 int Check(PamLevel2 *event); 00049 00054 float GetLT() { return _LT; } 00055 00056 private: 00057 unsigned int _previousRun; 00058 float _LT; 00059 float _timeout; 00060 }; 00061 00062 #endif /* LTQUALCUT_H_ */