Ignore:
Timestamp:
06/02/03 13:48:05 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r2149 r2150  
    1717{
    1818private:
    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;
    2126
    2227public:
    23 
    2428    MTime(const char *name=NULL, const char *title=NULL)
    2529    {
     
    5963    }
    6064
     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
    6186    void SetDuration(UInt_t t)
    6287    {
     
    82107        return fDuration;
    83108    }
    84 
    85     void SetTime(int, int, int, int) {}
    86109
    87110    ClassDef(MTime, 1)  //A generalized MARS time stamp
Note: See TracChangeset for help on using the changeset viewer.