Ignore:
Timestamp:
03/02/01 12:48:15 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r659 r666  
    101101        // check if object is existing in the list
    102102        //
    103         MParContainer *pcont = (MParContainer*)pList->FindObject(name);
     103        MParContainer *pcont = pList->FindCreateObj(name);
    104104
    105105        if (!pcont)
    106106        {
    107107            //
    108             // if object is not existing in the list try to create one
     108            // if class is not existing in the (root) environment
     109            // we cannot proceed reading this branch
    109110            //
    110             *fLog << "MReadTree::PreProcess - WARNING: '" << name << "' not found... creating." << endl;
    111 
    112             //
    113             // try to get class from root environment
    114             //
    115             TClass *cls = gROOT->GetClass(name);
    116 
    117             if (!cls)
    118             {
    119                 //
    120                 // if class is not existing in the root environment
    121                 // we cannot proceed reading this branch
    122                 //
    123                 *fLog << "MReadTree::PreProcess - Warning: Class '" << name << "' not existing in dictionary. Branch skipped." << endl;
    124                 continue;
    125             }
    126 
    127             //
    128             // create the container and add it to the list
    129             //
    130             pcont = (MParContainer*)cls->New();
    131             *fLog << pcont << endl;
    132             pList->AddToList(pcont);
     111            *fLog << "MReadTree::PreProcess - Warning: Class '" << name << "' not existing in dictionary. Branch skipped." << endl;
     112            continue;
    133113        }
    134114
Note: See TracChangeset for help on using the changeset viewer.