11#ifndef RooFit_RooAbsSelfCachedReal_h
12#define RooFit_RooAbsSelfCachedReal_h
41template <
class Base_t>
55 return Base_t::GetName();
71template <
class Base_t>
80 clone2->disableCache(
true);
81 clone2->attachDataSet(cacheHist);
84 for (
int i = 0; i < cacheHist.
numEntries(); i++) {
86 double wgt = clone2->getVal(obs);
87 cacheHist.
set(i, wgt, 0.);
97template <
class Base_t>
103 for (
auto server : Base_t::servers()) {
104 serverSet.
add(*server);
117 for (
auto server : servers()) {
118 serverSet->
add(*server);
133template <
class Base_t>
139 for (
auto server : Base_t::servers()) {
140 serverSet->
add(*server);
144 serverSet->
remove(nset,
true,
true);
#define ClassDefOverride(name, id)
virtual bool remove(const RooAbsArg &var, bool silent=false, bool matchByNameOnly=false)
Remove the specified argument from our list.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
RooAbsArg * find(const char *name) const
Find object with given name in list.
virtual Int_t numEntries() const
Return number of entries in dataset, i.e., count unweighted entries.
Abstract base class for functions whose output is cached in terms of a histogram in all observables b...
RooFit::OwningPtr< RooArgSet > actualParameters(const RooArgSet &nset) const override
Defines parameters on which cache contents depends.
const char * inputBaseName() const override
void fillCacheObject(typename Base_t::CacheElem &cache) const override
Fill cache with sampling of function as defined by the evaluate() implementation.
RooAbsSelfCached(const RooAbsSelfCached &other, const char *name=nullptr)
Copy constructor.
RooFit::OwningPtr< RooArgSet > actualObservables(const RooArgSet &nset) const override
Defines observables to be cached, given a set of user defined observables Returns the subset of nset ...
RooAbsSelfCached(const char *name, const char *title, int ipOrder=0)
Constructor.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
RooArgSet * selectCommon(const RooAbsCollection &refColl) const
Use RooAbsCollection::selecCommon(), but return as RooArgSet.
Container class to hold N-dimensional binned data.
void set(std::size_t binNumber, double weight, double wgtErr)
Set bin content of bin that was last loaded with get(std::size_t).
const RooArgSet * get() const override
Get bin centre of current bin.
T * OwningPtr
An alias for raw pointers for indicating that the return type of a RooFit function is an owning point...