31 ClassImp(RooMapCatEntry);
34 RooMapCatEntry::RooMapCatEntry(
const char* exp,
const RooCatType* cat) :
35 TNamed(exp,mangle(exp).Data()), _regexp(mangle(exp),kTRUE), _cat(*cat)
40 RooMapCatEntry::RooMapCatEntry(
const RooMapCatEntry& other) :
41 TNamed(other), _regexp(other.GetTitle(),kTRUE), _cat(other._cat)
46 Bool_t RooMapCatEntry::match(
const char* testPattern)
const
48 return (TString(testPattern).Index(_regexp)>=0) ;
53 TString RooMapCatEntry::mangle(
const char* exp)
const
59 if (*c==
'+') t.Append(
'\\') ;