68 <<
" is not an lvalue" << endl ;
148 label.
Append(first?
"{":
";") ;
169 coutE(
Eval) <<
"RooSuperCat::evaluate(" <<
this <<
") error: current state not defined: '" <<
currentLabel() <<
"'" << endl ;
185 if (!type)
return kTRUE ;
198 if (!type)
return kTRUE ;
211 strlcpy(buf,type->
GetName(),1024) ;
233 }
else if (*ptr==
'}') {
239 ptr = strtok(ptr,
";}") ;
243 error |= arg->setLabel(token) ;
260 os << indent <<
"--- RooSuperCategory ---" << endl;
261 os << indent <<
" Input category list:" << endl ;
263 os << moreIndent <<
_catSet << endl ;
297 if (!cat->
inRange(rangeName)) {
virtual Bool_t inRange(const char *rangeName) const
Return true of all of the input category states are in the given range.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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 Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
virtual Int_t getIndex() const
Return index number of current state.
virtual RooCatType evaluate() const
Iterator over set of input categories.
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...
ClassImp(RooSuperCategory)
Iterator abstract base class.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.
Bool_t isShapeDirty() const
std::map< std::string, std::string >::const_iterator iter
virtual TObject * Next()
Iterator increment operator.
TIterator * createIterator(Bool_t dir=kIterForward) const
TString & Append(const char *cs)
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 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.
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 ~RooSuperCategory()
Destructor.
virtual const char * GetName() const
Returns name of object.
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 inRange(const char *) const
static void indent(ostringstream &buf, int indent_level)
virtual Bool_t hasRange(const char *) const
virtual Bool_t hasRange(const char *rangeName) const
Return true if any of the input categories has a range named 'rangeName'.
TIterator * MakeIterator() const
Make an iterator over all state permutations of the input categories of this supercategory.
void updateIndexList()
Update the list of possible states of this super category.
void setValueDirty() const
virtual TObject * Next()=0
virtual const char * getLabel() const
Return label string of current state.
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...
const RooCatType * defineTypeUnchecked(const char *label, Int_t index)
Internal version of defineType that does not check if type already exists.
virtual const Text_t * GetName() const
Returns name of object.
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.