Changeset 7071 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 05/20/05 12:31:32 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r7070 r7071 567 567 // task will access the tasklist. 568 568 // 569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Bool_t printstat)569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Statistics_t printstat) 570 570 { 571 571 TDatime d; … … 594 594 // If Process has ever been called print statistics 595 595 // 596 if (printstat && fTaskList->GetNumExecutions()>0) 597 fTaskList->PrintStatistics(); 596 if (fTaskList->GetNumExecutions()>0) 597 switch (printstat) 598 { 599 case kNoStatistics: 600 break; 601 case kStdStatistics: 602 fTaskList->PrintStatistics(); 603 break; 604 case kFullStatistics: 605 fTaskList->PrintStatistics(0, kTRUE); 606 break; 607 } 598 608 599 609 if (!fDisplay) -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r7070 r7071 43 43 44 44 public: 45 enum Statistics_t { 46 kNoStatistics = 0, 47 kStdStatistics = 1, 48 kFullStatistics = 2 49 }; 50 45 51 MEvtLoop(const char *name="Evtloop"); 46 52 virtual ~MEvtLoop(); … … 68 74 Bool_t PostProcess() const; 69 75 70 Bool_t Eventloop(UInt_t maxcnt=0, Bool_t printstat=kTRUE);76 Bool_t Eventloop(UInt_t maxcnt=0, Statistics_t printstat=kStdStatistics); 71 77 72 78 void MakeMacro(const char *filename="evtloop.C");
Note:
See TracChangeset
for help on using the changeset viewer.