49 const char* binningName,
const char* catTypeName) :
50 RooAbsCategory(
name, title), _inputVar(
"inputVar",
"Input category",this,inputVar), _bname(binningName)
62 RooAbsCategory(other,
name), _inputVar(
"inputVar",this,other._inputVar), _bname(other._bname)
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 " ;
static void indent(ostringstream &buf, int indent_level)
char * Form(const char *fmt,...)
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
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.
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.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
Class RooBinningCategory provides a real-to-category mapping defined by a series of thresholds.
virtual ~RooBinningCategory()
Destructor.
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.
void initialize(const char *catTypeName=0)
Iterator over all bins in input variable and define corresponding state labels.
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state.
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,...
const RooAbsReal & arg() const
virtual const char * GetName() const
Returns name of object.
const char * Data() const