Changeset 1085


Ignore:
Timestamp:
11/16/01 15:51:07 (23 years ago)
Author:
tbretz
Message:
:q
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r1080 r1085  
    476476Bool_t MReadTree::Process()
    477477{
    478     SetReadyToSave();
    479     return fChain->GetEntry(fNumEntry++) != 0;
     478    Bool_t rc = fChain->GetEntry(fNumEntry++) != 0;
     479
     480    if (rc)
     481        SetReadyToSave();
     482
     483    return rc;
    480484}
    481485
     
    486490Bool_t MReadTree::GetEvent()
    487491{
    488     SetReadyToSave();
    489     return fChain->GetEntry(fNumEntry) != 0;
     492    Bool_t rc = fChain->GetEntry(fNumEntry) != 0;
     493
     494    if (rc)
     495        SetReadyToSave();
     496
     497    return rc;
    490498}
    491499
Note: See TracChangeset for help on using the changeset viewer.