#ifndef TSTAMPFILTER_H_INCLUDED #define TSTAMPFILTER_H_INCLUDED #include #include typedef unsigned long long ULong64_t; typedef unsigned int UInt_t; typedef bool Bool_t; class TstampFilter { public: Bool_t fFromFile; std::string fTstampFile; FILE *fTstampFILE; ULong64_t fTolerance; ULong64_t fTimestamp; UInt_t fCount; //UInt_t fStats[1000]; TstampFilter(); TstampFilter(std::string tstampFile, int tolerance); virtual ~TstampFilter(); void Reset(); bool Initialize(std::string tstampFile, int tolerance); bool IsReady() {return fFromFile;} bool CheckTstamp(ULong64_t timestamp); void NextTstamp(); }; #endif //TSTAMPFILTER_H_INCLUDED