Changeset 2150 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 06/02/03 13:48:05 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTime.h
r2149 r2150 17 17 { 18 18 private: 19 UInt_t fTimeStamp[2]; // type of raw event which should be processed by this task 20 UInt_t fDuration; // time of validity 19 UInt_t fTimeStamp[2]; // type of raw event which should be processed by this task 20 UInt_t fDuration; // time of validity 21 22 Byte_t fHour; 23 Byte_t fMin; 24 Byte_t fSec; 25 UInt_t fNanoSec; 21 26 22 27 public: 23 24 28 MTime(const char *name=NULL, const char *title=NULL) 25 29 { … … 59 63 } 60 64 65 void SetCT1Time(UInt_t t1, UInt_t t0) 66 { 67 // int isecs_since_midday; // seconds passed since midday before sunset (JD of run start) 68 // int isecfrac_200ns; // fractional part of isecs_since_midday 69 // fTime->SetTime(isecfrac_200ns, isecs_since_midday); 70 fNanoSec = 200*t1; 71 fSec = t0%60; 72 t0 /= 60; 73 fMin = t0%60; 74 t0 /= 60; 75 fHour = (t0+12)%24; 76 } 77 78 void SetTime(Byte_t h, Byte_t m, Byte_t s, UShort_t ns) 79 { 80 fHour = h; 81 fMin = m; 82 fSec = s; 83 fNanoSec = ns; 84 } 85 61 86 void SetDuration(UInt_t t) 62 87 { … … 82 107 return fDuration; 83 108 } 84 85 void SetTime(int, int, int, int) {}86 109 87 110 ClassDef(MTime, 1) //A generalized MARS time stamp
Note:
See TracChangeset
for help on using the changeset viewer.