Ignore:
Timestamp:
01/07/05 12:58:11 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5692 r5715  
    287287//  via AddNotify.
    288288//
     289//  For unknown reasons root stores the SetAutoDelete-Flag in
     290//  a branch having a custom streamer (eg. MRawEvtData).
     291//  It is not allowed that a container which is in the parameter
     292//  list gets a new address. Therefor we reset all the autodel flags.
     293//
     294//  MAKE SURE THAT ALL YOPUR CUSTOM STREAMERS TAKE CARE OF ALL MEMORY
     295//
    289296Bool_t MReadTree::Notify()
    290297{
     
    299306    *fLog << GetNumEntry()-1 << ")" << endl;
    300307
     308    //
     309    // For unknown reasons root stores the SetAutoDelete-Flag in
     310    // a branch having a custom streamer (eg. MRawEvtData).
     311    // It is not allowed that a container which is in the parameter
     312    // list gets a new address. Therefor we reset all the autodel flags.
     313    //
     314    // MAKE SURE THAT ALL YOPUR CUSTOM STREAMERS TAKE CARE OF ALL MEMORY
     315    //
     316    TIter NextB(fTree->GetListOfBranches());
     317    TBranch *b=0;
     318    while ((b=(TBranch*)NextB()))
     319        if (b->IsAutoDelete())
     320        {
     321            *fLog << warn << "Branch " << b->GetName() << "->IsAutoDelete() set... resetting." << endl;
     322            b->SetAutoDelete(kFALSE);
     323        }
     324
    301325    if (!fNotify)
    302326        return kTRUE;
    303327
    304     TIter Next(fNotify);
     328    TIter NextN(fNotify);
    305329    TObject *o=NULL;
    306     while ((o=Next()))
     330    while ((o=NextN()))
    307331        if (!o->Notify())
    308332        {
Note: See TracChangeset for help on using the changeset viewer.