Ignore:
Timestamp:
05/13/02 12:17:49 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1332 r1333  
    8383    virtual void   SetNotify(TObject *obj) { fNotify = obj; fNotified = kFALSE; }
    8484
    85     Int_t GetEntry(Int_t entry=0, Int_t getall=0)
    86     {
    87         // --------------------------------------------------------------------------
    88         //
    89         // This is the code from TChain::GetEntry but skips the
     85    Int_t LoadTree(Int_t entry)
     86    {
     87        //
     88        // This is the code from TChain::LoadTree but skips the
    9089        // notification in LoadTree. If LoadTree raises the notification
    9190        // a flag is set and the notification is done by hand. If it
    92         // has not been successfull 0 is returned.
     91        // has not been successfull -15 is returned.
     92        // This is to support return values from Notify()/Reinit()
    9393        //
    9494        TObject *notify = GetNotify();
     
    9696        SetNotify(this);
    9797
    98         Int_t rc = 0;
    99 
    100         if (LoadTree(entry) >= 0)
    101             if (!fNotified || (notify && notify->Notify()))
    102                 rc = fTree->GetEntry(fReadEntry, getall);
     98        Int_t rc = TChain::LoadTree(entry);
     99
     100        if (rc >= 0 && fNotified && notify)
     101            if (!notify->Notify())
     102                rc = -15;
    103103
    104104        SetNotify(notify);
Note: See TracChangeset for help on using the changeset viewer.