Changeset 17068 for trunk/Mars/mraw


Ignore:
Timestamp:
09/05/13 11:09:23 (11 years ago)
Author:
tbretz
Message:
Skip incomplete events by default -- if they are needed, we will have to add some more code.
Location:
trunk/Mars/mraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mraw/MRawFitsRead.cc

    r17035 r17068  
    195195        return kFALSE;
    196196
     197    if (!fin.SetRefAddress("NumBoards", fNumBoards))
     198        return kFALSE;
     199
    197200    fPCTime.resize(2);
    198201    if (!fin.SetVecAddress("UnixTimeUTC", fPCTime))
     
    200203            return kFALSE;
    201204
     205
    202206    if (!fin.SetPtrAddress("BoardTime", fRawBoards->fFadTime, 40))
    203207        return kFALSE;
     
    218222    if (!static_cast<factfits&>(stream).GetNextRow())
    219223        return kFALSE;
     224
     225    // Skip incomplete events
     226    if (fNumBoards!=40)
     227        return kCONTINUE;
    220228
    221229    fRawEvtTime->SetUnixTime(fPCTime[0], fPCTime[1]);
  • trunk/Mars/mraw/MRawFitsRead.h

    r14449 r17068  
    1515    std::vector<UInt_t>   fPCTime;   //! Buffer
    1616    std::vector<UShort_t> fPixelMap; //!
     17    UInt_t fNumBoards;               //!
    1718
    1819    MRawBoardsFACT *fRawBoards;
Note: See TracChangeset for help on using the changeset viewer.