70 void setRange(
const char* rangeName,
const char* stateNameList) ;
71 void addToRange(
const char* rangeName,
const char* stateNameList) ;
virtual RooCatType evaluate() const
Shared properties associated with this instance.
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 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.
void clearRange(const char *name, Bool_t silent)
Check that both input arguments are not null pointers.
void clearTypes()
Delete all currently defined states.
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...
virtual Bool_t hasRange(const char *rangeName) const
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
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.
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 Text_t * GetName() const
Returns name of object.
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.
virtual TObject * clone(const char *newname) const
RooCategory represents a fundamental (non-derived) discrete value object.
virtual Int_t getIndex() const
Return index number of current state.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
compact only at the moment
static RooCategorySharedProperties _nullProp
virtual const char * getLabel() const
Return label string of current state.
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 Bool_t inRange(const char *rangeName) const
virtual ~RooCategory()
Destructor.
virtual Bool_t isFundamental() const
Bool_t defineType(const char *label)
Define a state with given name, the lowest available positive integer is assigned as index...
void setRange(const char *rangeName, const char *stateNameList)