RooAbsCachedPdf Class Reference

#include <RooAbsCachedPdf.h>

Inheritance diagram for RooAbsCachedPdf:

RooAbsPdf RooAbsPdf RooAbsReal RooAbsReal RooAbsReal RooAbsReal RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooAbsSelfCachedPdf RooAbsSelfCachedPdf RooCachedPdf RooCachedPdf RooFFTConvPdf RooFFTConvPdf RooIntegralMorph RooIntegralMorph List of all members.

Public Member Functions

 RooAbsCachedPdf ()
 RooAbsCachedPdf (const char *name, const char *title, Int_t ipOrder=0)
 RooAbsCachedPdf (const RooAbsCachedPdf &other, const char *name=0)
virtual ~RooAbsCachedPdf ()
virtual Double_t getVal (const RooArgSet *set=0) const
virtual Bool_t selfNormalized () const
RooAbsPdfgetCachePdf (const RooArgSet &nset) const
RooDataHistgetCacheHist (const RooArgSet &nset) const
RooAbsPdfgetCachePdf (const RooArgSet *nset=0) const
RooDataHistgetCacheHist (const RooArgSet *nset=0) const
void setInterpolationOrder (Int_t order)
Int_t getInterpolationOrder () const
virtual Bool_t forceAnalyticalInt (const RooAbsArg &dep) const
virtual Int_t getAnalyticalIntegralWN (RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=0) const
virtual Double_t analyticalIntegralWN (Int_t code, const RooArgSet *normSet, const char *rangeName=0) const
 RooAbsCachedPdf ()
 RooAbsCachedPdf (const char *name, const char *title, Int_t ipOrder=0)
 RooAbsCachedPdf (const RooAbsCachedPdf &other, const char *name=0)
virtual ~RooAbsCachedPdf ()
virtual Double_t getVal (const RooArgSet *set=0) const
virtual Bool_t selfNormalized () const
RooAbsPdfgetCachePdf (const RooArgSet &nset) const
RooDataHistgetCacheHist (const RooArgSet &nset) const
RooAbsPdfgetCachePdf (const RooArgSet *nset=0) const
RooDataHistgetCacheHist (const RooArgSet *nset=0) const
void setInterpolationOrder (Int_t order)
Int_t getInterpolationOrder () const
virtual Bool_t forceAnalyticalInt (const RooAbsArg &dep) const
virtual Int_t getAnalyticalIntegralWN (RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=0) const
virtual Double_t analyticalIntegralWN (Int_t code, const RooArgSet *normSet, const char *rangeName=0) const

Protected Member Functions

PdfCacheElemgetCache (const RooArgSet *nset, Bool_t recalculate=kTRUE) const
void clearCacheObject (PdfCacheElem &cache) const
virtual const char * payloadUniqueSuffix () const
virtual const char * binningName () const
virtual PdfCacheElemcreateCache (const RooArgSet *nset) const
virtual const char * inputBaseName () const=0
virtual RooArgSetactualObservables (const RooArgSet &nset) const=0
virtual RooArgSetactualParameters (const RooArgSet &nset) const=0
virtual RooAbsArgpdfObservable (RooAbsArg &histObservable) const
virtual void fillCacheObject (PdfCacheElem &cache) const =0
TString cacheNameSuffix (const RooArgSet &nset) const
virtual TString histNameSuffix () const
void disableCache (Bool_t flag)
PdfCacheElemgetCache (const RooArgSet *nset, Bool_t recalculate=kTRUE) const
void clearCacheObject (PdfCacheElem &cache) const
virtual const char * payloadUniqueSuffix () const
virtual const char * binningName () const
virtual PdfCacheElemcreateCache (const RooArgSet *nset) const
virtual const char * inputBaseName () const=0
virtual RooArgSetactualObservables (const RooArgSet &nset) const=0
virtual RooArgSetactualParameters (const RooArgSet &nset) const=0
virtual RooAbsArgpdfObservable (RooAbsArg &histObservable) const
virtual void fillCacheObject (PdfCacheElem &cache) const =0
TString cacheNameSuffix (const RooArgSet &nset) const
virtual TString histNameSuffix () const
void disableCache (Bool_t flag)

Protected Attributes

RooObjCacheManager _cacheMgr
Int_t _ipOrder
RooAICRegistry _anaReg
std::map< Int_t, AnaIntConfig_anaIntMap
std::map< Int_t, AnaIntConfig_anaIntMap

Private Attributes

Bool_t _disableCache
 Map for analytical integration codes.

Friends

class PdfCacheElem

Classes

class  AnaIntConfig
 Registry for analytical integration codes. More...
class  PdfCacheElem

