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 ;
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.
virtual ~RooMultiCategory()
Destructor.
Collectable string class.
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 RooCatType evaluate() const
Calculate the current value.
void clearTypes()
Delete all currently defined states.
TString currentLabel() const
Return the name of the current state, constructed from the state names of the input categories...
Iterator abstract base class.
const char * Data() const
void updateIndexList()
Update the list of super-category states.
Bool_t isShapeDirty() const
std::map< std::string, std::string >::const_iterator iter
virtual TObject * Next()
Iterator increment operator.
ClassImp(RooMultiCategory)
TIterator * createIterator(Bool_t dir=kIterForward) const
TString & Append(const char *cs)
RooCatType is an auxilary class for RooAbsCategory and defines a a single category 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.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual const char * GetName() const
Returns name of object.
static void indent(ostringstream &buf, int indent_level)
RooMultiCategory consolidates several RooAbsCategory objects into a single category.
void setValueDirty() const
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...
virtual const char * getLabel() const
Return label string of current state.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.
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 void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to ostream.
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...
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.