Changeset 16097 for trunk


Ignore:
Timestamp:
05/23/13 19:14:03 (11 years ago)
Author:
tbretz
Message:
Fixed handling of fTstart/fTstop; the start time is now available in the run header and they are both properly initialized so that no nonsense can be written when the file is closed.
File:
1 edited

Legend:

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

    r16055 r16097  
    144144        fFile.SetInt("DRSSTEP", GetDrsStep(), "Step of the DRS calibration");
    145145
    146     // This is a workaround for the missing information in the event builder
    147     fTstart[0] = 0;
    148     fTstop[0]  = 0;
     146    fTstart[0] = h.RunTime;
     147    fTstart[1] = h.RunUsec;
     148
     149    fTstop[0] = 0;
     150    fTstop[1] = 0;
    149151
    150152    memset(fTriggerCounter.data(), 0, fTriggerCounter.size()*sizeof(uint32_t));
     
    237239
    238240    memcpy(fTstop, &e.PCTime, 2*sizeof(uint32_t));
    239     if (fTstart[0]==0)
    240         memcpy(fTstart, fTstop, 2*sizeof(uint32_t));
    241241
    242242    const int realRoiTM = (e.RoiTM > e.Roi) ? e.Roi : 0;
Note: See TracChangeset for help on using the changeset viewer.