Ignore:
Timestamp:
11/06/01 13:27:04 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1030 r1032  
    302302    {
    303303        //
    304         // Get Name of Branch
    305         //
    306         const char *name = branch->GetName();
     304        // Get Name of Branch and Object
     305        //
     306        const char *bname = branch->GetName();
     307
     308        TString oname(bname);
     309
     310        if (oname.EndsWith("."))
     311            oname.Remove(oname.Length()-1);
    307312
    308313        //
    309314        // Check if enabeling the branch is allowed
    310315        //
    311         if (fVetoList->FindObject(name))
     316        if (fVetoList->FindObject(oname))
    312317        {
    313             *fLog << "Master branch " << name << " has veto... skipped." << endl;
     318            *fLog << "Master branch " << bname << " has veto... skipped." << endl;
    314319            DisableSubBranches(branch);
    315320            continue;
     
    326331        // check if object is existing in the list
    327332        //
    328         *pcont=pList->FindCreateObj(name);
     333        *pcont=pList->FindCreateObj(oname);
    329334
    330335        if (!*pcont)
     
    334339            // we cannot proceed reading this branch
    335340            //
    336             *fLog << dbginf << "Warning: Class '" << name << "' not existing in dictionary. Branch skipped." << endl;
     341            *fLog << dbginf << "Warning: Class '" << oname << "' not existing in dictionary. Branch skipped." << endl;
    337342            DisableSubBranches(branch);
    338343            continue;
     
    343348        // the actual branch should be stored - enable branch.
    344349        //
    345         fChain->SetBranchAddress(name, pcont);
    346 
    347         *fLog << "Master branch address " << name << " setup for reading." << endl;
     350        fChain->SetBranchAddress(bname, pcont);
     351        *fLog << "Master branch address " << bname << " setup for reading." << endl;
     352
     353        //*fLog << "Branch " << bname << " autodel: " << (int)branch->IsAutoDelete() << endl;
     354        branch->SetAutoDelete();
    348355
    349356        num++;
Note: See TracChangeset for help on using the changeset viewer.