50 const
char* binningName, const
char* catTypeName) :
51 RooAbsCategory(name, title), _inputVar("inputVar","Input category",this,inputVar), _bname(binningName)
63 RooAbsCategory(other,name), _inputVar(
"inputVar",this,other._inputVar), _bname(other._bname)
86 string name = catTypeName!=0 ?
Form(
"%s%d",catTypeName,i)
129 os << indent <<
"--- RooBinningCategory ---" << endl
130 << 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...
static void indent(ostringstream &buf, int indent_level)
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
void initialize(typename Architecture_t::Matrix_t &A, EInitialization m)
virtual ~RooBinningCategory()
Destructor.