60MCMCCalculator::MCMCCalculator() :
136 if (a < 0 || a > 1) {
138 <<
"Fraction must be in the range [0, 1]. "
139 <<
a <<
"is not allowed." << endl;
158 <<
"Test size/Confidence level not set. Returning NULL." << endl;
163 bool useDefaultPropFunc = (
fPropFunc == 0);
176 delete constrainedParams;
218 if (useDefaultPropFunc)
delete fPropFunc;
219 if (usePriorPdf)
delete prodPdf;
RooArgSet * getParameters(const RooAbsData *data, Bool_t stripDisconnected=kTRUE) const
Create a list of leaf nodes in the arg tree starting with ourself as top node that don't match any of...
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual RooAbsReal * createNLL(RooAbsData &data, const RooLinkedList &cmdList)
Construct representation of -log(L) of PDFwith given dataset.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
RooProdPdf is an efficient implementation of a product of PDFs of the form.
Bayesian Calculator estimating an interval or a credible region using the Markov-Chain Monte Carlo me...
enum MCMCInterval::IntervalType fIntervalType
virtual MCMCInterval * GetInterval() const
Main interface to get a ConfInterval.
void SetBins(const RooAbsCollection &coll, Int_t numBins) const
void SetupBasicUsage()
Constructor for automatic configuration with basic settings.
MCMCCalculator()
default constructor
virtual void SetLeftSideTailFraction(Double_t a)
Set the left side tail fraction.
virtual void SetTestSize(Double_t size)
set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
RooArgSet fConditionalObs
virtual void SetModel(const ModelConfig &model)
Set the Model.
ProposalFunction * fPropFunc
MCMCInterval is a concrete implementation of the RooStats::ConfInterval interface.
virtual void SetAxes(RooArgList &axes)
Set which parameters go on which axis.
virtual void SetNumBurnInSteps(Int_t numBurnInSteps)
set the number of steps in the chain to discard as burn-in, starting from the first
virtual void SetDelta(Double_t delta)
kbelasco: The inner-workings of the class really should not be exposed like this in a comment,...
virtual void SetLeftSideTailFraction(Double_t a)
set the left-side tail fraction for a tail-fraction interval
virtual void SetConfidenceLevel(Double_t cl)
set the desired confidence level (see GetActualConfidenceLevel()) Note: calling this function trigger...
virtual void SetIntervalType(enum IntervalType intervalType)
Set the type of interval to find.
virtual void SetEpsilon(Double_t epsilon)
set the acceptable level or error for Keys interval determination
virtual void SetUseKeys(Bool_t useKeys)
set whether to use kernel estimation to determine the interval
virtual void SetUseSparseHist(Bool_t useSparseHist)
set whether to use a sparse histogram.
Stores the steps in a Markov Chain of points.
This class uses the Metropolis-Hastings algorithm to construct a Markov Chain of data points using Mo...
virtual void SetProposalFunction(ProposalFunction &proposalFunction)
virtual void SetChainParameters(const RooArgSet &set)
virtual void SetParameters(const RooArgSet &set)
virtual MarkovChain * ConstructChain()
virtual void SetNumIters(Int_t numIters)
virtual void SetType(enum FunctionType type)
virtual void SetFunction(RooAbsReal &function)
virtual void SetSign(enum FunctionSign sign)
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
const RooArgSet * GetConditionalObservables() const
get RooArgSet for conditional observables (return NULL if not existing)
const RooArgSet * GetGlobalObservables() const
get RooArgSet for global observables (return NULL if not existing)
const RooArgSet * GetParametersOfInterest() const
get RooArgSet containing the parameter of interest (return NULL if not existing)
const RooArgSet * GetNuisanceParameters() const
get RooArgSet containing the nuisance parameters (return NULL if not existing)
RooAbsPdf * GetPdf() const
get model PDF (return NULL if pdf has not been specified or does not exist)
RooAbsPdf * GetPriorPdf() const
get parameters prior pdf (return NULL if not existing)
PdfProposal is a concrete implementation of the ProposalFunction interface.
virtual const char * GetName() const
Returns name of object.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
RooCmdArg Constrain(const RooArgSet ¶ms)
RooCmdArg GlobalObservables(const RooArgSet &globs)
RooCmdArg ConditionalObservables(const RooArgSet &set)
Namespace for the RooStats classes.
void RemoveConstantParameters(RooArgSet *set)