Changeset 1003 for trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc
- Timestamp:
- 10/29/01 11:15:53 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MWriteRootFile.cc
r995 r1003 46 46 ClassImp(MWriteRootFile); 47 47 48 #define k SaveNowBIT(1)48 #define kFillTree BIT(1) 49 49 50 50 // -------------------------------------------------------------------------- … … 62 62 const char *title) 63 63 { 64 *fName = name ? name : "MWriteRootFile";65 *fTitle = title ? title : "Task which writes a root-output file";64 fName = name ? name : "MWriteRootFile"; 65 fTitle = title ? title : "Task which writes a root-output file"; 66 66 67 67 // … … 113 113 114 114 TTree *t; 115 T ObjArrayIter Next(&fTrees);115 TIter Next(&fTrees); 116 116 while ((t=(TTree*)Next())) 117 117 cout << t->GetName() << ": \t" << t->GetEntries() << " entries." << endl; … … 177 177 // loop over all branches which are 'marked' as branches to get written. 178 178 // 179 T ObjArrayIter Next(&fBranches);179 TIter Next(&fBranches); 180 180 while ((entry=(MRootFileBranch*)Next())) 181 181 { … … 244 244 // 245 245 TObject *obj; 246 T ObjArrayIter NextTree(&fTrees);246 TIter NextTree(&fTrees); 247 247 while ((obj=NextTree())) 248 248 { … … 270 270 // The containers should be written in Splitlevel=1 271 271 // 272 branch = tree->Branch(cname, cont->ClassName(), entry->GetAddress() , 32000, 1);272 branch = tree->Branch(cname, cont->ClassName(), entry->GetAddress()); 273 273 274 274 *fLog << "Created Branch " << cname << " of " << cont->ClassName() << "." << endl; … … 302 302 // Loop over all branch entries 303 303 // 304 T ObjArrayIter NextBranch(&fBranches);304 TIter NextBranch(&fBranches); 305 305 while ((obj=NextBranch())) 306 306 { … … 317 317 // the corresponding tree entry. 318 318 // 319 b->GetTree()->SetBit(k SaveNow);319 b->GetTree()->SetBit(kFillTree); 320 320 } 321 321 … … 323 323 // Loop over all tree entries 324 324 // 325 T ObjArrayIter NextTree(&fTrees);325 TIter NextTree(&fTrees); 326 326 while ((obj=NextTree())) 327 327 { … … 331 331 // Check the write flag of the tree 332 332 // 333 if (!t->TestBit(k SaveNow))333 if (!t->TestBit(kFillTree)) 334 334 continue; 335 335 … … 340 340 // 341 341 t->Fill(); 342 t->ResetBit(k SaveNow);342 t->ResetBit(kFillTree); 343 343 } 344 344 }
Note:
See TracChangeset
for help on using the changeset viewer.