67 <<
" is not an lvalue" << endl ;
147 label.Append(first?
"{":
";") ;
168 coutE(
Eval) <<
"RooSuperCat::evaluate(" <<
this <<
") error: current state not defined: '" <<
currentLabel() <<
"'" << endl ;
184 if (!type)
return kTRUE ;
197 if (!type)
return kTRUE ;
210 strlcpy(buf,type->
GetName(),1024) ;
232 }
else if (*ptr==
'}') {
238 ptr = strtok(ptr,
";}") ;
242 error |= arg->setLabel(token) ;
259 os << indent <<
"--- RooSuperCategory ---" << endl;
260 os << indent <<
" Input category list:" << endl ;
261 TString moreIndent(indent) ;
262 os << moreIndent <<
_catSet << endl ;
296 if (!cat->
inRange(rangeName)) {
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'.
Collectable string class.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to ostream.
void clearTypes()
Delete all currently defined states.
virtual Int_t getIndex() const
Return index number of current state.
Iterator abstract base class.
virtual Bool_t inRange(const char *) const
void setValueDirty() const
TIterator * MakeIterator() const
Make an iterator over all state permutations of the input categories of this supercategory.
virtual TObject * Next()
Iterator increment operator.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state...
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
Bool_t setType(const RooCatType *type, Bool_t prinError=kTRUE)
Set the value of the super category by specifying the state object by setting the state names of the ...
virtual const Text_t * GetName() const
Returns name of object.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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 ~RooSuperCategory()
Destructor.
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 Bool_t setIndex(Int_t index, Bool_t printError=kTRUE)
Set the value of the super category by specifying the state index code by setting the states of the c...
virtual Bool_t hasRange(const char *) const
virtual const char * getLabel() const
Return label string of current state.
virtual Bool_t hasRange(const char *rangeName) const
Return true if any of the input categories has a range named 'rangeName'.
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.
void updateIndexList()
Update the list of possible states of this super category.
virtual TObject * Next()=0
RooAbsCategory is the common abstract base class for objects that represent a discrete value with a f...
virtual RooCatType evaluate() const
Iterator over set of input categories.
RooSuperCategory consolidates several RooAbsCategoryLValue objects into a single category.
Bool_t isShapeDirty() const
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
virtual Bool_t setLabel(const char *label, Bool_t printError=kTRUE)
Set the value of the super category by specifying the state name by setting the state names of the co...
TString currentLabel() const
Return the name of the current state, constructed from the state names of the input categories...
virtual Bool_t inRange(const char *rangeName) const
Return true of all of the input category states are in the given range.
const RooCatType * defineTypeUnchecked(const char *label, Int_t index)
Internal version of defineType that does not check if type already exists.
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...