49 const char* defOut,
Int_t defIdx) :
98 if (te->
thresh() == upperLimit) {
100 <<
") threshold at " << upperLimit <<
" already defined" << endl ;
109 if (catIdx==-99999) {
132 if (_inputVar<te->thresh())
return te->
cat() ;
177 os << indent <<
"--- RooThresholdCategory ---" << endl
178 << indent <<
" Maps from " ;
181 os << indent <<
" Threshold list" << endl ;
185 os << indent <<
" input < " << te->
thresh() <<
" --> " ;
188 os << indent <<
" Default value is " ;
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
virtual const char * getLabel() const
Return label string of current state.
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.
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.
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.
virtual const Text_t * GetName() const
Returns name of object.
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 RooAbsReal & arg() const
Class RooThreshEntry is a utility class for RooThresholdCategory.
const RooCatType & cat() const
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.
Bool_t addThreshold(Double_t upperLimit, const char *catName, Int_t catIdx=-99999)
Insert threshold at value upperLimit.
virtual ~RooThresholdCategory()
Destructor.
virtual RooCatType evaluate() const
do not persist
virtual TObject * Next()=0
virtual TIterator * MakeIterator(Bool_t dir=kIterForward) const
Return a list iterator.
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual const char * GetName() const
Returns name of object.
void Add(TObject *obj)
Add object in sorted list.