RooHistPdf Class Reference

#include <RooHistPdf.h>

Inheritance diagram for RooHistPdf:

RooAbsPdf RooAbsPdf RooAbsReal RooAbsReal RooAbsReal RooAbsReal RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg List of all members.

Public Member Functions

 RooHistPdf ()
 RooHistPdf (const char *name, const char *title, const RooArgSet &vars, const RooDataHist &dhist, Int_t intOrder=0)
 RooHistPdf (const char *name, const char *title, const RooArgList &pdfObs, const RooArgList &histObs, const RooDataHist &dhist, Int_t intOrder=0)
 RooHistPdf (const RooHistPdf &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~RooHistPdf ()
RooDataHistdataHist ()
const RooDataHistdataHist () const
void setInterpolationOrder (Int_t order)
Int_t getInterpolationOrder () const
Int_t getAnalyticalIntegral (RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Double_t analyticalIntegral (Int_t code, const char *rangeName=0) const
void setCdfBoundaries (Bool_t flag)
Bool_t getCdfBoundaries () const
void setUnitNorm (Bool_t flag)
Bool_t haveUnitNorm () const
virtual Bool_t selfNormalized () const
virtual Int_t getMaxVal (const RooArgSet &vars) const
virtual Double_t maxVal (Int_t code) const
virtual std::list< Double_t > * plotSamplingHint (RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const
 RooHistPdf ()
 RooHistPdf (const char *name, const char *title, const RooArgSet &vars, const RooDataHist &dhist, Int_t intOrder=0)
 RooHistPdf (const char *name, const char *title, const RooArgList &pdfObs, const RooArgList &histObs, const RooDataHist &dhist, Int_t intOrder=0)
 RooHistPdf (const RooHistPdf &other, const char *name=0)
virtual TObjectclone (const char *newname) const
virtual ~RooHistPdf ()
RooDataHistdataHist ()
const RooDataHistdataHist () const
void setInterpolationOrder (Int_t order)
Int_t getInterpolationOrder () const
Int_t getAnalyticalIntegral (RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Double_t analyticalIntegral (Int_t code, const char *rangeName=0) const
void setCdfBoundaries (Bool_t flag)
Bool_t getCdfBoundaries () const
void setUnitNorm (Bool_t flag)
Bool_t haveUnitNorm () const
virtual Bool_t selfNormalized () const
virtual Int_t getMaxVal (const RooArgSet &vars) const
virtual Double_t maxVal (Int_t code) const
virtual std::list< Double_t > * plotSamplingHint (RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const

Protected Member Functions

Bool_t importWorkspaceHook (RooWorkspace &ws)
Double_t evaluate () const
Double_t totalVolume () const
Double_t totVolume () const
Bool_t importWorkspaceHook (RooWorkspace &ws)
Double_t evaluate () const
Double_t totalVolume () const
Double_t totVolume () const

Protected Attributes

RooArgSet _histObsList
RooSetProxy _pdfObsList
RooDataHist_dataHist
TIterator_histObsIter
TIterator_pdfObsIter
RooAICRegistry _codeReg
Int_t _intOrder
 Auxiliary class keeping tracking of analytical integration code.
Bool_t _cdfBoundaries
Double_t _totVolume
Bool_t _unitNorm
 Total volume of space (product of ranges of observables).
RooDataHist_dataHist
TIterator_histObsIter
TIterator_pdfObsIter

Friends

class RooAbsCachedPdf

Detailed Description

Definition at line 28 of file RooHistPdf.h.


Constructor & Destructor Documentation

RooHistPdf::RooHistPdf (  ) 

Definition at line 45 of file RooHistPdf.cxx.

References _histObsIter, _histObsList, _pdfObsIter, _pdfObsList, and RooAbsCollection::createIterator().

Referenced by clone().

RooHistPdf::RooHistPdf ( const char *  name,
const char *  title,
const RooArgSet vars,
const RooDataHist dhist,
Int_t  intOrder = 0 
)

Definition at line 55 of file RooHistPdf.cxx.

References _histObsIter, _histObsList, _pdfObsIter, _pdfObsList, RooSetProxy::add(), RooArgSet::addClone(), coutE, RooAbsCollection::createIterator(), RooAbsCollection::find(), RooDataHist::get(), TNamed::GetName(), RooAbsCollection::getSize(), RooFit::InputArguments, and TIterator::Next().

RooHistPdf::RooHistPdf ( const char *  name,
const char *  title,
const RooArgList pdfObs,
const RooArgList histObs,
const RooDataHist dhist,
Int_t  intOrder = 0 
)

Definition at line 100 of file RooHistPdf.cxx.

References _histObsIter, _histObsList, _pdfObsIter, _pdfObsList, RooSetProxy::add(), RooArgSet::addClone(), coutE, RooAbsCollection::createIterator(), RooAbsCollection::find(), RooDataHist::get(), TNamed::GetName(), RooAbsCollection::getSize(), RooFit::InputArguments, RooAbsArg::isFundamental(), and TIterator::Next().

RooHistPdf::RooHistPdf ( const RooHistPdf other,
const char *  name = 0 
)

Definition at line 150 of file RooHistPdf.cxx.

References _histObsIter, _histObsList, _pdfObsIter, _pdfObsList, RooArgSet::addClone(), and RooAbsCollection::createIterator().

RooHistPdf::~RooHistPdf (  )  [virtual]

Definition at line 172 of file RooHistPdf.cxx.

References _histObsIter, and _pdfObsIter.

RooHistPdf::RooHistPdf (  ) 

RooHistPdf::RooHistPdf ( const char *  name,
const char *  title,
const RooArgSet vars,
const RooDataHist dhist,
Int_t  intOrder = 0 
)

RooHistPdf::RooHistPdf ( const char *  name,
const char *  title,
const RooArgList pdfObs,
const RooArgList histObs,
const RooDataHist dhist,
Int_t  intOrder = 0 
)

RooHistPdf::RooHistPdf ( const RooHistPdf other,
const char *  name = 0 
)

virtual RooHistPdf::~RooHistPdf (  )  [virtual]


Member Function Documentation

virtual TObject* RooHistPdf::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 34 of file RooHistPdf.h.

References RooHistPdf().

RooDataHist& RooHistPdf::dataHist (  )  [inline]

Definition at line 37 of file RooHistPdf.h.

References _dataHist.

const RooDataHist& RooHistPdf::dataHist (  )  const [inline]

Definition at line 41 of file RooHistPdf.h.

References _dataHist.

void RooHistPdf::setInterpolationOrder ( Int_t  order  )  [inline]

Definition at line 46 of file RooHistPdf.h.

References _intOrder.

Int_t RooHistPdf::getInterpolationOrder (  )  const [inline]

Definition at line 50 of file RooHistPdf.h.

References _intOrder.

Int_t RooHistPdf::getAnalyticalIntegral ( RooArgSet allVars,
RooArgSet analVars,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsReal.

Definition at line 245 of file RooHistPdf.cxx.

References _histObsList, _pdfObsList, RooArgSet::add(), RooArgList::at(), code, RooAbsCollection::createIterator(), RooAbsCollection::find(), TNamed::GetName(), RooAbsCollection::getSize(), RooArgList::index(), n, TIterator::Next(), and RooAbsCollection::selectCommon().

Double_t RooHistPdf::analyticalIntegral ( Int_t  code,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsReal.

Definition at line 316 of file RooHistPdf.cxx.

References _dataHist, _histObsIter, _histObsList, _pdfObsIter, _pdfObsList, RooArgSet::add(), RooAbsArg::copyCache(), RooAbsCollection::createIterator(), RooAbsCollection::getSize(), kFALSE, kTRUE, n, TIterator::Next(), TIterator::Reset(), RooDataHist::sum(), and RooAbsArg::syncCache().

void RooHistPdf::setCdfBoundaries ( Bool_t  flag  )  [inline]

Definition at line 58 of file RooHistPdf.h.

References _cdfBoundaries.

Bool_t RooHistPdf::getCdfBoundaries (  )  const [inline]

Definition at line 62 of file RooHistPdf.h.

References _cdfBoundaries.

void RooHistPdf::setUnitNorm ( Bool_t  flag  )  [inline]

Definition at line 67 of file RooHistPdf.h.

References _unitNorm.

Bool_t RooHistPdf::haveUnitNorm (  )  const [inline]

Definition at line 71 of file RooHistPdf.h.

References _unitNorm.

Referenced by RooAbsCachedPdf::getAnalyticalIntegralWN(), and RooAbsCachedPdf::getCache().

virtual Bool_t RooHistPdf::selfNormalized (  )  const [inline, virtual]

Reimplemented from RooAbsPdf.

Definition at line 76 of file RooHistPdf.h.

References _unitNorm.

Int_t RooHistPdf::getMaxVal ( const RooArgSet vars  )  const [virtual]

Reimplemented from RooAbsReal.

Definition at line 412 of file RooHistPdf.cxx.

References _pdfObsList, RooAbsCollection::getSize(), and RooAbsCollection::selectCommon().

Double_t RooHistPdf::maxVal ( Int_t  code  )  const [virtual]

Reimplemented from RooAbsReal.

Definition at line 426 of file RooHistPdf.cxx.

References _dataHist, RooDataHist::get(), i, max, RooDataHist::numEntries(), and RooDataHist::weight().

list< Double_t > * RooHistPdf::plotSamplingHint ( RooAbsRealLValue obs,
Double_t  xlo,
Double_t  xhi 
) const [virtual]

Reimplemented from RooAbsReal.

Definition at line 368 of file RooHistPdf.cxx.

References _dataHist, _intOrder, RooAbsBinning::array(), RooAbsCollection::find(), RooDataHist::get(), RooAbsLValue::getBinningPtr(), TNamed::GetName(), i, and RooAbsBinning::numBoundaries().

Bool_t RooHistPdf::importWorkspaceHook ( RooWorkspace ws  )  [protected, virtual]

Reimplemented from RooAbsArg.

Definition at line 442 of file RooHistPdf.cxx.

References _dataHist, RooWorkspace::allData(), xmlio::Class, coutE, RooWorkspace::data(), flag, TNamed::GetName(), RooWorkspace::import(), TObject::InheritsFrom(), kFALSE, kTRUE, and RooFit::ObjectHandling.

Double_t RooHistPdf::evaluate (  )  const [protected, virtual]

Implements RooAbsReal.

Definition at line 185 of file RooHistPdf.cxx.

References _cdfBoundaries, _dataHist, _histObsIter, _histObsList, _intOrder, _pdfObsIter, _pdfObsList, _unitNorm, RooAbsArg::copyCache(), RooAbsCollection::getSize(), kFALSE, kTRUE, TIterator::Next(), TIterator::Reset(), RooAbsArg::syncCache(), and RooDataHist::weight().

Double_t RooHistPdf::totalVolume (  )  const [protected]

Double_t RooHistPdf::totVolume (  )  const [protected]

Definition at line 216 of file RooHistPdf.cxx.

References _histObsList, _totVolume, RooAbsCollection::createIterator(), RooAbsRealLValue::getMax(), RooAbsRealLValue::getMin(), TIterator::Next(), and RooAbsCategory::numTypes().

virtual TObject* RooHistPdf::clone ( const char *  newname  )  const [inline, virtual]

Implements RooAbsArg.

Definition at line 34 of file RooHistPdf.h.

References RooHistPdf().

RooDataHist& RooHistPdf::dataHist (  )  [inline]

Definition at line 37 of file RooHistPdf.h.

References _dataHist.

const RooDataHist& RooHistPdf::dataHist (  )  const [inline]

Definition at line 41 of file RooHistPdf.h.

References _dataHist.

void RooHistPdf::setInterpolationOrder ( Int_t  order  )  [inline]

Definition at line 46 of file RooHistPdf.h.

References _intOrder.

Int_t RooHistPdf::getInterpolationOrder (  )  const [inline]

Definition at line 50 of file RooHistPdf.h.

References _intOrder.

Int_t RooHistPdf::getAnalyticalIntegral ( RooArgSet allVars,
RooArgSet analVars,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsReal.

Double_t RooHistPdf::analyticalIntegral ( Int_t  code,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsReal.

void RooHistPdf::setCdfBoundaries ( Bool_t  flag  )  [inline]

Definition at line 58 of file RooHistPdf.h.

References _cdfBoundaries.

Bool_t RooHistPdf::getCdfBoundaries (  )  const [inline]

Definition at line 62 of file RooHistPdf.h.

References _cdfBoundaries.

void RooHistPdf::setUnitNorm ( Bool_t  flag  )  [inline]

Definition at line 67 of file RooHistPdf.h.

References _unitNorm.

Bool_t RooHistPdf::haveUnitNorm (  )  const [inline]

Definition at line 71 of file RooHistPdf.h.

References _unitNorm.

virtual Bool_t RooHistPdf::selfNormalized (  )  const [inline, virtual]

Reimplemented from RooAbsPdf.

Definition at line 76 of file RooHistPdf.h.

References _unitNorm.

virtual Int_t RooHistPdf::getMaxVal ( const RooArgSet vars  )  const [virtual]

Reimplemented from RooAbsReal.

virtual Double_t RooHistPdf::maxVal ( Int_t  code  )  const [virtual]

Reimplemented from RooAbsReal.

virtual std::list<Double_t>* RooHistPdf::plotSamplingHint ( RooAbsRealLValue obs,
Double_t  xlo,
Double_t  xhi 
) const [virtual]

Reimplemented from RooAbsReal.

Bool_t RooHistPdf::importWorkspaceHook ( RooWorkspace ws  )  [protected, virtual]

Reimplemented from RooAbsArg.

Double_t RooHistPdf::evaluate (  )  const [protected, virtual]

Implements RooAbsReal.

Double_t RooHistPdf::totalVolume (  )  const [protected]

Double_t RooHistPdf::totVolume (  )  const [protected]


Friends And Related Function Documentation

RooAbsCachedPdf [friend]

Definition at line 89 of file RooHistPdf.h.


Member Data Documentation

RooArgSet RooHistPdf::_histObsList [protected]

Definition at line 92 of file RooHistPdf.h.

Referenced by analyticalIntegral(), evaluate(), getAnalyticalIntegral(), RooHistPdf(), and totVolume().

RooSetProxy RooHistPdf::_pdfObsList [protected]

Definition at line 93 of file RooHistPdf.h.

Referenced by analyticalIntegral(), evaluate(), getAnalyticalIntegral(), getMaxVal(), and RooHistPdf().

RooDataHist* RooHistPdf::_dataHist [protected]

Definition at line 94 of file RooHistPdf.h.

Referenced by analyticalIntegral(), dataHist(), evaluate(), importWorkspaceHook(), maxVal(), and plotSamplingHint().

TIterator* RooHistPdf::_histObsIter [protected]

Definition at line 95 of file RooHistPdf.h.

Referenced by analyticalIntegral(), evaluate(), RooHistPdf(), and ~RooHistPdf().

TIterator* RooHistPdf::_pdfObsIter [protected]

Definition at line 96 of file RooHistPdf.h.

Referenced by analyticalIntegral(), evaluate(), RooHistPdf(), and ~RooHistPdf().

RooAICRegistry RooHistPdf::_codeReg [mutable, protected]

Definition at line 97 of file RooHistPdf.h.

Int_t RooHistPdf::_intOrder [protected]

Auxiliary class keeping tracking of analytical integration code.

Definition at line 98 of file RooHistPdf.h.

Referenced by evaluate(), getInterpolationOrder(), plotSamplingHint(), and setInterpolationOrder().

Bool_t RooHistPdf::_cdfBoundaries [protected]

Definition at line 99 of file RooHistPdf.h.

Referenced by evaluate(), getCdfBoundaries(), and setCdfBoundaries().

Double_t RooHistPdf::_totVolume [mutable, protected]

Definition at line 100 of file RooHistPdf.h.

Referenced by totVolume().

Bool_t RooHistPdf::_unitNorm [protected]

Total volume of space (product of ranges of observables).

Definition at line 101 of file RooHistPdf.h.

Referenced by evaluate(), haveUnitNorm(), selfNormalized(), and setUnitNorm().

RooDataHist* RooHistPdf::_dataHist [protected]

Definition at line 94 of file RooHistPdf.h.

TIterator* RooHistPdf::_histObsIter [protected]

Definition at line 95 of file RooHistPdf.h.

TIterator* RooHistPdf::_pdfObsIter [protected]

Definition at line 96 of file RooHistPdf.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:45 2011 for ROOT_528-00b_version by  doxygen 1.5.1