Changeset 3682 for trunk/MagicSoft/Mars/mfbase
- Timestamp:
- 04/08/04 19:52:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mfbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfbase/MF.cc
r3573 r3682 41 41 // "MHillas.fWidth<0.5 && MHillas.fLength<0.6" 42 42 // 43 // You can also use brackets:43 // You can also use parantheses: 44 44 // "MHillas.fSize>200 || (MHillas.fWidth<0.5 && MHillas.fLength<0.6)" 45 45 // 46 46 // If you want to use mathematic expressions (as defined in MDataChain) 47 // you must encapsulate it in {}- Brackets, eg:47 // you must encapsulate it in {}-parantheses, eg: 48 48 // "{log10(MHillas.fSize)}>3" 49 49 // … … 60 60 // 61 61 // 62 // Warning: There is no priority rule build in. So better use brackets62 // Warning: There is no priority rule build in. So better use parantheses 63 63 // to get correct results. The rule is parsed/evaluated from the left 64 64 // to the right, which means: … … 120 120 fTitle = title ? title : gsDefTitle.Data(); 121 121 122 *fLog << inf << "Trying to resolve filter rule... " << endl;122 *fLog << inf << "Trying to resolve filter rule... " << flush; 123 123 if (!(fF=ParseString(text, 1))) 124 124 { … … 127 127 } 128 128 129 *fLog << inf << endl; 130 *fLog << "Using Filter rule " << fF->GetName(); 131 *fLog << " for " << fName << ":" << endl; 129 *fLog << inf << "found: "; 132 130 fF->Print(); 133 *fLog << endl << endl;131 *fLog << endl; 134 132 } 135 133 … … 178 176 { 179 177 *fLog << err << dbginf << "Syntax Error: Two coditional signs found in " << txt << endl; 180 *fLog << "Currently you have to enclose all conditions in brackets, like: \"(x<y) && (z<5)\"" << endl;178 *fLog << "Currently you have to enclose all conditions in parantheses, like: \"(x<y) && (z<5)\"" << endl; 181 179 return NULL; 182 180 } … … 226 224 { 227 225 // 228 // Search for the corresponding bracket226 // Search for the corresponding parantheses 229 227 // 230 228 Int_t first=1; … … 250 248 // 251 249 // Make a copy of the 'interieur' and delete the substringä 252 // including the brackets250 // including the parantheses 253 251 // 254 252 TString sub = txt(1, first-1); -
trunk/MagicSoft/Mars/mfbase/MFilterList.cc
r3666 r3682 79 79 // 80 80 // Options: 81 // and, &: is a bitwise and82 // or, |: is a bitwise or83 // xor, ^: is a bitwise exclusive or81 // and, & : is a bitwise and 82 // or, | : is a bitwise or 83 // xor, ^ : is a bitwise exclusive or 84 84 // land, && : is a logical and 85 // lor, || : is a logical or 85 // lor, || : is a logical or 86 // 87 // The bitwise operators are implemented for convinience. They may not 88 // make much sense. Maybe IsExpressionTrue should change its return 89 // type from Bool_t to Int_t. 86 90 // 87 91 MFilterList::MFilterList(const char *type, const char *name, const char *title)
Note:
See TracChangeset
for help on using the changeset viewer.