Changeset 7838 for trunk/MagicSoft/Mars/mfileio
- Timestamp:
- 08/03/06 14:45:12 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadReports.cc
r7115 r7838 18 18 ! Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2006 21 21 ! 22 22 ! … … 104 104 TIter NextC(fChains); 105 105 while ((o=NextC())) 106 {107 106 delete *GetTime((TChain*)o); 108 delete GetTime((TChain*)o);109 }110 107 111 108 delete fTrees; … … 297 294 // 298 295 MTime **tx = new MTime*; 299 *tx = new MTime;296 *tx = 0;//new MTime; 300 297 301 298 TChain *c=new TChain(tree->GetName()); 299 302 300 c->SetBranchStatus("*", 0); 303 301 c->SetBranchAddress(tn, tx); 304 tn+="*";305 c->SetBranchStatus(tn, 1); 302 c->SetBranchStatus(tn2, 1); 303 306 304 c->Add((TChain*)tree->fChain); 307 305 c->GetEntry(0); … … 436 434 } 437 435 438 *fLog << dbg << "Removing chain " << chain->GetName() << " from list ." << endl;436 *fLog << dbg << "Removing chain " << chain->GetName() << " from list" << flush; 439 437 440 438 delete *GetTime(chain); // Delete MTime* 441 delete GetTime(chain); // Delete MTime-instance439 *fLog << "." << flush; 442 440 delete fChains->Remove(chain); // Remove chain from TList 441 *fLog << "." << flush; 443 442 444 443 // FIXME: Maybe MTaskList should have a member function to … … 448 447 // corresponds to the correct task in the list. 449 448 const_cast<TList*>(fTrees->GetList())->Remove(task); 449 *fLog << "." << flush; 450 450 const_cast<TList*>(fTrees->GetList())->AddLast(task); 451 *fLog << "done." << endl; 451 452 } 452 453 -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r7804 r7838 713 713 // 714 714 // It seems, that TFile and TTree are not completely independant if 715 // many times the same file is opene s(MReadReports) and some of715 // many times the same file is opened (MReadReports) and some of 716 716 // the files in the chains don't have one tree. TChain::fTreeNumber 717 717 // is already set before LoadTree from GetFile is called and
Note:
See TracChangeset
for help on using the changeset viewer.