Changeset 1130 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 12/19/01 14:13:31 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r1115 r1130 190 190 { 191 191 fProgress->SetPosition(++dummy); 192 #if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06) 193 gSystem->ProcessEvents(); 194 #else 192 195 gClient->ProcessEventsFor(fProgress); 196 #endif 193 197 } 194 198 else … … 200 204 { 201 205 fProgress->SetPosition(maxcnt - dummy); 206 #if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06) 207 gSystem->ProcessEvents(); 208 #else 202 209 gClient->ProcessEventsFor(fProgress); 210 #endif 203 211 } 204 212 else -
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r1116 r1130 565 565 // If the end of the file is reached the Eventloop is stopped. 566 566 // 567 #if ROOT_VERSION_CODE < ROOT_VERSION(3,02,06) 568 #include "../mraw/MRawEvtData.h" 569 #endif 567 570 Bool_t MReadTree::Process() 568 571 { … … 573 576 if (fNumEntry >= fNumEntries) 574 577 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 575 595 576 596 Bool_t rc = fChain->GetEntry(fNumEntry++) != 0;
Note:
See TracChangeset
for help on using the changeset viewer.