45                  const char* binningName, 
const char* catTypeName) :
 
   46  RooAbsCategory(
name, title), _inputVar(
"inputVar",
"Input category",this,inputVar), _bname(binningName)
 
   58  RooAbsCategory(other,
name), _inputVar(
"inputVar",this,other._inputVar), _bname(other._bname)
 
   80  for (
Int_t i=0 ; i<nbins ; i++) {
 
   81    string name = catTypeName!=0 ? 
Form(
"%s%d",catTypeName,i)
 
  123     os << 
indent << 
"--- RooBinningCategory ---" << endl
 
  124   << 
indent << 
"  Maps from " ;
 
static void indent(ostringstream &buf, int indent_level)
 
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
 
A space to attach TBranches.
 
virtual const std::map< std::string, RooAbsCategory::value_type >::value_type & defineState(const std::string &label)
Define a new state with given label.
 
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.
 
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
 
virtual const RooAbsBinning & getBinning(const char *name=nullptr, bool verbose=true, bool createOnTheFly=false) const =0
Retrive binning configuration with given name or default binning.
 
Int_t getBin(const char *rangeName=nullptr) const override
 
Class RooBinningCategory provides a real-to-category mapping defined by a series of thresholds.
 
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.
 
~RooBinningCategory() override
Destructor.
 
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.
 
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 T & arg() const
Return reference to object held in proxy.
 
const char * GetName() const override
Returns name of object.
 
const char * Data() const