Changeset 2130 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
05/21/03 16:06:50 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
3 edited

Legend:

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

    r2123 r2130  
    261261
    262262    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    }
    264268    else
    265269    {
     
    678682
    679683    //
    680     // Do a consistency check for all branches
    681     //
    682 //    if (!CheckBranchSize())
    683 //        return kFALSE;
    684 
    685     //
    686684    // If auto enabling scheme isn't disabled, do auto enabling
    687685    //
  • 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}
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h

    r2120 r2130  
    8282    enum {
    8383        kFillTree  = BIT(14),
    84         kIsNewTree = BIT(15)
     84        // TBranch::kAutoDelete = BIT(15)
     85        kIsNewTree = BIT(16)
    8586    };
    8687
Note: See TracChangeset for help on using the changeset viewer.