Detailed Description

Definition at line 25 of file RooAbsCachedPdf.h.


Constructor & Destructor Documentation

RooAbsCachedPdf::RooAbsCachedPdf (  )  [inline]

Definition at line 28 of file RooAbsCachedPdf.h.

RooAbsCachedPdf::RooAbsCachedPdf ( const char *  name,
const char *  title,
Int_t  ipOrder = 0 
)

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

Definition at line 65 of file RooAbsCachedPdf.cxx.

RooAbsCachedPdf::~RooAbsCachedPdf (  )  [virtual]

Definition at line 77 of file RooAbsCachedPdf.cxx.

RooAbsCachedPdf::RooAbsCachedPdf (  )  [inline]

Definition at line 28 of file RooAbsCachedPdf.h.

RooAbsCachedPdf::RooAbsCachedPdf ( const char *  name,
const char *  title,
Int_t  ipOrder = 0 
)

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

virtual RooAbsCachedPdf::~RooAbsCachedPdf (  )  [virtual]


Member Function Documentation

Double_t RooAbsCachedPdf::getVal ( const RooArgSet set = 0  )  const [virtual]

Reimplemented from RooAbsPdf.

Definition at line 85 of file RooAbsCachedPdf.cxx.

References _disableCache, RooAbsReal::_value, getCache(), RooAbsPdf::getVal(), RooAbsCachedPdf::PdfCacheElem::pdf(), and value.

Referenced by analyticalIntegralWN(), and RooFFTConvPdf::evaluate().

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

Reimplemented from RooAbsPdf.

Definition at line 36 of file RooAbsCachedPdf.h.

References kTRUE.

RooAbsPdf* RooAbsCachedPdf::getCachePdf ( const RooArgSet nset  )  const [inline]

Definition at line 41 of file RooAbsCachedPdf.h.

Referenced by getCachePdf().

RooDataHist* RooAbsCachedPdf::getCacheHist ( const RooArgSet nset  )  const [inline]

Definition at line 45 of file RooAbsCachedPdf.h.

Referenced by getCacheHist().

RooAbsPdf * RooAbsCachedPdf::getCachePdf ( const RooArgSet nset = 0  )  const

Definition at line 108 of file RooAbsCachedPdf.cxx.

References getCache(), and RooAbsCachedPdf::PdfCacheElem::pdf().

RooDataHist * RooAbsCachedPdf::getCacheHist ( const RooArgSet nset = 0  )  const

Definition at line 123 of file RooAbsCachedPdf.cxx.

References getCache(), and RooAbsCachedPdf::PdfCacheElem::hist().

void RooAbsCachedPdf::setInterpolationOrder ( Int_t  order  ) 

Definition at line 322 of file RooAbsCachedPdf.cxx.

References _cacheMgr, _ipOrder, RooCacheManager< T >::cacheSize(), RooCacheManager< T >::getObjByIndex(), and i.

Int_t RooAbsCachedPdf::getInterpolationOrder (  )  const [inline]

Definition at line 53 of file RooAbsCachedPdf.h.

References _ipOrder.

Referenced by RooAbsCachedPdf::PdfCacheElem::PdfCacheElem().

Bool_t RooAbsCachedPdf::forceAnalyticalInt ( const RooAbsArg dep  )  const [virtual]

Reimplemented from RooAbsReal.

Definition at line 399 of file RooAbsCachedPdf.cxx.

References actualObservables(), and RooAbsCollection::getSize().

