63  for (
int i=0 ; i<nbin ; i++) 
_count[i] = 0 ;
 
   72  RooTable(other), _count(other._count), _total(other._total), _nOverflow(other._nOverflow)
 
  104  if (weight==0) return ;
 
  195  Int_t labelWidth(0) ;
 
  205    labelWidth = lwidth > labelWidth ? lwidth : labelWidth;
 
  210    labelWidth=labelWidth>8?labelWidth:8 ;
 
  216  os << 
indent << 
"  +-" << setw(labelWidth) << setfill(
'-') << 
"-" << 
"-+-" << setw(countWidth) << 
"-" << 
"-+" << endl ;
 
  222    if (
_count[i]>0 || verbose) {
 
  223      os << 
"  | " << setw(labelWidth) << entry->
GetName() << 
" | " << setw(countWidth) << 
_count[i] << 
" |" << endl ;
 
  229    os << 
indent << 
"  +-" << setw(labelWidth) << setfill(
'-') << 
"-" << 
"-+-" << setw(countWidth) << 
"-" << 
"-+" << endl ;
 
  230    os << 
indent << 
"  | " << 
"Overflow" << 
" | " << setw(countWidth) << 
_nOverflow << 
" |" << endl ;
 
  234  os << 
indent << 
"  +-" << setw(labelWidth) << setfill(
'-') << 
"-" << 
"-+-" << setw(countWidth) << 
"-" << 
"-+" << endl ;
 
  251      coutE(InputArguments) << 
"Roo1DTable::get: ERROR: no such entry: " << label << endl ;
 
  278      coutE(InputArguments) << 
"Roo1DTable::get: ERROR: no such entry: " << 
index << endl ;
 
  307    if (!silent) 
coutW(Contents) << 
"Roo1DTable::getFrac: WARNING table empty, returning 0" << endl ;
 
  324    if (!silent) 
coutW(Contents) << 
"Roo1DTable::getFrac: WARNING table empty, returning 0" << endl ;
 
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
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
 
Roo1DTable implements a one-dimensional table.
 
std::vector< double > _count
Array of counters for each state.
 
void printName(std::ostream &os) const override
Print the name of the table.
 
~Roo1DTable() override
Destructor.
 
void printValue(std::ostream &os) const override
Print the table value, i.e. the contents, in 'inline' format.
 
Int_t defaultPrintContents(Option_t *opt) const override
Define default contents to print.
 
double _total
Total number of entries.
 
void printMultiline(std::ostream &os, Int_t contents, bool verbose=false, TString indent="") const override
Print the formatted table contents on the given stream.
 
double getOverflow() const
Return the number of overflow entries in the table.
 
double get(const char *label, bool silent=false) const
Return the table entry named 'label'.
 
double getFrac(const char *label, bool silent=false) const
Return the fraction of entries in the table contained in the slot named 'label'.
 
bool isIdentical(const RooTable &other, bool verbose) override
Return true if table is identical in contents to given reference table.
 
TObjArray _types
Array of defined category states.
 
double _nOverflow
Number of overflow entries.
 
void fill(RooAbsCategory &cat, double weight=1.0) override
Increment the counter of the table slot with the name corresponding to that of the current category s...
 
void printTitle(std::ostream &os) const override
Print the title of the table.
 
void printClassName(std::ostream &os) const override
Print the class name of the table.
 
A space to attach TBranches.
 
virtual value_type getCurrentIndex() const
Return index number of current state.
 
TIterator * typeIterator() const
 
RooCatType is an auxilary class for RooAbsCategory and defines a a single category state.
 
const Text_t * GetName() const override
Returns name of object.
 
RooTable is the abstract interface for table objects.
 
Iterator abstract base class.
 
virtual TObject * Next()=0
 
const char * GetName() const override
Returns name of object.
 
const char * GetTitle() const override
Returns title of object.
 
Int_t IndexOf(const TObject *obj) const override
 
Int_t GetEntries() const override
Return the number of objects in array (i.e.
 
void Delete(Option_t *option="") override
Remove all objects from the array AND delete all heap based objects.
 
TObject * At(Int_t idx) const override
 
TObject * FindObject(const char *name) const override
Find an object in this collection using its name.
 
void Add(TObject *obj) override
 
Mother of all ROOT objects.
 
virtual const char * ClassName() const
Returns name of class to which the object belongs.