source: trunk/Mars/mfbase/MFRealTimePeriod.h@ 10047

Last change on this file since 10047 was 3330, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 720 bytes
Line 
1#ifndef MARS_MFRealTimePeriod
2#define MARS_MFRealTimePeriod
3
4#ifndef MARS_MFilter
5#include "MFilter.h"
6#endif
7
8class MFRealTimePeriod : public MFilter
9{
10private:
11 ULong_t fTime; //!
12 Bool_t fResult; //!
13
14 ULong_t fMilliSec;
15
16public:
17 MFRealTimePeriod(UInt_t millis=1000) : fTime(0), fMilliSec(millis)
18 {
19 fName = "MFRealTimePeriod";
20 fTitle = "Filter allowing execution of a task only after a given real time interval";
21 }
22
23 void SetTime(UInt_t millis) { fMilliSec = millis; }
24
25 Int_t Process();
26 Bool_t IsExpressionTrue() const { return fResult; }
27
28 ClassDef(MFRealTimePeriod, 0) //Filter allowing execution of a task only after a given real time interval
29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.