Changeset 17271


Ignore:
Timestamp:
10/20/13 17:01:22 (11 years ago)
Author:
tbretz
Message:
Added night to the DRS_RUNS service.
File:
1 edited

Legend:

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

    r17252 r17271  
    7979
    8080    const Time time(fData.fDateObs);
     81    const uint32_t night = time.NightAsInt();
    8182
    8283    dim.setQuality(fData.fStep);
     
    8485    dim.Update(time);
    8586
     87    vector<uint32_t> data(5);
     88    memcpy(data.data(), buf.data(), 4*sizeof(uint32_t));
     89    data[4] = night<19700000 ? 0 : night;
     90
    8691    runs.setQuality(fData.fStep);
    87     runs.setData(buf.data(), 4*sizeof(uint32_t));
     92    runs.setData(data);
    8893    runs.Update(time);
    8994}
Note: See TracChangeset for help on using the changeset viewer.