109 if (&other==
this)
return *this ;
112 if (!type)
return *this ;
190 if (ibin<0 || ibin>=
numBins(rangeName)) {
192 <<
" is out of range (0," <<
numBins(rangeName)-1 <<
")" << endl ;
virtual const char * GetName() const
Returns name of object.
virtual void copyCache(const RooAbsArg *source, Bool_t valueOnly=kFALSE, Bool_t setValueDirty=kTRUE)
Copy the cached value from given source and raise dirty flag.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream (dummy implementation)
RooCatType _value
Transient cache for byte values from tree branches.
const RooCatType * getOrdinal(UInt_t n, const char *rangeName=0) const
Return state definition of ordinal nth defined state, needed by the generator mechanism.
virtual Bool_t setLabel(const char *label, Bool_t printError=kTRUE)=0
static UInt_t integer(UInt_t max, TRandom *generator=randomGenerator())
Return an integer uniformly distributed from [0,n-1].
Bool_t setOrdinal(UInt_t index, const char *rangeName)
Set our state to our n'th defined type and return kTRUE.
void setValueDirty() const
virtual void randomize(const char *rangeName=0)
Randomize current value.
virtual Int_t getBin(const char *rangeName=0) const
Get index of plot bin for current value this category.
virtual Bool_t isValid() const
Check if current value is a valid state.
virtual Int_t numBins(const char *rangeName) const
Returm the number of fit bins ( = number of types )
Int_t numTypes(const char *=0) const
virtual TObject * FindObject(const char *name) const
Find an object in this collection using its name.
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...
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream (dummy implementation)
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 const char * getLabel() const
Return label string of current state.
Int_t IndexOf(const TObject *obj) const
void copyCache(const RooAbsArg *source, Bool_t valueOnly=kFALSE, Bool_t setValDirty=kTRUE)
Copy the cached value from given source and raise dirty flag.
virtual ~RooAbsCategoryLValue()
Destructor.
void setShapeDirty() const
virtual void setBin(Int_t ibin, const char *rangeName=0)
Set category to i-th fit bin, which is the i-th registered state.
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
Abstract base class for objects that are lvalues, i.e.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooAbsArg & operator=(int index)
Assignment operator from integer index number.
virtual Bool_t setIndex(Int_t index, Bool_t printError=kTRUE)=0