Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsSelfCachedPdf.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * *
4 * Copyright (c) 2000-2005, Regents of the University of California *
5 * and Stanford University. All rights reserved. *
6 * *
7 * Redistribution and use in source and binary forms, *
8 * with or without modification, are permitted according to the terms *
9 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
10 *****************************************************************************/
11
12#ifndef ROOABSSELFCACHEDPDF
13#define ROOABSSELFCACHEDPDF
14
15#include "RooAbsCachedPdf.h"
16#include "RooRealProxy.h"
17#include "RooAbsReal.h"
18#include "RooHistPdf.h"
19
20
22public:
23
25 RooAbsSelfCachedPdf(const char *name, const char *title, Int_t ipOrder=0);
26 RooAbsSelfCachedPdf(const RooAbsSelfCachedPdf& other, const char* name=nullptr) ;
27 ~RooAbsSelfCachedPdf() override ;
28
29protected:
30
31 const char* inputBaseName() const override {
32 // Use own name as base name for caches
33 return GetName() ;
34 }
35 RooFit::OwningPtr<RooArgSet> actualObservables(const RooArgSet& nset) const override ;
36 RooFit::OwningPtr<RooArgSet> actualParameters(const RooArgSet& nset) const override ;
37 void fillCacheObject(PdfCacheElem& cache) const override ;
38
39private:
40
41 ClassDefOverride(RooAbsSelfCachedPdf,0) // Abstract base class for self-caching p.d.f.s
42};
43
44#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
RooAbsCachedPdf is the abstract base class for p.d.f.s that need or want to cache their evaluate() ou...
RooAbsSelfCachedPdf is an abstract base class for probability density functions whose output is cache...
void fillCacheObject(PdfCacheElem &cache) const override
Fill cache with sampling of p.d.f as defined by the evaluate() implementation.
RooFit::OwningPtr< RooArgSet > actualParameters(const RooArgSet &nset) const override
Defines parameters on which cache contents depends.
const char * inputBaseName() const override
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 ...
~RooAbsSelfCachedPdf() override
Destructor.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
const char * GetName() const override
Returns name of object.
Definition TNamed.h:47
T * OwningPtr
An alias for raw pointers for indicating that the return type of a RooFit function is an owning point...
Definition Config.h:43