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