Ignore:
Timestamp:
05/10/04 18:36:04 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
3 edited

Legend:

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

    r4023 r4040  
    293293    // with the start-date/time of the run (after reading the run header)
    294294    //
    295     return fTime->UpdMagicTime(h, m, s, ns);
     295    if (fTime->UpdMagicTime(h, m, s, ns))
     296        return kTRUE;
     297
     298    *fLog << warn << "WARNING - Time (" << Form("%2d:%02d:%02d,%09d", h, m, s, ns);
     299    *fLog << ") in header of event #" << dec << fDAQEvtNumber << " invalid..." << endl;
     300 
     301    return kFALSE;
    296302}
    297303
     
    309315// Remark: This 'feature' disallows single runs of more than 11h!
    310316//
    311 int MRawEvtHeader::ReadEvt(istream &fin, UShort_t ver)
     317Int_t MRawEvtHeader::ReadEvt(istream &fin, UShort_t ver)
    312318{
    313319    fin.read((char*)&fDAQEvtNumber, 4);  // Total=4
     
    319325        if (!DecodeTime(abstime))
    320326        {
    321             *fLog << warn << "WARNING - Event time in event header invalid..." << endl;
    322327            // Skip the rest of the header in case of merpps force-mode
    323328            fin.seekg(GetNumBytes()-12, ios::cur);
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r4023 r4040  
    6767    UInt_t GetTriggerID() const;
    6868
    69     int ReadEvt(istream& fin, UShort_t ver);
     69    Int_t ReadEvt(istream& fin, UShort_t ver);
    7070    void SkipEvt(istream& fin, UShort_t ver);
    7171
  • trunk/MagicSoft/Mars/mraw/MRawRead.cc

    r3800 r4040  
    165165    // if there is no next event anymore stop eventloop
    166166    //
    167     const Bool_t rc = fRawEvtHeader->ReadEvt(fin, ver);
     167    const Int_t rc = fRawEvtHeader->ReadEvt(fin, ver);
    168168    if (rc==kCONTINUE && fForceMode==kFALSE)
    169169    {
Note: See TracChangeset for help on using the changeset viewer.