Ignore:
Timestamp:
03/15/04 12:04:09 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTask.h

    r2589 r3497  
    1515
    1616class TList;
     17class TStopwatch;
    1718
    1819class MFilter;
     
    2930    Bool_t fIsPreprocessed; //! Indicates the success of the PreProcessing (set by MTaskList)
    3031    UInt_t fNumExecutions;  //! Number of Excutions
     32
     33    TStopwatch *fStopwatch; //!
    3134
    3235    virtual Int_t PreProcess(MParList *pList);
     
    6669    virtual ~MTask();
    6770
     71    const TList *GetListOfBranches() const { return fListOfBranches; }
     72    Bool_t OverwritesProcess(TClass *cls=NULL) const;
     73
     74    // Filter functions
    6875    virtual void SetFilter(MFilter *filter) { fFilter=filter; }
    6976    const MFilter *GetFilter() const      { return fFilter; }
    7077    MFilter *GetFilter()  { return fFilter; } // for MContinue only
    7178
     79    // Display functions
    7280    void SetDisplay(MStatusDisplay *d);
    73     virtual void PrintStatistics(const Int_t lvl=0, Bool_t title=kFALSE) const;
    7481
     82    // Function for parallel executions
    7583    static TString AddSerialNumber(const char *str, UInt_t num) { TString s(str); if (num==0) return s; s += ";"; s += num; return s; }
    7684    static TString AddSerialNumber(const TString &str, UInt_t num) { return AddSerialNumber((const char*)str, num); }
     
    8391    const char *GetDescriptor() const;
    8492
     93    // Task execution statistics
    8594    UInt_t GetNumExecutions() const { return fNumExecutions; }
     95    Double_t GetCpuTime() const;
     96    Double_t GetRealTime() const;
     97    virtual void PrintStatistics(const Int_t lvl=0, Bool_t title=kFALSE, Double_t time=0) const;
    8698
     99    // Task overwrite functions
    87100    virtual Bool_t ReInit(MParList *pList);
    88101
     
    90103    virtual Int_t CallProcess();
    91104    virtual Int_t CallPostProcess();
    92 
    93     const TList *GetListOfBranches() const { return fListOfBranches; }
    94 
    95     Bool_t OverwritesProcess(TClass *cls=NULL) const;
    96105
    97106    void SavePrimitive(ofstream &out, Option_t *o="");
Note: See TracChangeset for help on using the changeset viewer.