Ignore:
Timestamp:
06/04/02 11:50:06 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1340 r1344  
    152152MReadTree::~MReadTree()
    153153{
     154    //
     155    // Delete all the pointers to pointers to the objects where the
     156    // branche data gets stored.
     157    //
     158    TIter Next(fChain->GetStatus());
     159
     160    TChainElement *element = NULL;
     161    while ((element=(TChainElement*)Next()))
     162        delete (MParContainer**)element->GetBaddress();
     163
     164    //
     165    // Delete the chain and the veto list
     166    //
    154167#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,00)
    155168    if (fChain->GetFile())
    156169        delete fChain->GetFile();
    157170#endif
    158     //
    159     // Delete all the pointers to pointers to the objects where the
    160     // branche data gets stored.
    161     //
    162     TIter Next(fChain->GetStatus());
    163 
    164     TChainElement *element = NULL;
    165     while ((element=(TChainElement*)Next()))
    166         delete (MParContainer**)element->GetBaddress();
    167 
    168     //
    169     // Delete the chain and the veto list
    170     //
    171171    delete fChain;
     172
    172173    delete fNotify;
    173174    delete fVetoList;
     
    288289    //
    289290    // Remove trailing '.' if one and try to enable the subbranch without
    290     // the master barnch name. This is to be compatible with older mars
     291    // the master branch name. This is to be compatible with older mars
    291292    // and camera files.
    292293    //
Note: See TracChangeset for help on using the changeset viewer.