Changeset 1936 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 04/10/03 10:43:24 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MFilter.cc
r1524 r1936 72 72 ClassImp(MFilter); 73 73 74 MFilter::MFilter(const char *name, const char *title) 74 MFilter::MFilter(const char *name, const char *title) : fInverted(kFALSE) 75 75 { 76 76 fName = name ? name : "MFilter"; 77 77 fTitle = title ? title : "Base Class for a filter"; 78 }79 80 // --------------------------------------------------------------------------81 //82 Bool_t MFilter::PreProcess(MParList *pList)83 {84 return kTRUE;85 }86 87 // --------------------------------------------------------------------------88 //89 Bool_t MFilter::Process()90 {91 return kTRUE;92 }93 94 // --------------------------------------------------------------------------95 //96 Bool_t MFilter::PostProcess()97 {98 return kTRUE;99 78 } 100 79 -
trunk/MagicSoft/Mars/mbase/MFilter.h
r1668 r1936 11 11 { 12 12 private: 13 virtual Bool_t PreProcess(MParList *pList);14 virtual Bool_t Process(); 15 virtual Bool_t PostProcess();13 Bool_t fInverted; 14 15 virtual Bool_t IsExpressionTrue() const = 0; 16 16 17 17 public: 18 18 MFilter(const char *name=NULL, const char *title=NULL); 19 19 20 virtual Bool_t IsExpressionTrue() const = 0;21 20 virtual TString GetRule() const; 21 22 Bool_t IsConditionTrue() const { return fInverted ? !IsExpressionTrue() : IsExpressionTrue(); } 23 24 void SetInverted(Bool_t i) { fInverted=i; } 25 Bool_t IsInverted() const { return fInverted; } 22 26 23 27 ClassDef(MFilter, 0) // Abstract base class for the filters -
trunk/MagicSoft/Mars/mbase/MTask.cc
r1657 r1936 198 198 // this task. 199 199 // 200 const Bool_t exec = fFilter ? fFilter->Is ExpressionTrue() : kTRUE;200 const Bool_t exec = fFilter ? fFilter->IsConditionTrue() : kTRUE; 201 201 202 202 if (!exec)
Note:
See TracChangeset
for help on using the changeset viewer.