Changeset 5715 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 01/07/05 12:58:11 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r5692 r5715 287 287 // via AddNotify. 288 288 // 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 // 289 296 Bool_t MReadTree::Notify() 290 297 { … … 299 306 *fLog << GetNumEntry()-1 << ")" << endl; 300 307 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 301 325 if (!fNotify) 302 326 return kTRUE; 303 327 304 TIter Next (fNotify);328 TIter NextN(fNotify); 305 329 TObject *o=NULL; 306 while ((o=Next ()))330 while ((o=NextN())) 307 331 if (!o->Notify()) 308 332 {
Note:
See TracChangeset
for help on using the changeset viewer.