50 _multiCat(
"MultiCatProxy",
"Stores a RooMultiCategory", this, true, true, true) { }
60 _multiCat(
"MultiCatProxy",
"Stores a RooMultiCategory", this,
61 *new
RooMultiCategory((std::string(
name) +
"_internalMultiCat").c_str(), title, inputCategories), true, true, true)
64 for (
const auto arg : inputCategories) {
67 <<
" is not an lvalue. Use RooMultiCategory instead." << endl ;
68 throw std::invalid_argument(
"Arguments of RooSuperCategory must be lvalues.");
81 _multiCat(
"MultiCatProxy", this, other._multiCat)
114 coutE(
InputArguments) << __func__ <<
": Found a category with zero states. Cannot set state for '"
115 << cat->GetName() <<
"'." << std::endl;
119 error |= cat->setOrdinal(thisIndex);
146 os <<
indent <<
"--- RooSuperCategory ---" <<
'\n';
147 os <<
indent <<
" Internal RooMultiCategory:" <<
'\n';
161 if (!cat->inRange(rangeName)) {
176 if (cat->hasRange(rangeName))
return true;
static void indent(ostringstream &buf, int indent_level)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
void setShapeDirty()
Notify that a shape-like property (e.g. binning) has changed.
RooAbsCategoryLValue is the common abstract base class for objects that represent a discrete value th...
virtual value_type getCurrentIndex() const
Return index number of current state.
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print info about this object to the specified stream.
value_type lookupIndex(const std::string &stateName) const
Find the index number corresponding to the state name.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooMultiCategory connects several RooAbsCategory objects into a single category.
void printMultiline(std::ostream &os, Int_t content, bool verbose=false, TString indent="") const override
Print the state of this object to the specified output stream.
RooSetProxy _catSet
Set of input category.
const RooArgSet & inputCatList() const
The RooSuperCategory can join several RooAbsCategoryLValue objects into a single category.
bool setIndex(value_type index, bool printError=true) override
Set the value of the super category to the specified index.
bool hasRange(const char *rangeName) const override
Check that any of the input categories has a range with the given name.
bool inRange(const char *rangeName) const override
Check that all input category states are in the given range.
TIterator * MakeIterator() const
Make an iterator over all state permutations of the input categories of this supercategory.
void printMultiline(std::ostream &os, Int_t content, bool verbose=false, TString indent="") const override
Print the state of this object to the specified output stream.
bool setLabel(const char *label, bool printError=true) override
Set the value of the super category by specifying the state name.
RooTemplateProxy< RooMultiCategory > _multiCat
Iterator abstract base class.
const char * GetName() const override
Returns name of object.