Ignore:
Timestamp:
04/08/04 19:52:13 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfbase/MF.cc

    r3573 r3682  
    4141//   "MHillas.fWidth<0.5 && MHillas.fLength<0.6"
    4242//
    43 // You can also use brackets:
     43// You can also use parantheses:
    4444//   "MHillas.fSize>200 || (MHillas.fWidth<0.5 && MHillas.fLength<0.6)"
    4545//
    4646// 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:
    4848//   "{log10(MHillas.fSize)}>3"
    4949//
     
    6060//
    6161//
    62 // Warning: There is no priority rule build in. So better use brackets
     62// Warning: There is no priority rule build in. So better use parantheses
    6363//   to get correct results. The rule is parsed/evaluated from the left
    6464//   to the right, which means:
     
    120120    fTitle = title ? title : gsDefTitle.Data();
    121121
    122     *fLog << inf << "Trying to resolve filter rule..." << endl;
     122    *fLog << inf << "Trying to resolve filter rule... " << flush;
    123123    if (!(fF=ParseString(text, 1)))
    124124    {
     
    127127    }
    128128
    129     *fLog << inf << endl;
    130     *fLog << "Using Filter rule " << fF->GetName();
    131     *fLog << " for " << fName << ":" << endl;
     129    *fLog << inf << "found: ";
    132130    fF->Print();
    133     *fLog << endl << endl;
     131    *fLog << endl;
    134132}
    135133
     
    178176    {
    179177        *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;
    181179        return NULL;
    182180    }
     
    226224            {
    227225                //
    228                 // Search for the corresponding bracket
     226                // Search for the corresponding parantheses
    229227                //
    230228                Int_t first=1;
     
    250248                //
    251249                // Make a copy of the 'interieur' and delete the substringä
    252                 // including the brackets
     250                // including the parantheses
    253251                //
    254252                TString sub = txt(1, first-1);
  • trunk/MagicSoft/Mars/mfbase/MFilterList.cc

    r3666 r3682  
    7979//
    8080//   Options:
    81 //      and, &   : is a bitwise and
    82 //      or,   : is a bitwise or
    83 //      xor, ^   : is a bitwise exclusive or
     81//      and,  &  : is a bitwise and
     82//      or,   |  : is a bitwise or
     83//      xor,  ^  : is a bitwise exclusive or
    8484//      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.
    8690//
    8791MFilterList::MFilterList(const char *type, const char *name, const char *title)
Note: See TracChangeset for help on using the changeset viewer.