49 const
char* binningName, const
char* catTypeName) :
52 initialize(catTypeName) ;
62 RooAbsCategory(other,name), _inputVar(
"inputVar",this,other._inputVar), _bname(other._bname)
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.
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,...)
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.
const RooAbsReal & arg() const
virtual ~RooBinningCategory()
Destructor.
const char * Data() const