Changeset 1666 for trunk/MagicSoft/Mars/mfilter
- Timestamp:
- 11/22/02 09:23:54 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mfilter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mfilter/MF.cc
r1661 r1666 155 155 } 156 156 157 MFilter *MF::ParseRule(TString &txt, MFilter *filter0 ) const157 MFilter *MF::ParseRule(TString &txt, MFilter *filter0, Int_t level) const 158 158 { 159 159 TString text; … … 243 243 MFilter *newfilter; 244 244 if (isrule) 245 { 245 246 newfilter = new MFDataChain(text.Data(), c, num); 247 newfilter->SetName(Form("Chain%02d%c%f", level, c, num)); 248 } 246 249 else 250 { 247 251 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 } 250 254 251 255 return newfilter; … … 367 371 368 372 default: 369 newfilter = ParseRule(txt, filter0 );373 newfilter = ParseRule(txt, filter0, level++); 370 374 if (!newfilter) 371 375 { -
trunk/MagicSoft/Mars/mfilter/MF.h
r1661 r1666 25 25 Int_t IsAlNum(TString txt) const; 26 26 27 MFilter *ParseRule(TString &txt, MFilter *filter0 ) const;27 MFilter *ParseRule(TString &txt, MFilter *filter0, Int_t level) const; 28 28 MFilter *ParseString(TString txt, Int_t level); 29 29 -
trunk/MagicSoft/Mars/mfilter/MFDataChain.cc
r1661 r1666 64 64 fTitle = title ? title : "Filter using any data member of a class"; 65 65 66 AddToBranchList(member);66 //AddToBranchList(member); 67 67 68 68 fFilterType = (type=='<' ? kELowerThan : kEGreaterThan); … … 111 111 TString MFDataChain::GetRule() const 112 112 { 113 TString ret = fData.GetRule(); 113 TString ret = "{"; 114 ret += fData.GetRule(); 115 ret += "}"; 114 116 ret += fFilterType==kELowerThan?"<":">"; 115 117
Note:
See TracChangeset
for help on using the changeset viewer.