Changeset 2130 for trunk/MagicSoft
- Timestamp:
- 05/21/03 16:06:50 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfileio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r2123 r2130 261 261 262 262 if (strrchr(fname, '?') || strrchr(fname, '*')) 263 *fLog << warn << "WARNING: You may encounter crashes closing the files..." << endl; 263 { 264 *fLog << warn; 265 *fLog<< "WARNING: Using widcards with older root versions:" << endl; 266 *fLog << " You may encounter crashes closing the files..." << endl; 267 } 264 268 else 265 269 { … … 678 682 679 683 // 680 // Do a consistency check for all branches681 //682 // if (!CheckBranchSize())683 // return kFALSE;684 685 //686 684 // If auto enabling scheme isn't disabled, do auto enabling 687 685 // -
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 } -
trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h
r2120 r2130 82 82 enum { 83 83 kFillTree = BIT(14), 84 kIsNewTree = BIT(15) 84 // TBranch::kAutoDelete = BIT(15) 85 kIsNewTree = BIT(16) 85 86 }; 86 87
Note:
See TracChangeset
for help on using the changeset viewer.