Int_t RooAbsCachedPdf::getAnalyticalIntegralWN ( RooArgSet allVars,
RooArgSet analVars,
const RooArgSet normSet,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsReal.

Definition at line 413 of file RooAbsCachedPdf.cxx.

References _anaReg, RooArgSet::add(), RooArgSet::addClone(), RooAbsReal::getAnalyticalIntegralWN(), getCache(), RooAbsCollection::getSize(), RooHistPdf::haveUnitNorm(), kTRUE, RooAbsCachedPdf::PdfCacheElem::pdf(), and RooAICRegistry::store().

Double_t RooAbsCachedPdf::analyticalIntegralWN ( Int_t  code,
const RooArgSet normSet,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsPdf.

Definition at line 455 of file RooAbsCachedPdf.cxx.

References _anaReg, RooAbsPdf::analyticalIntegralWN(), RooAbsCollection::createIterator(), dummy, getCache(), getVal(), kFALSE, kTRUE, TIterator::Next(), RooAbsCachedPdf::PdfCacheElem::pdf(), RooAbsCollection::remove(), RooAICRegistry::retrieve(), and RooAbsLValue::volume().

RooAbsCachedPdf::PdfCacheElem * RooAbsCachedPdf::getCache ( const RooArgSet nset,
Bool_t  recalculate = kTRUE 
) const [protected]

Definition at line 148 of file RooAbsCachedPdf.cxx.

References _cacheMgr, RooDataHist::add(), RooFit::Caching, ccoutI, xmlio::Class, coutI, createCache(), cxcoutD, RooFit::Eval, RooAbsArg::expensiveObjectCache(), fillCacheObject(), TNamed::GetName(), RooCacheManager< T >::getObj(), RooChangeTracker::hasChanged(), RooHistPdf::haveUnitNorm(), RooAbsCachedPdf::PdfCacheElem::hist(), kTRUE, RooChangeTracker::parameters(), RooAbsCachedPdf::PdfCacheElem::paramTracker(), RooAbsCachedPdf::PdfCacheElem::pdf(), RooExpensiveObjectCache::registerObject(), RooDataHist::removeSelfFromDir(), RooDataHist::reset(), RooExpensiveObjectCache::retrieveObject(), RooAbsArg::RooArgSet, RooCacheManager< T >::setObj(), and RooAbsArg::setValueDirty().

Referenced by analyticalIntegralWN(), getAnalyticalIntegralWN(), getCacheHist(), getCachePdf(), and getVal().

void RooAbsCachedPdf::clearCacheObject ( PdfCacheElem cache  )  const [protected]

Definition at line 138 of file RooAbsCachedPdf.cxx.

References RooAbsCachedPdf::PdfCacheElem::hist(), and RooDataHist::setAllWeights().

virtual const char* RooAbsCachedPdf::payloadUniqueSuffix (  )  const [inline, protected, virtual]

Definition at line 91 of file RooAbsCachedPdf.h.

Referenced by cacheNameSuffix().

virtual const char* RooAbsCachedPdf::binningName (  )  const [inline, protected, virtual]

Definition at line 94 of file RooAbsCachedPdf.h.

Referenced by RooAbsCachedPdf::PdfCacheElem::PdfCacheElem(), and RooFFTConvPdf::scanPdf().

virtual PdfCacheElem* RooAbsCachedPdf::createCache ( const RooArgSet nset  )  const [inline, protected, virtual]

Definition at line 98 of file RooAbsCachedPdf.h.

References PdfCacheElem.

Referenced by getCache().

virtual const char* RooAbsCachedPdf::inputBaseName (  )  const [protected, pure virtual]

Referenced by RooAbsCachedPdf::PdfCacheElem::PdfCacheElem().

virtual RooArgSet* RooAbsCachedPdf::actualObservables ( const RooArgSet nset  )  const [protected, pure virtual]

Referenced by forceAnalyticalInt().

virtual RooArgSet* RooAbsCachedPdf::actualParameters ( const RooArgSet nset  )  const [protected, pure virtual]

virtual RooAbsArg& RooAbsCachedPdf::pdfObservable ( RooAbsArg histObservable  )  const [inline, protected, virtual]

Definition at line 105 of file RooAbsCachedPdf.h.

virtual void RooAbsCachedPdf::fillCacheObject ( PdfCacheElem cache  )  const [protected, pure virtual]

Referenced by getCache().

TString RooAbsCachedPdf::cacheNameSuffix ( const RooArgSet nset  )  const [protected]

Definition at line 289 of file RooAbsCachedPdf.cxx.

References RooAbsCollection::createIterator(), TNamed::GetName(), RooAbsCollection::getSize(), kFALSE, kTRUE, name, and payloadUniqueSuffix().

Referenced by RooAbsCachedPdf::PdfCacheElem::PdfCacheElem().

virtual TString RooAbsCachedPdf::histNameSuffix (  )  const [inline, protected, virtual]

Definition at line 112 of file RooAbsCachedPdf.h.

Referenced by RooAbsCachedPdf::PdfCacheElem::PdfCacheElem().

void RooAbsCachedPdf::disableCache ( Bool_t  flag  )  [inline, protected]

Definition at line 113 of file RooAbsCachedPdf.h.

References _disableCache.

virtual Double_t RooAbsCachedPdf::getVal ( const RooArgSet set = 0  )  const [virtual]

Reimplemented from RooAbsPdf.

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

Reimplemented from RooAbsPdf.

Definition at line 36 of file RooAbsCachedPdf.h.

References kTRUE.

RooAbsPdf* RooAbsCachedPdf::getCachePdf ( const RooArgSet nset  )  const [inline]

Definition at line 41 of file RooAbsCachedPdf.h.

References getCachePdf().

RooDataHist* RooAbsCachedPdf::getCacheHist ( const RooArgSet nset  )  const [inline]

Definition at line 45 of file RooAbsCachedPdf.h.

References getCacheHist().

RooAbsPdf* RooAbsCachedPdf::getCachePdf ( const RooArgSet nset = 0  )  const

RooDataHist* RooAbsCachedPdf::getCacheHist ( const RooArgSet nset = 0  )  const

void RooAbsCachedPdf::setInterpolationOrder ( Int_t  order  ) 

Int_t RooAbsCachedPdf::getInterpolationOrder (  )  const [inline]

Definition at line 53 of file RooAbsCachedPdf.h.

References _ipOrder.

virtual Bool_t RooAbsCachedPdf::forceAnalyticalInt ( const RooAbsArg dep  )  const [virtual]

Reimplemented from RooAbsReal.

virtual Int_t RooAbsCachedPdf::getAnalyticalIntegralWN ( RooArgSet allVars,
RooArgSet analVars,
const RooArgSet normSet,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsReal.

virtual Double_t RooAbsCachedPdf::analyticalIntegralWN ( Int_t  code,
const RooArgSet normSet,
const char *  rangeName = 0 
) const [virtual]

Reimplemented from RooAbsPdf.

PdfCacheElem* RooAbsCachedPdf::getCache ( const RooArgSet nset,
Bool_t  recalculate = kTRUE 
) const [protected]

void RooAbsCachedPdf::clearCacheObject ( PdfCacheElem cache  )  const [protected]

virtual const char* RooAbsCachedPdf::payloadUniqueSuffix (  )  const [inline, protected, virtual]

Definition at line 91 of file RooAbsCachedPdf.h.

virtual const char* RooAbsCachedPdf::binningName (  )  const [inline, protected, virtual]

Definition at line 94 of file RooAbsCachedPdf.h.

virtual PdfCacheElem* RooAbsCachedPdf::createCache ( const RooArgSet nset  )  const [inline, protected, virtual]

Definition at line 98 of file RooAbsCachedPdf.h.

References PdfCacheElem.

virtual const char* RooAbsCachedPdf::inputBaseName (  )  const [protected, pure virtual]

virtual RooArgSet* RooAbsCachedPdf::actualObservables ( const RooArgSet nset  )  const [protected, pure virtual]

virtual RooArgSet* RooAbsCachedPdf::actualParameters ( const RooArgSet nset  )  const [protected, pure virtual]

virtual RooAbsArg& RooAbsCachedPdf::pdfObservable ( RooAbsArg histObservable  )  const [inline, protected, virtual]

Definition at line 105 of file RooAbsCachedPdf.h.

virtual void RooAbsCachedPdf::fillCacheObject ( PdfCacheElem cache  )  const [protected, pure virtual]

TString RooAbsCachedPdf::cacheNameSuffix ( const RooArgSet nset  )  const [protected]

virtual TString RooAbsCachedPdf::histNameSuffix (  )  const [inline, protected, virtual]

Definition at line 112 of file RooAbsCachedPdf.h.

void RooAbsCachedPdf::disableCache ( Bool_t  flag  )  [inline, protected]

Definition at line 113 of file RooAbsCachedPdf.h.

References _disableCache.


Friends And Related Function Documentation

PdfCacheElem [friend]

Definition at line 93 of file RooAbsCachedPdf.h.

Referenced by createCache().


Member Data Documentation

RooObjCacheManager RooAbsCachedPdf::_cacheMgr [mutable, protected]

Definition at line 108 of file RooAbsCachedPdf.h.

Referenced by getCache(), RooFFTConvPdf::setBufferFraction(), RooIntegralMorph::setCacheAlpha(), and setInterpolationOrder().

Int_t RooAbsCachedPdf::_ipOrder [protected]

Definition at line 109 of file RooAbsCachedPdf.h.

Referenced by getInterpolationOrder(), and setInterpolationOrder().

RooAICRegistry RooAbsCachedPdf::_anaReg [mutable, protected]

Definition at line 118 of file RooAbsCachedPdf.h.

Referenced by analyticalIntegralWN(), and getAnalyticalIntegralWN().

std::map<Int_t,AnaIntConfig> RooAbsCachedPdf::_anaIntMap [mutable, protected]

Definition at line 126 of file RooAbsCachedPdf.h.

Bool_t RooAbsCachedPdf::_disableCache [private]

Map for analytical integration codes.

Definition at line 132 of file RooAbsCachedPdf.h.

Referenced by disableCache(), and getVal().

std::map<Int_t,AnaIntConfig> RooAbsCachedPdf::_anaIntMap [mutable, protected]

Definition at line 126 of file RooAbsCachedPdf.h.


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