Ignore:
Timestamp:
11/19/03 00:03:53 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
2 edited

Legend:

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

    r2470 r2529  
    409409    // Check whether this branch really exists
    410410    //
    411     if (fChain->GetBranch(name))
     411    TString bn(name);
     412    if (bn.EndsWith("*"))
     413        bn.Remove(bn.Length()-1);
     414
     415    if (fChain->GetBranch(bn))
    412416        SetBranchStatus(name, status);
    413417
     
    905909}
    906910
     911TString MReadTree::GetTreeName() const
     912{
     913    return fChain->GetName();
     914}
     915
    907916// --------------------------------------------------------------------------
    908917//
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r2470 r2529  
    161161        MRootFileBranch *b = (MRootFileBranch*)obj;
    162162
    163         if (b->GetTree()->TestBit(kIsNewTree))
     163        if (!b->GetTree() || b->GetTree()->TestBit(kIsNewTree))
    164164            continue;
    165165
Note: See TracChangeset for help on using the changeset viewer.