RooAbsCachedReal Class Reference

#include <RooAbsCachedReal.h>

Inheritance diagram for RooAbsCachedReal:

RooAbsReal RooAbsReal RooAbsArg RooAbsArg RooAbsArg RooAbsArg RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooPrintable TNamed RooAbsSelfCachedReal RooAbsSelfCachedReal RooCachedReal RooCachedReal RooNumRunningInt RooNumRunningInt RooNumCdf RooNumCdf RooNumCdf RooNumCdf List of all members.

Public Member Functions

 RooAbsCachedReal ()
 RooAbsCachedReal (const char *name, const char *title, Int_t ipOrder=0)
 RooAbsCachedReal (const RooAbsCachedReal &other, const char *name=0)
virtual ~RooAbsCachedReal ()
virtual Double_t getVal (const RooArgSet *set=0) const
virtual Bool_t selfNormalized () const
void setInterpolationOrder (Int_t order)
Int_t getInterpolationOrder () const
virtual Bool_t forceAnalyticalInt (const RooAbsArg &) 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
 RooAbsCachedReal ()
 RooAbsCachedReal (const char *name, const char *title, Int_t ipOrder=0)
 RooAbsCachedReal (const RooAbsCachedReal &other, const char *name=0)
virtual ~RooAbsCachedReal ()
virtual Double_t getVal (const RooArgSet *set=0) const
virtual Bool_t selfNormalized () const
void setInterpolationOrder (Int_t order)
Int_t getInterpolationOrder () const
virtual Bool_t forceAnalyticalInt (const RooAbsArg &) 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

