Changeset 12613


Ignore:
Timestamp:
11/22/11 13:27:53 (13 years ago)
Author:
tbretz
Message:
Implemented TSTART and TSTOP as integral and fractional part of Unix times (seee MJDREF) and DAT-OBS and DATE-END as the start and stop human readable time stamp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DataWriteFits.cc

    r12605 r12613  
    246246        const Time stop (fTstop[0],  fTstop[1]);
    247247
    248         fFile.WriteKey("TSTART",   start.Iso(),
     248        fFile.WriteKey("TSTARTI",  floor(start.Unix()),
     249                       "Time when first event received (integral part)");
     250        fFile.WriteKey("TSTARTF",  modf(start.Unix(), 1),
     251                       "Time when first event received (fractional part)");
     252        fFile.WriteKey("TSTOPI",   floor(stop.Unix()),
     253                       "Time when last event received (integral part)");
     254        fFile.WriteKey("TSTOPF",   modf(stop.Unix(), 1),
     255                       "Time when last event received (fractional part)");
     256        fFile.WriteKey("DATE-OBS", start.Iso(),
    249257                       "Time when first event received");
    250 
    251         fFile.WriteKey("TSTOP",    stop.Iso(),
     258        fFile.WriteKey("DATE-END", stop.Iso(),
    252259                       "Time when last event received");
    253260
Note: See TracChangeset for help on using the changeset viewer.