00001 /* 00002 * PktQualCut.h 00003 * 00004 * Created on: 10-mar-2009 00005 * Author: Nicola Mori 00006 */ 00007 00010 #ifndef PKTQUALCUT_H_ 00011 #define PKTQUALCUT_H_ 00012 00013 #include "../../PamCutBase/PamCutBase.h" 00014 00016 enum PKT_Return { 00017 PKT_NEWRUN, 00018 PKT_INVALID 00020 }; 00021 00022 using std::numeric_limits; 00029 class PktQualCut: public PamCut { 00030 00031 public: 00033 PktQualCut(const char *cutName) : 00034 PamCut(cutName), _previousPkt(numeric_limits<UInt_t>::max()), _previousRun(numeric_limits<UInt_t>::max()) { 00035 } 00037 ~PktQualCut() { 00038 } 00039 00047 int Check(PamLevel2 *event); 00048 00049 private: 00050 UInt_t _previousPkt; 00051 UInt_t _previousRun; 00052 00053 }; 00054 00055 #endif /* PKTQUALCUT_H_ */