12 #ifndef ROOSTATS_PdfProposal 13 #define ROOSTATS_PdfProposal 19 #ifndef ROOSTATS_ProposalFunction 26 #ifndef ROO_MSG_SERVICE 128 std::map<RooRealVar*, RooAbsReal*>::iterator it;
129 for (it =
fMap.begin(); it !=
fMap.end(); it++)
130 std::cout << it->first->GetName() <<
" => " << it->second->GetName() << std::endl;
140 coutE(
Eval) <<
"Warning: Requested non-positive cache size: " <<
141 size <<
". Cache size unchanged." << std::endl;
160 std::map<RooRealVar*, RooAbsReal*>
fMap;
161 std::map<RooRealVar*, RooAbsReal*>::iterator
fIt;
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
virtual const RooAbsPdf * GetPdf() const
Get the PDF is the proposal density function.
virtual Bool_t Equals(RooArgSet &x1, RooArgSet &x2)
whether we own the proposal density function
virtual void printMappings()
static const double x2[5]
virtual Double_t GetProposalDensity(RooArgSet &x1, RooArgSet &x2)
Return the probability of proposing the point x1 given the starting point x2.
#define ClassDef(name, id)
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual void SetOwnsPdf(Bool_t ownsPdf)
set whether we own the PDF that serves as the proposal density function By default, when constructed, PdfProposal does NOT own the PDF.
virtual void AddMapping(RooRealVar &proposalParam, RooAbsReal &update)
specify a mapping between a parameter of the proposal function and a parameter of interest...
Int_t fCacheSize
the last point we were at
std::map< RooRealVar *, RooAbsReal * >::iterator fIt
map of values in pdf to update
RooRealVar represents a fundamental (non-derived) real valued object.
RooDataSet * fCache
our position in the cached proposal data set
virtual void SetCacheSize(Int_t size)
Set how many points to generate each time we propose from a new point Default (and minimum) is 1...
RooArgSet fLastX
pdf iterator
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
RooDataSet is a container class to hold unbinned data.
Bool_t fOwnsPdf
pointers to master variables needed for updates
Namespace for the RooStats classes.
virtual void Propose(RooArgSet &xPrime, RooArgSet &x)
Populate xPrime with a new proposed point.
static const double x1[5]
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgSet fMaster
the cached proposal data set
PdfProposal is a concrete implementation of the ProposalFunction interface.
std::map< RooRealVar *, RooAbsReal * > fMap
the proposal density function
virtual void SetPdf(RooAbsPdf &pdf)
Set the PDF to be the proposal density function.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual Bool_t IsSymmetric(RooArgSet &x1, RooArgSet &x2)
Determine whether or not the proposal density is symmetric for points x1 and x2 - that is...
Int_t fCachePosition
how many points to generate each time