70 void setRange(
const char* rangeName,
const char* stateNameList) ;
71 void addToRange(
const char* rangeName,
const char* stateNameList) ;
#define ClassDef(name, id)
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
RooCatType _value
Transient cache for byte values from tree branches.
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.
void clearTypes()
Delete all currently defined states.
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state.
virtual const Text_t * GetName() const
Returns name of object.
virtual void SetName(const Text_t *name)
Constructor with name argument.
RooCategorySharedProperties is the container for all properties that are shared between instance of R...
RooCategory represents a fundamental (non-derived) discrete value object.
RooCategorySharedProperties * _sharedProp
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
void setRange(const char *rangeName, const char *stateNameList)
virtual Bool_t inRange(const char *rangeName) const
virtual Bool_t isDerived() const
Does value or shape of this arg depend on any other arg?
virtual ~RooCategory()
Destructor.
static RooSharedPropertiesList _sharedPropList
void addToRange(const char *rangeName, const char *stateNameList)
Check that both input arguments are not null pointers.
virtual const char * getLabel() const
Return label string of current state.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
compact only at the moment
virtual Bool_t hasRange(const char *rangeName) const
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...
Bool_t defineType(const char *label)
Define a state with given name, the lowest available positive integer is assigned as index.
void clearRange(const char *name, Bool_t silent)
Check that both input arguments are not null pointers.
virtual TObject * clone(const char *newname) const
virtual RooCatType evaluate() const
Shared properties associated with this instance.
virtual Bool_t isFundamental() const
Is this object a fundamental type that can be added to a dataset? Fundamental-type subclasses overrid...
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.
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.
static RooCategorySharedProperties _nullProp
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
Class RooSharedPropertiesList maintains the properties of RooRealVars and RooCategories that are clon...
Mother of all ROOT objects.