49 const char* binningName,
const char* catTypeName) :
50 RooAbsCategory(name, title), _inputVar(
"inputVar",
"Input category",this,inputVar), _bname(binningName)
84 for (
Int_t i=0 ; i<nbins ; i++) {
85 string name = catTypeName!=0 ?
Form(
"%s%d",catTypeName,i)
128 os << indent <<
"--- RooBinningCategory ---" << endl
129 << indent <<
" Maps from " ;
virtual const char * GetName() const
Returns name of object.
virtual void printStream(std::ostream &os, Int_t contents, StyleOption style, TString indent="") const
Print description of object on ostream, printing contents set by contents integer, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'.
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print info about this threshold category to the specified stream.
virtual RooCatType evaluate() const
Calculate and return the value of the mapping function.
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
const RooCatType * defineType(const char *label)
Define a new state with given name.
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.
char * Form(const char *fmt,...)
Class RooBinningCategory provides a real-to-category mapping defined by a series of thresholds...
void initialize(const char *catTypeName=0)
Iterator over all bins in input variable and define corresponding state labels.
virtual void printMultiline(std::ostream &os, Int_t contents, Bool_t verbose=kFALSE, TString indent="") const
Print info about this object to the specified stream.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
const RooAbsReal & arg() const
virtual ~RooBinningCategory()
Destructor.