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 common abstract base class for objects that represent a discrete value with a f...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state.
Class 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.
const RooCatType * _defCat
Bool_t addThreshold(Double_t upperLimit, const char *catName, Int_t catIdx=-99999)
Insert threshold at value upperLimit.
std::vector< std::pair< double, RooCatType > > _threshList
virtual TObject * clone(const char *newname) const
virtual RooCatType evaluate() const
Calculate and return the value of the mapping function.
Mother of all ROOT objects.