44using std::endl, std::ostream;
 
   60      coutE(InputArguments) << 
"RooMultiCategory::RooMultiCategory(" << 
GetName() << 
"): input argument " << arg->GetName()
 
   61             << 
" is not a RooAbsCategory" << std::endl ;
 
 
   87  for (
const auto arg : 
_catSet) {
 
   90    label += first ? 
'{' : 
';';
 
   91    label += cat->getCurrentLabel();
 
 
  109  for (
const auto arg : 
_catSet) {
 
  112      coutW(InputArguments) << 
__func__ << 
" Trying to build a multi-category state based on " 
  113          "a category with zero states. Fix '" << cat->GetName() << 
"'." << std::endl;
 
 
  133    os << 
indent << 
"--- RooMultiCategory ---" << std::endl;
 
  134    os << 
indent << 
"  Input category list:" << std::endl ;
 
 
  157      return item.first.c_str();
 
 
  173  for (
const auto arg : 
_catSet) {
 
  178  for (
unsigned int i=0; i < 
totalSize; ++i) {
 
  181    for (
const auto arg : 
_catSet) {
 
 
static void indent(ostringstream &buf, int indent_level)
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void setShapeDirty()
Notify that a shape-like property (e.g. binning) has changed.
 
void setValueDirty()
Mark the element dirty. This forces a re-evaluation when a value is requested.
 
A space to attach TBranches.
 
virtual value_type getCurrentIndex() const
Return index number of current state.
 
void defineStateUnchecked(const std::string &label, value_type index)
Internal version of defineState() that does not check if type already exists.
 
void writeToStream(std::ostream &os, bool compact) const override
Write object contents to ostream.
 
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print info about this object to the specified stream.
 
std::vector< std::string > _insertionOrder
Keeps track in which order state numbers have been inserted. Make sure this is updated in recomputeSh...
 
std::map< std::string, value_type > _stateNames
Map state names to index numbers. Make sure state names are updated in recomputeShape().
 
const std::map< std::string, value_type > & stateNames() const
Access the map of state names to index numbers.
 
void clearTypes()
Delete all currently defined states.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
 
Connects several RooAbsCategory objects into a single category.
 
value_type evaluate() const override
Calculate the current value.
 
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.
 
const char * getCurrentLabel() const override
Get current label.
 
std::string createLabel() const
Compile a string with all the labels of the serving categories, such as {1Jet;1Lepton;2Tag}.
 
RooSetProxy _catSet
Set of input category.
 
void writeToStream(std::ostream &os, bool compact) const override
Write object contents to given stream.
 
void recomputeShape() override
Inspect all the subcategories, and enumerate and name their states.
 
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,...
 
const char * GetName() const override
Returns name of object.