library: libRooFit
#include "Roo1DTable.h"

Roo1DTable


class description - source file - inheritance tree (.pdf)

class Roo1DTable : public RooTable

Inheritance Chart:
TObject
<-
TNamed
RooPrintable
<-
RooTable
<-
Roo1DTable

    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)

Data Members


    protected:
TObjArray _types Double_t* _count ! do not persist Double_t _total Double_t _nOverflow

Class Description


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 Functions


         Roo1DTable Roo1DTable(const Roo1DTable& other)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)


Last update: Tue Jun 28 18:08:34 2005
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.