102      for (
auto const *
r : static_range_cast<RooRealVar*>(
x1))
 
  103         if (
r->getVal() != 
x2.getRealValue(
r->GetName())) {
 
  121      if (
fMap.size() > 0) {
 
  123            fIt->first->setVal(
fIt->second->getVal(&
x));
 
  129   if (
fMap.size() > 0) {
 
  141            fIt->first->setVal(
fIt->second->getVal(&
x));
 
  179      fIt->first->setVal(
fIt->second->getVal(&
x2));
 
  199   fMap.insert(std::pair<RooRealVar*, RooAbsReal*>(&proposalParam, &
update));
 
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
Option_t Option_t TPoint TPoint const char x2
 
Option_t Option_t TPoint TPoint const char x1
 
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.
 
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
 
virtual RooAbsArg * addClone(const RooAbsArg &var, bool silent=false)
Add a clone of the specified argument to list.
 
RooAbsData is the common abstract base class for binned and unbinned datasets.
 
RooFit::OwningPtr< RooDataSet > generate(const RooArgSet &whatVars, Int_t nEvents, const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg::none(), const RooCmdArg &arg3=RooCmdArg::none(), const RooCmdArg &arg4=RooCmdArg::none(), const RooCmdArg &arg5=RooCmdArg::none())
See RooAbsPdf::generate(const RooArgSet&,const RooCmdArg&,const RooCmdArg&,const RooCmdArg&,...
 
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
 
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
const RooArgSet * get(Int_t index) const override
Return RooArgSet with coordinates of event 'index'.
 
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
 
RooArgSet fMaster
the cached proposal data set
 
bool IsSymmetric(RooArgSet &x1, RooArgSet &x2) override
Determine whether or not the proposal density is symmetric for points x1 and x2 - that is,...
 
virtual void AddMapping(RooRealVar &proposalParam, RooAbsReal &update)
specify a mapping between a parameter of the proposal function and a parameter of interest.
 
bool fOwnsPdf
pointers to master variables needed for updates
 
RooDataSet * fCache
our position in the cached proposal data set
 
virtual bool Equals(RooArgSet &x1, RooArgSet &x2)
whether we own the proposal density function
 
RooArgSet fLastX
pdf iterator
 
void Propose(RooArgSet &xPrime, RooArgSet &x) override
Populate xPrime with a new proposed point.
 
Int_t fCacheSize
the last point we were at
 
Int_t fCachePosition
how many points to generate each time
 
std::map< RooRealVar *, RooAbsReal * > fMap
the proposal density function
 
PdfProposal()
By default, PdfProposal does NOT own the PDF that serves as the proposal density function.
 
double GetProposalDensity(RooArgSet &x1, RooArgSet &x2) override
Return the probability of proposing the point x1 given the starting point x2.
 
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
 
Namespace for the RooStats classes.
 
void SetParameters(const RooArgSet *desiredVals, RooArgSet *paramsToChange)