#ifndef ROO_MAPPED_CATEGORY
#define ROO_MAPPED_CATEGORY
#include "TObjArray.h"
#include "RooAbsCategory.h"
#include "RooCategoryProxy.h"
#include "RooCatType.h"
class RooMappedCategory : public RooAbsCategory {
public:
enum CatIdx { NoCatIdx=-99999 } ;
inline RooMappedCategory() { }
RooMappedCategory(const char *name, const char *title, RooAbsCategory& inputCat, const char* defCatName="NotMapped", Int_t defCatIdx=NoCatIdx);
RooMappedCategory(const RooMappedCategory& other, const char *name=0) ;
virtual TObject* clone(const char* newname) const { return new RooMappedCategory(*this,newname); }
virtual ~RooMappedCategory();
Bool_t map(const char* inKeyRegExp, const char* outKeyName, Int_t outKeyNum=NoCatIdx) ;
void printMultiline(ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const ;
virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose=kFALSE) ;
virtual void writeToStream(ostream& os, Bool_t compact) const ;
protected:
TObjArray _mapArray ;
RooCatType* _defCat ;
RooCategoryProxy _inputCat ;
virtual RooCatType evaluate() const ;
ClassDef(RooMappedCategory,1)
};
#endif
Last change: Wed Jun 25 08:33:26 2008
Last generated: 2008-06-25 08:33
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.