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