Changeset 1333 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 05/13/02 12:17:49 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r1332 r1333 83 83 virtual void SetNotify(TObject *obj) { fNotify = obj; fNotified = kFALSE; } 84 84 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 90 89 // notification in LoadTree. If LoadTree raises the notification 91 90 // 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() 93 93 // 94 94 TObject *notify = GetNotify(); … … 96 96 SetNotify(this); 97 97 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; 103 103 104 104 SetNotify(notify);
Note:
See TracChangeset
for help on using the changeset viewer.