Changeset 1032 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 11/06/01 13:27:04 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MReadTree.cc
r1030 r1032 302 302 { 303 303 // 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); 307 312 308 313 // 309 314 // Check if enabeling the branch is allowed 310 315 // 311 if (fVetoList->FindObject( name))316 if (fVetoList->FindObject(oname)) 312 317 { 313 *fLog << "Master branch " << name << " has veto... skipped." << endl;318 *fLog << "Master branch " << bname << " has veto... skipped." << endl; 314 319 DisableSubBranches(branch); 315 320 continue; … … 326 331 // check if object is existing in the list 327 332 // 328 *pcont=pList->FindCreateObj( name);333 *pcont=pList->FindCreateObj(oname); 329 334 330 335 if (!*pcont) … … 334 339 // we cannot proceed reading this branch 335 340 // 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; 337 342 DisableSubBranches(branch); 338 343 continue; … … 343 348 // the actual branch should be stored - enable branch. 344 349 // 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(); 348 355 349 356 num++;
Note:
See TracChangeset
for help on using the changeset viewer.