49 const
char* binningName, const
char* catTypeName) :
50 RooAbsCategory(name, title), _inputVar("inputVar","Input category",this,inputVar), _bname(binningName)
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 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.
const RooAbsReal & arg() const
const char * Data() const
virtual RooCatType evaluate() const
Calculate and return the value of the mapping function.
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.
char * Form(const char *fmt,...)
virtual const char * GetName() const
Returns name of object.
static void indent(ostringstream &buf, int indent_level)
ClassImp(RooBinningCategory) RooBinningCategory
Constructor with input function to be mapped and name and index of default output state of unmapped v...
void initialize(const char *catTypeName=0)
Iterator over all bins in input variable and define corresponding state labels.
virtual ~RooBinningCategory()
Destructor.
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.