#include <RooAbsCachedPdf.h>
Inheritance diagram for RooAbsCachedPdf:
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 |
RooAbsPdf * | getCachePdf (const RooArgSet &nset) const |
RooDataHist * | getCacheHist (const RooArgSet &nset) const |
RooAbsPdf * | getCachePdf (const RooArgSet *nset=0) const |
RooDataHist * | getCacheHist (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 |
RooAbsPdf * | getCachePdf (const RooArgSet &nset) const |
RooDataHist * | getCacheHist (const RooArgSet &nset) const |
RooAbsPdf * | getCachePdf (const RooArgSet *nset=0) const |
RooDataHist * | getCacheHist (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 | |
PdfCacheElem * | getCache (const RooArgSet *nset, Bool_t recalculate=kTRUE) const |
void | clearCacheObject (PdfCacheElem &cache) const |
virtual const char * | payloadUniqueSuffix () const |
virtual const char * | binningName () const |
virtual PdfCacheElem * | createCache (const RooArgSet *nset) const |
virtual const char * | inputBaseName () const=0 |
virtual RooArgSet * | actualObservables (const RooArgSet &nset) const=0 |
virtual RooArgSet * | actualParameters (const RooArgSet &nset) const=0 |
virtual RooAbsArg & | pdfObservable (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) |
PdfCacheElem * | getCache (const RooArgSet *nset, Bool_t recalculate=kTRUE) const |
void | clearCacheObject (PdfCacheElem &cache) const |
virtual const char * | payloadUniqueSuffix () const |
virtual const char * | binningName () const |
virtual PdfCacheElem * | createCache (const RooArgSet *nset) const |
virtual const char * | inputBaseName () const=0 |
virtual RooArgSet * | actualObservables (const RooArgSet &nset) const=0 |
virtual RooArgSet * | actualParameters (const RooArgSet &nset) const=0 |
virtual RooAbsArg & | pdfObservable (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 |
Definition at line 25 of file RooAbsCachedPdf.h.
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] |
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] |
RooDataHist* RooAbsCachedPdf::getCacheHist | ( | const RooArgSet & | nset | ) | const [inline] |
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().
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] |
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] |
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().
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] |
Reimplemented from RooAbsPdf.
virtual Bool_t RooAbsCachedPdf::selfNormalized | ( | ) | const [inline, virtual] |
RooDataHist* RooAbsCachedPdf::getCacheHist | ( | const RooArgSet & | nset | ) | const [inline] |
RooDataHist* RooAbsCachedPdf::getCacheHist | ( | const RooArgSet * | nset = 0 |
) | const |
void RooAbsCachedPdf::setInterpolationOrder | ( | Int_t | order | ) |
Int_t RooAbsCachedPdf::getInterpolationOrder | ( | ) | const [inline] |
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] |
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] |
virtual TString RooAbsCachedPdf::histNameSuffix | ( | ) | const [inline, protected, virtual] |
Definition at line 112 of file RooAbsCachedPdf.h.
void RooAbsCachedPdf::disableCache | ( | Bool_t | flag | ) | [inline, protected] |
PdfCacheElem [friend] |
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.