Ignore:
Timestamp:
12/19/01 14:13:31 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

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

    r1115 r1130  
    190190            {
    191191                fProgress->SetPosition(++dummy);
     192#if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06)
     193                gSystem->ProcessEvents();
     194#else
    192195                gClient->ProcessEventsFor(fProgress);
     196#endif
    193197            }
    194198        else
     
    200204            {
    201205                fProgress->SetPosition(maxcnt - dummy);
     206#if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06)
     207                gSystem->ProcessEvents();
     208#else
    202209                gClient->ProcessEventsFor(fProgress);
     210#endif
    203211            }
    204212        else
  • trunk/MagicSoft/Mars/mbase/MReadTree.cc

    r1116 r1130  
    565565//  If the end of the file is reached the Eventloop is stopped.
    566566//
     567#if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06)
     568#include "../mraw/MRawEvtData.h"
     569#endif
    567570Bool_t MReadTree::Process()
    568571{
     
    573576    if (fNumEntry >= fNumEntries)
    574577        return kFALSE;
     578
     579#if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06)
     580    //
     581    // This fixes 99.9% of a memory leak using a root version prior
     582    // to 3.02/??
     583    //
     584    TChainElement *element=NULL;
     585    TIter Next(fChain->GetStatus());
     586    while ((element=(TChainElement*)Next()))
     587    {
     588        MParContainer **c = (MParContainer**)element->GetBaddress();
     589        if (!c) continue;
     590        if ((*c)->InheritsFrom(MRawEvtData::Class()))
     591            ((MRawEvtData*)(*c))->DeletePixels(kFALSE);
     592
     593    }
     594#endif
    575595
    576596    Bool_t rc = fChain->GetEntry(fNumEntry++) != 0;
Note: See TracChangeset for help on using the changeset viewer.