40 const char* binningName,
const char* catTypeName) :
62 for (
Int_t i=0 ; i<nbins ; i++) {
63 std::string
name = catTypeName!=
nullptr ?
Form(
"%s%d",catTypeName,i)
105 os <<
indent <<
"--- RooBinningCategory ---" << std::endl
106 <<
indent <<
" Maps from " ;
int Int_t
Signed integer 4 bytes (int).
static void indent(ostringstream &buf, int indent_level)
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual const std::map< std::string, RooAbsCategory::value_type >::value_type & defineState(const std::string &label)
Define a new state with given label.
int value_type
The type used to denote a specific category state.
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print info about this object to the specified stream.
bool hasIndex(value_type index) const
Check if a state with index index exists.
Abstract base class for objects that represent a real value that may appear on the left hand side of ...
void printMultiline(std::ostream &os, Int_t content, bool verbose=false, TString indent="") const override
Printing interface (human readable).
value_type evaluate() const override
Calculate and return the value of the mapping function.
TString _bname
Name of the binning specification to be used to perform the mapping.
RooTemplateProxy< RooAbsRealLValue > _inputVar
Input variable that is mapped.
void initialize(const char *catTypeName=nullptr)
Iterator over all bins in input variable and define corresponding state labels.
RooBinningCategory()=default