16 #ifndef ROO_MAP_CAT_ENTRY
17 #define ROO_MAP_CAT_ENTRY
23 class RooMapCatEntry :
public TNamed {
25 inline RooMapCatEntry() : TNamed(), _regexp(
""), _cat() {}
26 virtual ~RooMapCatEntry() {} ;
27 RooMapCatEntry(
const char* exp,
const RooCatType* cat) ;
28 RooMapCatEntry(
const RooMapCatEntry& other) ;
29 virtual TObject* Clone(
const char* newName=0)
const {
30 RooMapCatEntry* ca =
new RooMapCatEntry(*
this);
31 if (newName) { ca->SetName(newName) ; }
35 inline Bool_t ok() {
return (_regexp.Status()==TRegexp::kOK) ; }
36 Bool_t match(
const char* testPattern)
const ;
37 inline const RooCatType& outCat()
const {
return _cat ; }
41 TString mangle(
const char* exp)
const ;
46 ClassDef(RooMapCatEntry,1)