Changeset 7070 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 05/20/05 12:17:55 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r6890 r7070 201 201 // for developers or use in special jobs only! 202 202 // 203 Bool_t MEvtLoop::PreProcess( const char *tlist)203 Bool_t MEvtLoop::PreProcess() 204 204 { 205 205 fTaskList = NULL; … … 218 218 // the default name is "MTaskList" 219 219 // 220 fTaskList = (MTaskList*)fParList->FindObject( tlist,"MTaskList");220 fTaskList = (MTaskList*)fParList->FindObject("MTaskList"); 221 221 if (!fTaskList) 222 222 { 223 *fLog << err << dbginf << "Cannot find tasklist '" << tlist << "'in parameter list." << endl;223 *fLog << err << dbginf << "Cannot find MTaskList in parameter list." << endl; 224 224 return kFALSE; 225 225 } … … 567 567 // task will access the tasklist. 568 568 // 569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, const char *tlist)569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Bool_t printstat) 570 570 { 571 571 TDatime d; 572 572 *fLog << inf << underline << "Eventloop: " << fName << " started at " << d.AsString() << endl; 573 573 574 Bool_t rc = PreProcess( tlist);574 Bool_t rc = PreProcess(); 575 575 576 576 // … … 590 590 rc = kFALSE; 591 591 } 592 593 // 594 // If Process has ever been called print statistics 595 // 596 if (printstat && fTaskList->GetNumExecutions()>0) 597 fTaskList->PrintStatistics(); 592 598 593 599 if (!fDisplay) -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r6890 r7070 64 64 #endif 65 65 66 Bool_t PreProcess( const char *tlist="MTaskList");66 Bool_t PreProcess(); 67 67 Int_t Process(UInt_t maxcnt); 68 68 Bool_t PostProcess() const; 69 69 70 Bool_t Eventloop(UInt_t maxcnt=0, const char *tlist="MTaskList");70 Bool_t Eventloop(UInt_t maxcnt=0, Bool_t printstat=kTRUE); 71 71 72 72 void MakeMacro(const char *filename="evtloop.C");
Note:
See TracChangeset
for help on using the changeset viewer.