71 void setRange(
const char* rangeName,
const char* stateNameList) ;
72 void addToRange(
const char* rangeName,
const char* stateNameList) ;
Bool_t isStateInRange(const char *rangeName, const char *stateName) const
If no range is specified [ i.e. the default range ] all category states are in range.
virtual Int_t getIndex() const
Return index number of current state.
virtual Bool_t setIndex(Int_t index, Bool_t printError=kTRUE)
Set value by specifying the index code of the desired state.
RooCatType _value
Transient cache for byte values from tree branches.
virtual RooCatType evaluate() const
Shared properties associated with this instance.
void clearRange(const char *name, Bool_t silent)
Check that both input arguments are not null pointers.
void clearTypes()
Delete all currently defined states.
virtual TObject * clone(const char *newname) const
virtual Bool_t hasRange(const char *rangeName) const
RooCategorySharedProperties is the container for all properties that are shared between instance of R...
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
virtual Bool_t setLabel(const char *label, Bool_t printError=kTRUE)
Set value by specifying the name of the desired state If printError is set, a message will be printed...
#define ClassDef(name, id)
static RooSharedPropertiesList _sharedPropList
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
void addToRange(const char *rangeName, const char *stateNameList)
Check that both input arguments are not null pointers.
RooCategorySharedProperties * _sharedProp
virtual Bool_t isDerived() const
virtual const char * GetName() const
Returns name of object.
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
virtual Bool_t isFundamental() const
RooCategory represents a fundamental (non-derived) discrete value object.
static RooCategorySharedProperties _nullProp
Class RooSharedPropertiesList maintains the properties of RooRealVars and RooCategories that are clon...
virtual void SetName(const Text_t *name)
Constructor with name argument.
Mother of all ROOT objects.
virtual ~RooCategory()
Destructor.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
compact only at the moment
Bool_t defineType(const char *label)
Define a state with given name, the lowest available positive integer is assigned as index...
virtual Bool_t inRange(const char *rangeName) const
void setRange(const char *rangeName, const char *stateNameList)
virtual const Text_t * GetName() const
Returns name of object.
virtual const char * getLabel() const
Return label string of current state.
const RooCatType * lookupType(Int_t index, Bool_t printError=kFALSE) const
Find our type corresponding to the specified index, or return 0 for no match.