- Timestamp:
- 04/10/03 10:43:24 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1935 r1936 9 9 * mbase/MTaskList.[h,cc]: 10 10 - added RemoveFromList-function 11 12 * merpp.cc: 13 - fixed typo 14 15 * mbase/MFilter.[h,cc]: 16 - removed unnecessary base functions for Pre//PostProcess 17 18 * mbase/MTask.cc, mfileio/MCT1ReadPreProc.cc, mfileio/MReadTree.cc, 19 mfilter/MF.cc, mfilter/MFilterList.cc 20 - implemented IsConditionalTrue to support inverted filters 21 22 * mhist/MHHadronness.cc: 23 - removed unnecessary check 11 24 12 25 -
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) -
trunk/MagicSoft/Mars/merpp.cc
r1330 r1936 131 131 132 132 // 133 // create the looping object and t hell it about the parameters to use133 // create the looping object and tell it about the parameters to use 134 134 // and the tasks to execute 135 135 // -
trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc
r1905 r1936 1068 1068 // Skip Event 1069 1069 // 1070 if (!GetSelector()->Is ExpressionTrue())1070 if (!GetSelector()->IsConditionTrue()) 1071 1071 { 1072 1072 fIn->seekg(sizeof(struct eventrecord), ios::cur); -
trunk/MagicSoft/Mars/mfileio/MReadTree.cc
r1836 r1936 732 732 // Skip Event 733 733 // 734 if (!GetSelector()->Is ExpressionTrue())734 if (!GetSelector()->IsConditionTrue()) 735 735 { 736 736 fNumEntry++; -
trunk/MagicSoft/Mars/mfilter/MF.cc
r1863 r1936 449 449 Bool_t MF::IsExpressionTrue() const 450 450 { 451 return fF->Is ExpressionTrue();451 return fF->IsConditionTrue(); 452 452 } 453 453 -
trunk/MagicSoft/Mars/mfilter/MFilterList.cc
r1668 r1936 105 105 return kTRUE; 106 106 107 Bool_t rc = filter->Is ExpressionTrue();107 Bool_t rc = filter->IsConditionTrue(); 108 108 109 109 // … … 114 114 case kEAnd: 115 115 while ((filter=(MFilter*)Next())) 116 rc &= filter->Is ExpressionTrue();116 rc &= filter->IsConditionTrue(); 117 117 break; 118 118 119 119 case kEOr: 120 120 while ((filter=(MFilter*)Next())) 121 rc |= filter->Is ExpressionTrue();121 rc |= filter->IsConditionTrue(); 122 122 break; 123 123 124 124 case kEXor: 125 125 while ((filter=(MFilter*)Next())) 126 rc ^= filter->Is ExpressionTrue();126 rc ^= filter->IsConditionTrue(); 127 127 break; 128 128 129 129 case kELAnd: 130 130 while ((filter=(MFilter*)Next())) 131 rc = (rc && filter->Is ExpressionTrue());131 rc = (rc && filter->IsConditionTrue()); 132 132 break; 133 133 134 134 case kELOr: 135 135 while ((filter=(MFilter*)Next())) 136 rc = (rc || filter->Is ExpressionTrue());136 rc = (rc || filter->IsConditionTrue()); 137 137 break; 138 138 } -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r1931 r1936 270 270 for (Int_t i=1; i<=n; i++) 271 271 { 272 const Stat_t ip = sump!=0 ? fPhness->Integral(1, i) : 0;273 const Stat_t ig = sumg!=0 ? fGhness->Integral(1, i) : 0;272 const Stat_t ip = fPhness->Integral(1, i); 273 const Stat_t ig = fGhness->Integral(1, i); 274 274 275 275 fIntPhness->SetBinContent(i, ip);
Note:
See TracChangeset
for help on using the changeset viewer.