Docs | All | Real | Category | PDF | DataSet | Plot | Container | Misc | Aux | User

RooFit Toolkit for Data Modeling
#include "RooHistPdf.hh"

RooHistPdf


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

class RooHistPdf : public RooAbsPdf

Inheritance Chart:
TObject
<-
TNamed
RooPrintable
<-
RooAbsArg
<-
RooAbsReal
<-
RooAbsPdf
<-
RooHistPdf

    protected:
virtual Double_t evaluate() const public:
RooHistPdf(const char* name, const char* title, const RooArgSet& vars, const RooDataHist& dhist, Int_t intOrder = 0) RooHistPdf(const RooHistPdf& other, const char* name = "0") virtual ~RooHistPdf() virtual Double_t analyticalIntegral(Int_t code, const char* rangeName = "0") const static TClass* Class() virtual TObject* clone(const char* newname) const virtual Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName = "0") const virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
RooSetProxy _depList List of dependents defining dimensions of histogram RooDataHist* _dataHist Unowned pointer to underlying histogram RooAICRegistry _codeReg Auxiliary class keeping tracking of analytical integration code Int_t _intOrder Interpolation order

Class Description

 RooHistPdf implements a probablity density function sample from a
 multidimensional histogram. The histogram distribution is explicitly
 normalized by RooHistPdf and can have an arbitrary number of real or
 discrete dimensions.

RooHistPdf(const char *name, const char *title, const RooArgSet& vars, const RooDataHist& dhist, Int_t intOrder) : RooAbsPdf(name,title), _depList("depList","List of dependents",this), _dataHist((RooDataHist*)&dhist), _codeReg(10), _intOrder(intOrder)
 Constructor from a RooDataHist. The variable listed in 'vars' control the dimensionality of the
 PDF. Any additional dimensions present in 'dhist' will be projected out. RooDataHist dimensions
 can be either real or discrete. See RooDataHist::RooDataHist for details on the binning.
 RooHistPdf neither owns or clone 'dhist' and the user must ensure the input histogram exists
 for the entire life span of this PDF.

RooHistPdf(const RooHistPdf& other, const char* name) : RooAbsPdf(other,name), _depList("depList",this,other._depList), _dataHist(other._dataHist), _codeReg(other._codeReg), _intOrder(other._intOrder)
 Copy constructor

Double_t evaluate() const
 Return the current value: The value of the bin enclosing the current coordinates
 of the dependents, normalized by the histograms contents

Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName) const
 Determine integration scenario. RooHistPdf can perform all integrals over
 its dependents analytically via partial or complete summation of the input histogram.

Double_t analyticalIntegral(Int_t code, const char* /*rangeName*/) const
 Return integral identified by 'code'. The actual integration
 is deferred to RooDataHist::sum() which implements partial
 or complete summation over the histograms contents



Inline Functions


               void ~RooHistPdf()
           TObject* clone(const char* newname) const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
Last CVS Update: v 1.22 2005/06/20 15:44:53 wverkerke Top
Copyright © 2000-2005 University of California, Stanford University

Page maintained by Wouter Verkerke and David Kirkby

SourceForge.net Logo