Changeset 11456


Ignore:
Timestamp:
07/18/11 17:49:49 (13 years ago)
Author:
tbretz
Message:
Read the first header already at preprocessing time so that at least some header is available.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mfileio/MReadMarsFile.cc

    r9866 r11456  
    272272    }
    273273
    274     /*
    275     const Int_t idx = GetFileIndex();
    276     fRun->SetEventNum(idx<0?0:idx); // Assumption: One Entry per File!
    277     if (!fRun->Process())
    278     {
    279         *fLog << err << "Error - Processing MReadMarsFile::fRun... aborting." << endl;
    280         return kFALSE;
    281     }
    282     */
     274    fRun->SetEventNum(0);
     275    const Int_t rc = fRun->Process();
     276    if (rc!=kTRUE)
     277    {
     278        *fLog << err << "ERROR - Cannot read runheaders of first file.";
     279        *fLog << " (MReadTree::Process() returned rc=" << rc << ")" << endl;
     280        return kFALSE;
     281    }
     282
    283283    return MReadTree::PreProcess(pList);
    284284}
Note: See TracChangeset for help on using the changeset viewer.