Changeset 3144 for trunk/MagicSoft/Mars
- Timestamp:
- 02/13/04 18:02:54 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3142 r3144 92 92 mjobs/MJPedestal.cc: 93 93 - fixed usage of AddNotify 94 95 * mfileio/MReadReports.cc: 96 - use a different way to determin whether the tree is a valid tree, 97 skip invalid trees 98 99 * mfileio/MReadTree.cc: 100 - added another sanity check at the beginning of PreProcess 101 102 * mhbase/MFillH.[h,cc]: 103 - added bit kCanSkip which skips MFillH in case the necessary container 104 wasn't found. 105 - cd into the corresponding canvas before filling the MH 94 106 95 107 -
trunk/MagicSoft/Mars/mfileio/MReadReports.cc
r2607 r3144 198 198 while ((tree=(MReadTree*)NextT())) 199 199 { 200 if ( ((TChain*)tree->fChain)->GetListOfFiles()->GetEntries()==0)200 if (!((TChain*)tree->fChain)->GetFile()) 201 201 { 202 *fLog << warn << "No files for Tree " << tree->GetName() << "... skipped." << endl; 202 *fLog << warn << "No files or no tree '" << tree->GetName() << "'... skipped." << endl; 203 fTrees->RemoveFromList(tree); 203 204 continue; 204 205 } … … 240 241 } 241 242 243 if (i==0) 244 { 245 *fLog << err << "Files do not contain any valid tree... abort." << endl; 246 return kFALSE; 247 } 248 242 249 fPosEntry.Set(i); 243 250 … … 338 345 } 339 346 347 *fLog << dbg << "Removing chain " << chain->GetName() << " from list." << endl; 348 340 349 delete *GetTime(chain); 341 350 delete GetTime(chain); -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r3009 r3144 597 597 598 598 // 599 // check for files and for the tree! 600 // 601 if (!fChain->GetFile()) 602 { 603 *fLog << err << GetDescriptor() << ": No file or no tree with name " << fChain->GetName() << " in file." << endl; 604 return kFALSE; 605 } 606 607 // 599 608 // get number of events in this tree 600 609 // 601 610 if (!GetEntries()) 602 611 { 603 *fLog << warn<< GetDescriptor() << ": No entries found in file(s)" << endl;612 *fLog << err << GetDescriptor() << ": No entries found in file(s)" << endl; 604 613 return kFALSE; 605 614 } -
trunk/MagicSoft/Mars/mhbase/MFillH.cc
r2735 r3144 395 395 396 396 if (!fWeight) 397 398 399 400 397 { 398 *fLog << err << fWeightName << " [MWeight] not found... aborting." << endl; 399 return kFALSE; 400 } 401 401 } 402 402 … … 474 474 return DrawToDisplay(); 475 475 476 if (TestBit(kCanSkip)) 477 { 478 *fLog << warn << fParContainerName << " [MParContainer] not found... skipped." << endl; 479 return kSKIP; 480 } 481 476 482 *fLog << err << fParContainerName << " [MParContainer] not found... aborting." << endl; 477 483 return kFALSE; … … 501 507 */ 502 508 503 return fH->Fill(fParContainer, fWeight?fWeight->GetWeight():1); 509 TVirtualPad *save = gPad; 510 if (fCanvas) 511 fCanvas->cd(); 512 513 Bool_t rc = fH->Fill(fParContainer, fWeight?fWeight->GetWeight():1); 514 515 if (save && fCanvas) 516 save->cd(); 517 518 return rc; 504 519 } 505 520 -
trunk/MagicSoft/Mars/mhbase/MFillH.h
r2735 r3144 18 18 public: 19 19 enum { 20 kDoNotDisplay = BIT(17) 20 kDoNotDisplay = BIT(17), 21 kCanSkip = BIT(18) 21 22 }; 22 23
Note:
See TracChangeset
for help on using the changeset viewer.