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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r2173 r2265  
    245245    // store the time of the event in the corresponding container
    246246    //
     247    const Double_t mhz = 9.375;                          // [1e6 ticks/s]
     248    const Double_t t   = (Double_t)fAbsTime[0]/mhz*1e-3; // [ns]
     249    const Double_t ns  = (UShort_t)fmod(t, 1e9);
     250    const Double_t s   = (Byte_t)fmod(t/1e9, 60);
     251    const Double_t m   = (Byte_t)fmod(t/60e9, 60);
     252    const Double_t h   = (Byte_t)(t/3600e9);
     253
     254    fTime->SetTime(h, m, s, ns);
    247255    fTime->SetTime(fAbsTime[0], fAbsTime[1]);
    248256
Note: See TracChangeset for help on using the changeset viewer.