Ignore:
Timestamp:
11/22/02 09:23:54 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfilter
Files:
3 edited

Legend:

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

    r1661 r1666  
    155155}
    156156
    157 MFilter *MF::ParseRule(TString &txt, MFilter *filter0) const
     157MFilter *MF::ParseRule(TString &txt, MFilter *filter0, Int_t level) const
    158158{
    159159    TString text;
     
    243243    MFilter *newfilter;
    244244    if (isrule)
     245    {
    245246        newfilter = new MFDataChain(text.Data(), c, num);
     247        newfilter->SetName(Form("Chain%02d%c%f", level, c, num));
     248    }
    246249    else
     250    {
    247251        newfilter = new MFDataMember(text.Data(), c, num);
    248 
    249     newfilter->SetName(Form("%s%c%f", text.Data(), c, num));
     252        newfilter->SetName(Form("%s%c%f", text.Data(), c, num));
     253    }
    250254
    251255    return newfilter;
     
    367371
    368372        default:
    369             newfilter = ParseRule(txt, filter0);
     373            newfilter = ParseRule(txt, filter0, level++);
    370374            if (!newfilter)
    371375            {
  • trunk/MagicSoft/Mars/mfilter/MF.h

    r1661 r1666  
    2525    Int_t IsAlNum(TString txt) const;
    2626
    27     MFilter *ParseRule(TString &txt, MFilter *filter0) const;
     27    MFilter *ParseRule(TString &txt, MFilter *filter0, Int_t level) const;
    2828    MFilter *ParseString(TString txt, Int_t level);
    2929
  • trunk/MagicSoft/Mars/mfilter/MFDataChain.cc

    r1661 r1666  
    6464    fTitle = title ? title : "Filter using any data member of a class";
    6565
    66     AddToBranchList(member);
     66    //AddToBranchList(member);
    6767
    6868    fFilterType = (type=='<' ? kELowerThan : kEGreaterThan);
     
    111111TString MFDataChain::GetRule() const
    112112{
    113     TString ret = fData.GetRule();
     113    TString ret = "{";
     114    ret += fData.GetRule();
     115    ret += "}";
    114116    ret += fFilterType==kELowerThan?"<":">";
    115117
Note: See TracChangeset for help on using the changeset viewer.