Changeset 3497 for trunk/MagicSoft/Mars/mbase/MTask.h
- Timestamp:
- 03/15/04 12:04:09 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTask.h
r2589 r3497 15 15 16 16 class TList; 17 class TStopwatch; 17 18 18 19 class MFilter; … … 29 30 Bool_t fIsPreprocessed; //! Indicates the success of the PreProcessing (set by MTaskList) 30 31 UInt_t fNumExecutions; //! Number of Excutions 32 33 TStopwatch *fStopwatch; //! 31 34 32 35 virtual Int_t PreProcess(MParList *pList); … … 66 69 virtual ~MTask(); 67 70 71 const TList *GetListOfBranches() const { return fListOfBranches; } 72 Bool_t OverwritesProcess(TClass *cls=NULL) const; 73 74 // Filter functions 68 75 virtual void SetFilter(MFilter *filter) { fFilter=filter; } 69 76 const MFilter *GetFilter() const { return fFilter; } 70 77 MFilter *GetFilter() { return fFilter; } // for MContinue only 71 78 79 // Display functions 72 80 void SetDisplay(MStatusDisplay *d); 73 virtual void PrintStatistics(const Int_t lvl=0, Bool_t title=kFALSE) const;74 81 82 // Function for parallel executions 75 83 static TString AddSerialNumber(const char *str, UInt_t num) { TString s(str); if (num==0) return s; s += ";"; s += num; return s; } 76 84 static TString AddSerialNumber(const TString &str, UInt_t num) { return AddSerialNumber((const char*)str, num); } … … 83 91 const char *GetDescriptor() const; 84 92 93 // Task execution statistics 85 94 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; 86 98 99 // Task overwrite functions 87 100 virtual Bool_t ReInit(MParList *pList); 88 101 … … 90 103 virtual Int_t CallProcess(); 91 104 virtual Int_t CallPostProcess(); 92 93 const TList *GetListOfBranches() const { return fListOfBranches; }94 95 Bool_t OverwritesProcess(TClass *cls=NULL) const;96 105 97 106 void SavePrimitive(ofstream &out, Option_t *o="");
Note:
See TracChangeset
for help on using the changeset viewer.