Changeset 666 for trunk/MagicSoft/Mars/mbase/MReadTree.cc
- Timestamp:
- 03/02/01 12:48:15 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r659 r666 101 101 // check if object is existing in the list 102 102 // 103 MParContainer *pcont = (MParContainer*)pList->FindObject(name);103 MParContainer *pcont = pList->FindCreateObj(name); 104 104 105 105 if (!pcont) 106 106 { 107 107 // 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 109 110 // 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; 133 113 } 134 114
Note:
See TracChangeset
for help on using the changeset viewer.