Changeset 4041


Ignore:
Timestamp:
05/10/04 18:41:20 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r4040 r4041  
    317317Int_t MRawEvtHeader::ReadEvt(istream &fin, UShort_t ver)
    318318{
     319    Bool_t rc = kTRUE;
     320
    319321    fin.read((char*)&fDAQEvtNumber, 4);  // Total=4
    320322
     
    324326    if (ver>2)
    325327        if (!DecodeTime(abstime))
    326         {
    327             // Skip the rest of the header in case of merpps force-mode
    328             fin.seekg(GetNumBytes()-12, ios::cur);
    329             return kCONTINUE;
    330         }
     328            rc = kCONTINUE;
    331329
    332330    Byte_t dummy[4];
     
    346344    fin.read((char*)&dummy, 4);
    347345
    348     return !fin.eof();
     346    return fin.eof() ? kFALSE : rc;
    349347}
    350348
Note: See TracChangeset for help on using the changeset viewer.