Changeset 2130 for trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
- Timestamp:
- 05/21/03 16:06:50 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
r2123 r2130 148 148 } 149 149 150 TObject *obj; 151 TIter NextBranch(&fBranches); 152 while ((obj=NextBranch())) 153 { 154 MRootFileBranch *b = (MRootFileBranch*)obj; 155 156 if (b->GetTree()->TestBit(kIsNewTree)) 157 continue; 158 159 TBranch *branch = b->GetBranch(); 160 161 TString name = b->GetTree()->GetName(); 162 name += '.'; 163 name += branch->GetName(); 164 165 *fLog << " " << name.Strip(TString::kTrailing, '.') << ": \t" << branch->GetEntries() << " entries." << endl; 166 } 167 150 168 TTree *t = NULL; 151 TIter Next(&fTrees); 152 while ((t=(TTree*)Next())) 153 *fLog << " " << t->GetName() << ": \t" << t->GetEntries() << " entries." << endl; 169 TIter NextTree(&fTrees); 170 while ((t=(TTree*)NextTree())) 171 if (t->TestBit(kIsNewTree)) 172 *fLog << " " << t->GetName() << ": \t" << t->GetEntries() << " entries." << endl; 154 173 *fLog << endl; 155 174 }
Note:
See TracChangeset
for help on using the changeset viewer.