|
ROOT
Reference Guide |
|
Go to the documentation of this file.
16 #ifndef ROO_ABS_CATEGORY_LVALUE
17 #define ROO_ABS_CATEGORY_LVALUE
48 bool setIndex(
const std::pair<std::string,value_type>& nameIdxPair,
bool printError =
true) {
49 return setIndex(nameIdxPair.second, printError);
60 bool setLabel(
const std::string& label,
bool printError =
true) {
61 return setLabel(label.c_str(), printError);
69 bool setLabel(
const std::pair<std::string,value_type>& nameIdxPair,
bool printError =
true) {
70 return setLabel(nameIdxPair.first.c_str(), printError);
79 virtual void setBin(
Int_t ibin,
const char* rangeName=0) ;
93 virtual void randomize(
const char* rangeName=0);
96 virtual std::list<std::string>
getBinningNames()
const {
return std::list<std::string>(1,
"") ; }
116 virtual void setIndexFast(
Int_t index) {
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 void setBin(Int_t ibin, const char *rangeName=0)
Set category to i-th fit bin, which is the i-th registered state.
void setConstant(Bool_t value=kTRUE)
virtual void randomize(const char *rangeName=0)
Randomize current value.
RooSimSplitGenContext is an efficient implementation of the generator context specific for RooSimulta...
bool setOrdinal(unsigned int index)
Set our state to our nth defined type.
virtual bool setLabel(const char *label, Bool_t printError=kTRUE)=0
Change category state by specifying a state name.
virtual Double_t volume(const char *rangeName) const
RooSimGenContext is an efficient implementation of the generator context specific for RooSimultaneous...
Int_t numTypes(const char *=0) const
Return number of types defined (in range named rangeName if rangeName!=0)
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
virtual Int_t numBins(const char *rangeName) const
Return the number of fit bins ( = number of types )
virtual const RooAbsBinning * getBinningPtr(const char *) const
virtual bool setIndex(value_type index, bool printError=true)=0
Change category state by specifying the index code of the desired state.
RooAbsArg & operator=(int index)
Assignment operator from integer index number.
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
virtual Double_t getBinWidth(Int_t, const char *=0) const
virtual ~RooAbsCategoryLValue()
Destructor.
virtual Int_t getBin(const RooAbsBinning *) const
virtual Int_t getBin(const char *) const
Get index of plot bin for current value this category.
virtual Bool_t isLValue() const
Is this argument an l-value, i.e., can it appear on the left-hand side of an assignment expression?...
#define ClassDef(name, id)
void setAttribute(const Text_t *name, Bool_t value=kTRUE)
Set (default) or clear a named boolean attribute of this object.
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
Abstract base class for objects that are lvalues, i.e.
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
virtual std::list< std::string > getBinningNames() const
unsigned int getCurrentOrdinalNumber() const
Return ordinal number of the current state.