48 pdf(
"pdf",
"pdf",this,_pdf),
49 _cacheObs(
"cacheObs",
"cacheObs",this,false,false)
70 pdf(
"pdf",
"pdf",this,_pdf),
71 _cacheObs(
"cacheObs",
"cacheObs",this,false,false)
83 pdf(
"pdf",this,other.pdf),
84 _cacheObs(
"cacheObs",this,other._cacheObs)
109 coutP(Eval) <<
"RooCachedPdf::fillCacheObject(" <<
GetName() <<
") filling multi-dimensional cache" ;
RooFit::OwningPtr< RooArgSet > getParameters(const RooAbsData *data, bool stripDisconnected=true) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
RooFit::OwningPtr< RooArgSet > getObservables(const RooArgSet &set, bool valueOnly=true) const
Given a set of possible observables, return the observables that this PDF depends on.
Abstract base class for p.d.f.s that need or want to cache their evaluate() output in a RooHistPdf de...
Int_t getSize() const
Return the number of elements in the collection.
Abstract interface for all probability density functions.
RooDataHist * fillDataHist(RooDataHist *hist, const RooArgSet *nset, double scaleFactor, bool correctForBinVolume=false, bool showProgress=false) const
Fill a RooDataHist with values sampled from this function at the bin centers.
virtual void preferredObservableScanOrder(const RooArgSet &obs, RooArgSet &orderedObs) const
Interface method for function objects to indicate their preferred order of observables for scanning t...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooCachedPdf is an implementation of RooAbsCachedPdf that can cache any external RooAbsPdf input func...
RooRealProxy pdf
Proxy to p.d.f being cached.
RooSetProxy _cacheObs
Observable to be cached.
RooFit::OwningPtr< RooArgSet > actualObservables(const RooArgSet &nset) const override
If this pdf is operated with a fixed set of observables, return the subset of the fixed observables t...
RooFit::OwningPtr< RooArgSet > actualParameters(const RooArgSet &nset) const override
If this p.d.f is operated with a fixed set of observables, return all variables of the external input...
void preferredObservableScanOrder(const RooArgSet &obs, RooArgSet &orderedObs) const override
Defer preferred scan order to cached pdf preference.
~RooCachedPdf() override
Destructor.
void fillCacheObject(PdfCacheElem &cachePdf) const override
Update contents of cache histogram by resampling the input p.d.f.
bool add(const RooAbsArg &var, bool valueServer, bool shapeServer, bool silent)
Overloaded RooCollection_t::add() method insert object into set and registers object as server to own...
const RooArgSet * get() const override
Get bin centre of current bin.
void setUnitNorm(bool flag)
const T & arg() const
Return reference to object held in proxy.
const char * GetName() const override
Returns name of object.
T * OwningPtr
An alias for raw pointers for indicating that the return type of a RooFit function is an owning point...