Ignore:
Timestamp:
05/21/03 16:06:50 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r2123 r2130  
    148148    }
    149149
     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
    150168    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;
    154173    *fLog << endl;
    155174}
Note: See TracChangeset for help on using the changeset viewer.