16#ifndef ROO_THRESHOLD_CATEGORY
17#define ROO_THRESHOLD_CATEGORY
32 const char* defCatName=
"Default",
Int_t defCatIdx=0);
#define ClassDef(name, id)
static void indent(ostringstream &buf, int indent_level)
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
The RooThresholdCategory provides a real-to-category mapping defined by a series of thresholds.
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.
void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.
virtual value_type evaluate() const
Calculate and return the value of the mapping function.
const value_type _defIndex
Bool_t addThreshold(Double_t upperLimit, const char *catName, Int_t catIdx=-99999)
Insert threshold at value upperLimit.
void recomputeShape()
No shape recomputation is necessary. This category does not depend on other categories.
std::vector< std::pair< double, value_type > > _threshList
virtual TObject * clone(const char *newname) const
Mother of all ROOT objects.