Changeset 15009


Ignore:
Timestamp:
03/10/13 12:02:29 (12 years ago)
Author:
tbretz
Message:
Replaced WriteFitsImp by fData.WriteFitsImp; added storage of begin and end time of runs in the corresponding new data members; when the dim service is updated, use a reasonable time-stamp for it.
File:
1 edited

Legend:

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

    r14686 r15009  
    4545
    4646    fData.fStep = 1;
     47    fData.fDateRunBeg[2] = "1970-01-01T00:00:00";
     48    fData.fDateRunEnd[2] = "1970-01-01T00:00:00";
     49    fData.fDateEnd = fDateRunEnd[1];
    4750    Update(dim, runs);
    4851    fData.fStep = 2;
     
    7578#warning Time marker channels not sent
    7679
     80    const Time time(fData.fDateObs);
     81
    7782    dim.setQuality(fData.fStep);
    78     dim.Update(buf);
     83    dim.setData(buf);
     84    dim.Update(time);
    7985
    8086    runs.setQuality(fData.fStep);
    8187    runs.setData(buf.data(), 4*sizeof(uint32_t));
    82     runs.Update();
     88    runs.Update(time);
    8389}
    8490
     
    212218    }
    213219}
    214 
     220/*
    215221void DataCalib::WriteFitsImp(const string &filename, const vector<float> &vec) const
    216222{
     
    262268    file.WriteRow(vec.data()+1, n*sizeof(float));
    263269}
    264 
     270*/
    265271bool DataCalib::Close(RUN_TAIL *tail)
    266272{
     
    313319    }
    314320
     321    const Time beg(fTstart[0], fTstart[1]);
     322    const Time end(fTstop[0],  fTstop[1]);
     323
     324    if (fData.fStep==0)
     325        fData.fDateObs = beg;
     326    fData.fDateEnd = end;
     327
     328    fData.fDateRunBeg[fData.fStep] = beg;
     329    fData.fDateRunEnd[fData.fStep] = end;
     330
    315331    if (fData.fStep<=2)
    316332    {
     
    318334        try
    319335        {
    320             WriteFitsImp(filename, fStats);
     336            fData.WriteFitsImp(filename, fStats);
     337
     338            //WriteFitsImp(filename, fStats);
    321339
    322340            ostringstream str;
Note: See TracChangeset for help on using the changeset viewer.