45 func(
"func",
"func",this,_func),
71 func(
"func",
"func",this,_func),
91 _cacheObs(
"cacheObs",this,other._cacheObs),
92 _useCdfBoundaries(other._useCdfBoundaries),
93 _cacheSource(other._cacheSource)
135 while((arg=iter.
next()))
if (dynamic_cast<RooAbsCategory*>(arg)) ++nCat;
137 coutP(
Eval) <<
"RooCachedReal::fillCacheObject(" <<
GetName() <<
") filling "
138 << nCat <<
" + " << nDim-nCat <<
" dimensional cache (" << cache.
hist()->
numEntries() <<
" points)" <<endl;
RooFIter fwdIterator() const
RooArgSet * getObservables(const RooArgSet &set, Bool_t valueOnly=kTRUE) const
void set(Double_t weight, Double_t wgtErr=-1)
Increment the weight of the bin enclosing the coordinates given by 'row' by the specified amount...
virtual RooAbsArg * cloneTree(const char *newname=0) const
Clone tree expression of objects.
virtual FuncCacheElem * createCache(const RooArgSet *nset) const
Interface function to create an internal cache object that represent each cached function configurati...
virtual RooArgSet * actualParameters(const RooArgSet &nset) const
If this p.d.f is operated with a fixed set of observables, return all variables of the external input...
RooExpensiveObjectCache & expensiveObjectCache() const
const RooAbsReal & arg() const
virtual const RooArgSet * get() const
virtual ~RooCachedReal()
Destructor.
virtual void fillCacheObject(FuncCacheElem &cacheFunc) const
Update contents of cache histogram by resampling the input function.
RooArgSet parameters() const
std::map< std::string, std::string >::const_iterator iter
Double_t getVal(const RooArgSet *set=0) const
RooChangeTracker * paramTracker()
RooArgSet * getParameters(const RooAbsData *data, Bool_t stripDisconnected=kTRUE) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
RooAbsReal * sourceClone()
virtual FuncCacheElem * createCache(const RooArgSet *nset) const
Interface function to create an internal cache object that represent each cached function configurati...
RooAbsCachedReal is the abstract base class for functions that need or want to cache their evaluate()...
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
void setCacheSource(Bool_t flag)
void setCdfBoundaries(Bool_t flag)
RooCachedReal is an implementation of RooAbsCachedReal that can cache any external RooAbsReal input f...
RooAbsArg * absArg() const
virtual const char * GetName() const
Returns name of object.
virtual void setExpensiveObjectCache(RooExpensiveObjectCache &cache)
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
double func(double *x, double *p)
virtual Int_t numEntries() const
Return the number of bins.
virtual RooArgSet * actualObservables(const RooArgSet &nset) const
If this pdf is operated with a fixed set of observables, return the subset of the fixed observables t...
void setSourceClone(RooAbsReal *newSource)
OperMode operMode() const
void setOperMode(OperMode mode, Bool_t recurseADirty=kTRUE)
Change cache operation mode to given mode.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Bool_t recursiveRedirectServers(const RooAbsCollection &newServerList, Bool_t mustReplaceAll=kFALSE, Bool_t nameChange=kFALSE, Bool_t recurseInNewSet=kTRUE)
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with...