source: branches/start/MagicSoft/MarsOctober/mbase/MTime.h@ 9223

Last change on this file since 9223 was 447, checked in by harald, 24 years ago
Bringing the sources for the octobertest under CVS controll. (november, 3rd, 2000)
  • Property svn:executable set to *
File size: 766 bytes
Line 
1#ifndef MTIME_H
2#define MTIME_H
3
4#include "Magic.h"
5
6#include <TNamed.h>
7
8class MTime : public TNamed
9{
10private:
11 UInt_t fTimeStamp; // type of raw event which should be processed by this task
12 UInt_t fDuration; // time of validity
13
14public:
15
16 MTime(const char *name=NULL, const char *title=NULL) : fTimeStamp(0)
17 {
18 fName = name ? name : ClassName();
19 fTitle = title;
20 }
21
22 MTime(UInt_t t) : fTimeStamp(t)
23 {
24 }
25
26 ~MTime() {}
27
28 void SetTime(UInt_t t)
29 {
30 fTimeStamp = t;
31 }
32
33 void SetDuration(UInt_t t)
34 {
35 fDuration = t;
36 }
37
38 UInt_t GetTime()
39 {
40 return fTimeStamp;
41 }
42
43 UInt_t GetDuration()
44 {
45 return fDuration;
46 }
47
48 ClassDef(MTime, 1) // Base (abstract) class for a task
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.