Ignore:
Timestamp:
05/20/05 12:17:55 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r6890 r7070  
    201201// for developers or use in special jobs only!
    202202//
    203 Bool_t MEvtLoop::PreProcess(const char *tlist)
     203Bool_t MEvtLoop::PreProcess()
    204204{
    205205    fTaskList = NULL;
     
    218218    //  the default name is "MTaskList"
    219219    //
    220     fTaskList = (MTaskList*)fParList->FindObject(tlist, "MTaskList");
     220    fTaskList = (MTaskList*)fParList->FindObject("MTaskList");
    221221    if (!fTaskList)
    222222    {
    223         *fLog << err << dbginf << "Cannot find tasklist '" << tlist << "' in parameter list." << endl;
     223        *fLog << err << dbginf << "Cannot find MTaskList in parameter list." << endl;
    224224        return kFALSE;
    225225    }
     
    567567// task will access the tasklist.
    568568//
    569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, const char *tlist)
     569Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Bool_t printstat)
    570570{
    571571    TDatime d;
    572572    *fLog << inf << underline << "Eventloop: " << fName << " started at " << d.AsString() << endl;
    573573
    574     Bool_t rc = PreProcess(tlist);
     574    Bool_t rc = PreProcess();
    575575
    576576    //
     
    590590        rc = kFALSE;
    591591    }
     592
     593    //
     594    // If Process has ever been called print statistics
     595    //
     596    if (printstat && fTaskList->GetNumExecutions()>0)
     597        fTaskList->PrintStatistics();
    592598
    593599    if (!fDisplay)
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r6890 r7070  
    6464#endif
    6565
    66     Bool_t PreProcess(const char *tlist="MTaskList");
     66    Bool_t PreProcess();
    6767    Int_t  Process(UInt_t maxcnt);
    6868    Bool_t PostProcess() const;
    6969
    70     Bool_t Eventloop(UInt_t maxcnt=0, const char *tlist="MTaskList");
     70    Bool_t Eventloop(UInt_t maxcnt=0, Bool_t printstat=kTRUE);
    7171
    7272    void MakeMacro(const char *filename="evtloop.C");
Note: See TracChangeset for help on using the changeset viewer.