FuncCacheElemgetCache (const RooArgSet *nset) const
void clearCacheObject (FuncCacheElem &cache) const
virtual const char * payloadUniqueSuffix () const
virtual const char * binningName () const
virtual FuncCacheElemcreateCache (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 void fillCacheObject (FuncCacheElem &cache) const =0
TString cacheNameSuffix (const RooArgSet &nset) const
void disableCache (Bool_t flag)
FuncCacheElemgetCache (const RooArgSet *nset) const
void clearCacheObject (FuncCacheElem &cache) const
virtual const char * payloadUniqueSuffix () const
virtual const char * binningName () const
virtual FuncCacheElemcreateCache (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 void fillCacheObject (FuncCacheElem &cache) const =0
TString cacheNameSuffix (const RooArgSet &nset) const
void disableCache (Bool_t flag)

Protected Attributes

RooObjCacheManager _cacheMgr
Int_t _ipOrder
std::map< Int_t, std::pair<
const RooArgSet *, const
RooArgSet * > > 
_anaIntMap
std::map< Int_t, std::pair<
const RooArgSet *, const
RooArgSet * > > 
_anaIntMap

Private Attributes

Bool_t _disableCache
 Map for analytical integration codes.

Friends

class FuncCacheElem

Classes

class  FuncCacheElem

Detailed Description

Definition at line 24 of file RooAbsCachedReal.h.


Constructor & Destructor Documentation

RooAbsCachedReal::RooAbsCachedReal (  )  [inline]

Definition at line 27 of file RooAbsCachedReal.h.

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

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

Definition at line 60 of file RooAbsCachedReal.cxx.

RooAbsCachedReal::~RooAbsCachedReal (  )  [virtual]

Definition at line 72 of file RooAbsCachedReal.cxx.

RooAbsCachedReal::RooAbsCachedReal (  )  [inline]

Definition at line 27 of file RooAbsCachedReal.h.

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

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

virtual RooAbsCachedReal::~RooAbsCachedReal (  )  [virtual]


Member Function Documentation

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

Reimplemented from RooAbsReal.

Definition at line 80 of file RooAbsCachedReal.cxx.

References _disableCache, RooAbsReal::_value, RooAbsCachedReal::FuncCacheElem::func(), getCache(), and RooAbsReal::getVal().

Referenced by analyticalIntegralWN().

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

Definition at line 33 of file RooAbsCachedReal.h.

References kTRUE.

void RooAbsCachedReal::setInterpolationOrder ( Int_t  order  ) 

Definition at line 257 of file RooAbsCachedReal.cxx.

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

Referenced by RooAbsPdf::createScanCdf(), RooAbsReal::createScanRI(), and RooNumRunningInt::RooNumRunningInt().

Int_t RooAbsCachedReal::getInterpolationOrder (  )  const [inline]

Definition at line 39 of file RooAbsCachedReal.h.

References _ipOrder.

Referenced by RooAbsCachedReal::FuncCacheElem::FuncCacheElem().

virtual Bool_t RooAbsCachedReal::forceAnalyticalInt ( const RooAbsArg  )  const [inline, virtual]

Reimplemented from RooAbsReal.

Definition at line 44 of file RooAbsCachedReal.h.

References kTRUE.

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

Reimplemented from RooAbsReal.

Definition at line 306 of file RooAbsCachedReal.cxx.

References _anaIntMap, RooAbsCachedReal::FuncCacheElem::func(), RooAbsReal::getAnalyticalIntegralWN(), and getCache().

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

Reimplemented from RooAbsReal.

Definition at line 320 of file RooAbsCachedReal.cxx.

References _anaIntMap, RooAbsReal::analyticalIntegralWN(), RooAbsCachedReal::FuncCacheElem::func(), getCache(), and getVal().

RooAbsCachedReal::FuncCacheElem * RooAbsCachedReal::getCache ( const RooArgSet nset  )  const [protected]

Definition at line 128 of file RooAbsCachedReal.cxx.

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

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

void RooAbsCachedReal::clearCacheObject ( FuncCacheElem cache  )  const [protected]

Definition at line 105 of file RooAbsCachedReal.cxx.

References RooAbsCachedReal::FuncCacheElem::hist(), and RooDataHist::setAllWeights().

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

Definition at line 77 of file RooAbsCachedReal.h.

Referenced by cacheNameSuffix().

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

Definition at line 80 of file RooAbsCachedReal.h.

Referenced by RooAbsCachedReal::FuncCacheElem::FuncCacheElem().

RooAbsCachedReal::FuncCacheElem * RooAbsCachedReal::createCache ( const RooArgSet nset  )  const [protected, virtual]

Definition at line 114 of file RooAbsCachedReal.cxx.

References FuncCacheElem.

Referenced by getCache().

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

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

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

virtual void RooAbsCachedReal::fillCacheObject ( FuncCacheElem cache  )  const [protected, pure virtual]

Referenced by getCache().

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

Definition at line 225 of file RooAbsCachedReal.cxx.

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

Referenced by RooAbsCachedReal::FuncCacheElem::FuncCacheElem().

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

Definition at line 96 of file RooAbsCachedReal.h.

References _disableCache.

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

Reimplemented from RooAbsReal.

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

Definition at line 33 of file RooAbsCachedReal.h.

References kTRUE.

void RooAbsCachedReal::setInterpolationOrder ( Int_t  order  ) 

Int_t RooAbsCachedReal::getInterpolationOrder (  )  const [inline]

Definition at line 39 of file RooAbsCachedReal.h.

References _ipOrder.

virtual Bool_t RooAbsCachedReal::forceAnalyticalInt ( const RooAbsArg  )  const [inline, virtual]

Reimplemented from RooAbsReal.

Definition at line 44 of file RooAbsCachedReal.h.

References kTRUE.

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

Reimplemented from RooAbsReal.

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

Reimplemented from RooAbsReal.

FuncCacheElem* RooAbsCachedReal::getCache ( const RooArgSet nset  )  const [protected]

void RooAbsCachedReal::clearCacheObject ( FuncCacheElem cache  )  const [protected]

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

Definition at line 77 of file RooAbsCachedReal.h.

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

Definition at line 80 of file RooAbsCachedReal.h.

virtual FuncCacheElem* RooAbsCachedReal::createCache ( const RooArgSet nset  )  const [protected, virtual]

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

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

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

virtual void RooAbsCachedReal::fillCacheObject ( FuncCacheElem cache  )  const [protected, pure virtual]

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

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

Definition at line 96 of file RooAbsCachedReal.h.

References _disableCache.


Friends And Related Function Documentation

FuncCacheElem [friend]

Definition at line 79 of file RooAbsCachedReal.h.

Referenced by createCache().


Member Data Documentation

RooObjCacheManager RooAbsCachedReal::_cacheMgr [mutable, protected]

Definition at line 90 of file RooAbsCachedReal.h.

Referenced by getCache(), and setInterpolationOrder().

Int_t RooAbsCachedReal::_ipOrder [protected]

Definition at line 93 of file RooAbsCachedReal.h.

Referenced by getInterpolationOrder(), and setInterpolationOrder().

std::map<Int_t,std::pair<const RooArgSet*,const RooArgSet*> > RooAbsCachedReal::_anaIntMap [mutable, protected]

Definition at line 101 of file RooAbsCachedReal.h.

Referenced by analyticalIntegralWN(), and getAnalyticalIntegralWN().

Bool_t RooAbsCachedReal::_disableCache [private]

Map for analytical integration codes.

Definition at line 106 of file RooAbsCachedReal.h.

Referenced by disableCache(), and getVal().

std::map<Int_t,std::pair<const RooArgSet*,const RooArgSet*> > RooAbsCachedReal::_anaIntMap [mutable, protected]

Definition at line 101 of file RooAbsCachedReal.h.


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