Changeset 9866 for trunk


Ignore:
Timestamp:
08/16/10 09:07:06 (14 years ago)
Author:
tbretz
Message:
Evaluate return code of call to fRun->Process in MReadMarsFile::Notify()
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r9865 r9866  
    4040   * mranforest/MHRanForestGini.cc:
    4141     - improved display
     42
     43   * mfileio/MReadMarsFile.cc:
     44     - evaluate return code of fRun->Process()
     45     - print return code in case of failure
    4246
    4347
  • trunk/Mars/mfileio/MReadMarsFile.cc

    r9219 r9866  
    183183    const Int_t idx = GetFileIndex();
    184184    fRun->SetEventNum(idx<0?0:idx); // Assumption: One Entry per File!
    185     if (!fRun->Process())
     185
     186    const Int_t rc = fRun->Process();
     187    if (rc!=kTRUE)
    186188    {
    187189        *fLog << err << "ERROR - Cannot read new runheaders #" << idx;
    188         *fLog << " after reading event #" << GetNumEntry() << endl;
     190        *fLog << " after reading event #" << GetNumEntry();
     191        *fLog << " (MReadTree::Process() returned rc=" << rc << ")" << endl;
    189192        return kFALSE;
    190193    }
Note: See TracChangeset for help on using the changeset viewer.