61 if (!dynamic_cast<RooAbsCategory*>(arg)) {
63 <<
" is not a RooAbsCategory" << endl ;
128 label.Append(first?
"{":
";") ;
162 os << indent <<
"--- RooMultiCategory ---" << endl;
163 os << indent <<
" Input category list:" << endl ;
164 TString moreIndent(indent) ;
165 moreIndent.Append(
" ") ;
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
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, which is interpreted as an OR of 'enum ContentsOptions' values and in the style given by 'enum StyleOption'.
virtual ~RooMultiCategory()
Destructor.
Collectable string class.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to ostream.
virtual RooCatType evaluate() const
Calculate the current value.
void clearTypes()
Delete all currently defined states.
Iterator abstract base class.
void setValueDirty() const
void updateIndexList()
Update the list of super-category states.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.
virtual TObject * Next()
Iterator increment operator.
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
TString currentLabel() const
Return the name of the current state, constructed from the state names of the input categories...
const RooCatType * defineType(const char *label)
Define a new state with given name.
virtual void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print the state of this object to the specified output stream.
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.
virtual const char * getLabel() const
Return label string of current state.
RooMultiCategory consolidates several RooAbsCategory objects into a single category.
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.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
virtual TObject * Next()=0
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
Bool_t isShapeDirty() const
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooMultiCatIter iterators over all state permutations of a list of categories.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with...