- Timestamp:
- 08/14/02 14:01:05 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1497 r1501 1 1 -*-*- END -*-*- 2 3 2002/08/14: Thomas Bretz 4 5 * mbase/MTask.[h,cc], mbase/MTaskList.[h,cc]: 6 - added second argument to PrintStatistics 7 8 2 9 3 10 2002/08/12: Thomas Bretz -
trunk/MagicSoft/Mars/NEWS
r1495 r1501 74 74 file having crab starfield, but also for all following files - fixed 75 75 76 - PrintStatistics can now be instructud to print also the title, too. 76 77 77 78 -
trunk/MagicSoft/Mars/mbase/MTask.cc
r1489 r1501 257 257 // identified. 258 258 // 259 void MTask::PrintStatistics(const Int_t lvl ) const259 void MTask::PrintStatistics(const Int_t lvl, Bool_t title) const 260 260 { 261 261 *fLog << all << setw(lvl) << " " << GetDescriptor() << "\t"; 262 *fLog << dec << fNumExecutions << endl; 262 *fLog << dec << fNumExecutions; 263 if (title) 264 *fLog << "\t" << fTitle; 265 *fLog << endl; 263 266 } 264 267 -
trunk/MagicSoft/Mars/mbase/MTask.h
r1481 r1501 70 70 void SetFilter(MFilter *filter) { fFilter=filter; } 71 71 const MFilter *GetFilter() const { return fFilter; } 72 virtual void PrintStatistics(const Int_t lvl=0 ) const;72 virtual void PrintStatistics(const Int_t lvl=0, Bool_t title=kFALSE) const; 73 73 74 74 UInt_t GetNumExecutions() { return fNumExecutions; } -
trunk/MagicSoft/Mars/mbase/MTaskList.cc
r1487 r1501 481 481 // identified. Use MTaskList::PrintStatistics without an argument. 482 482 // 483 void MTaskList::PrintStatistics(const Int_t lvl ) const483 void MTaskList::PrintStatistics(const Int_t lvl, Bool_t title) const 484 484 { 485 485 if (lvl==0) … … 488 488 *fLog << "Execution Statistics: " << endl; 489 489 *fLog << "---------------------" << endl; 490 *fLog << GetDescriptor() << endl; 490 *fLog << GetDescriptor(); 491 if (title) 492 *fLog << "\t" << fTitle; 493 *fLog << endl; 491 494 } 492 495 else 493 496 { 494 *fLog << setw(lvl) << " " << GetDescriptor() << endl; 497 *fLog << setw(lvl) << " " << GetDescriptor(); 498 if (title) 499 *fLog << "\t" << fTitle; 500 *fLog << endl; 495 501 } 496 502 … … 498 504 // create the Iterator for the TaskList 499 505 // 500 fTasks->ForEach(MTask, PrintStatistics)(lvl+1 );506 fTasks->ForEach(MTask, PrintStatistics)(lvl+1, title); 501 507 502 508 if (lvl==0) 503 509 *fLog << endl; 504 510 } 511 505 512 506 513 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MTaskList.h
r1477 r1501 55 55 56 56 void Print(Option_t *opt = "") const; 57 void PrintStatistics(const Int_t lvl=0 ) const;57 void PrintStatistics(const Int_t lvl=0, Bool_t title=kFALSE) const; 58 58 void SetOwner(Bool_t enable=kTRUE); 59 59
Note:
See TracChangeset
for help on using the changeset viewer.