Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User |
Roo1DTableclass description - source file - inheritance tree (.pdf) class Roo1DTable : public RooTable
public: Data Membersprotected: Class DescriptionRoo1DTable implements a one-dimensional table. A table is the category equivalent of a plot. To create a table use the RooDataSet::table method. Roo1DTable(const char *name, const char *title, const RooAbsCategory& cat) : RooTable(name,title), _total(0), _nOverflow(0) Create an empty table from abstract category. The number of table entries and their names are taken from the category state labels at the time of construction, but not reference to the category is retained after the construction phase. Use fill() to fill the table. Roo1DTable(const Roo1DTable& other) : RooTable(other), _total(other._total), _nOverflow(other._nOverflow) Copy constructor ~Roo1DTable() Destructor void fill(RooAbsCategory& cat, Double_t weight) Increment the counter of the table slot with the name corresponding to that of the current category state. If the current category state matches no table slot name, the table overflow counter is incremented. void printToStream(ostream& os, PrintOption opt, TString indent) const Print the formateed table contents on the given stream Double_t get(const char* label, Bool_t silent) const Return the table entry named 'label'. Zero is returned if given label doesn't occur in table. Double_t getOverflow() const Return the number of overflow entries in the table. Double_t getFrac(const char* label, Bool_t silent) const Return the fraction of entries in the table contained in the slot named 'label'. The normalization includes the number of overflows. Zero is returned if given label doesn't occur in table. Inline FunctionsRoo1DTable Roo1DTable(const Roo1DTable& other) TClass* Class() TClass* IsA() const void ShowMembers(TMemberInspector& insp, char* parent) void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
|
Page maintained by Wouter Verkerke and David Kirkby |