100 coutE(
Eval) <<
"Critical members unintialized: parameters, proposal " <<
101 " function, or (log) likelihood function" << endl;
105 coutE(
Eval) <<
"Please set type and sign of your function using "
106 <<
"MetropolisHastings::SetType() and MetropolisHastings::SetSign()" <<
125 Double_t xL = 0.0, xPrimeL = 0.0,
a = 0.0;
142 bool hadEvalError =
true;
152 while (i < 1000 && hadEvalError) {
162 hadEvalError =
false;
167 hadEvalError =
false;
170 hadEvalError =
false;
175 coutE(
Eval) <<
"Problem finding a good starting point in " <<
176 "MetropolisHastings::ConstructChain() " << endl;
185 hadEvalError =
false;
251 coutI(
Eval) <<
"Proposal acceptance rate: " <<
253 coutI(
Eval) <<
"Number of steps in chain: " << numAccepted << endl;
280 if (-1.0 * rand >=
a)
virtual RooAbsArg * addClone(const RooAbsArg &var, Bool_t silent=kFALSE)
Add a clone of the specified argument to list.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
static Int_t numEvalErrors()
Return the number of logged evaluation errors since the last clearing.
static void setEvalErrorLoggingMode(ErrorLoggingMode m)
Set evaluation error logging mode.
static void clearEvalErrorLog()
Clear the stack of evaluation error messages.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
static RooMsgService & instance()
Return reference to singleton instance.
void setGlobalKillBelow(RooFit::MsgLevel level)
RooFit::MsgLevel globalKillBelow() const
static Double_t infinity()
Return internal infinity representation.
static Double_t uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
Stores the steps in a Markov Chain of points.
virtual void Add(RooArgSet &entry, Double_t nllValue, Double_t weight=1.0)
safely add an entry to the chain
virtual void SetParameters(RooArgSet ¶meters)
set which of your parameters this chain should store
virtual Int_t Size() const
get the number of steps in the chain
This class uses the Metropolis-Hastings algorithm to construct a Markov Chain of data points using Mo...
virtual void SetProposalFunction(ProposalFunction &proposalFunction)
virtual Bool_t ShouldTakeStep(Double_t d)
virtual void SetParameters(const RooArgSet &set)
virtual MarkovChain * ConstructChain()
virtual Double_t CalcNLL(Double_t xL)
ProposalFunction * fPropFunc
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
virtual void Propose(RooArgSet &xPrime, RooArgSet &x)=0
Populate xPrime with the new proposed point, possibly based on the current point x.
virtual Double_t GetProposalDensity(RooArgSet &x1, RooArgSet &x2)=0
Return the probability of proposing the point x1 given the starting point x2.
virtual Bool_t IsSymmetric(RooArgSet &x1, RooArgSet &x2)=0
Determine whether or not the proposal density is symmetric for points x1 and x2 - that is,...
Mother of all ROOT objects.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
MsgLevel
Verbosity level for RooMsgService::StreamConfig in RooMsgService.
Namespace for the RooStats classes.
void SetParameters(const RooArgSet *desiredVals, RooArgSet *paramsToChange)
void RandomizeCollection(RooAbsCollection &set, Bool_t randomizeConstants=kTRUE)