library: libRooFit #include "Roo1DTable.h" |
Roo1DTable
class description - header file - source file - inheritance tree (.pdf)
public:
Roo1DTable()
Roo1DTable(const char* name, const char* title, const RooAbsCategory& cat)
Roo1DTable(const Roo1DTable& other)
virtual ~Roo1DTable()
static TClass* Class()
virtual void fill(RooAbsCategory& cat, Double_t weight = 1.0)
Double_t get(const char* label, Bool_t silent = kFALSE) const
Double_t getFrac(const char* label, Bool_t silent = kFALSE) const
Double_t getOverflow() const
virtual TClass* IsA() const
virtual void printToStream(ostream& stream, RooPrintable::PrintOption opt = Standard, TString indent = ) const
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TObjArray _types
Double_t* _count ! do not persist
Double_t _total
Double_t _nOverflow
Roo1DTable(const char *name, const char *title, const RooAbsCategory& cat)
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.
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.
Double_t get(const char* label, Bool_t silent)
Return the table entry named 'label'. Zero is returned
if given label doesn't occur in table.
Double_t getFrac(const char* label, Bool_t silent)
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.
Last update: Tue Jul 11 11:44:54 2006
Copyright (c) 2000-2005, Regents of the University of California *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.