60 MCMCCalculator::MCMCCalculator() :
133 if (a < 0 || a > 1) {
135 <<
"Fraction must be in the range [0, 1]. " 136 << a <<
"is not allowed." << endl;
155 <<
"Test size/Confidence level not set. Returning NULL." << endl;
160 bool useDefaultPropFunc = (
fPropFunc == 0);
173 delete constrainedParams;
180 if (dynamic_cast<PdfProposal*>(
fPropFunc)) {
198 TString
name = TString(
"MCMCInterval_") + TString(
GetName() );
215 if (useDefaultPropFunc)
delete fPropFunc;
216 if (usePriorPdf)
delete prodPdf;
virtual RooAbsReal * createNLL(RooAbsData &data, const RooLinkedList &cmdList)
Construct representation of -log(L) of PDFwith given dataset.
virtual const char * GetName() const
Returns name of object.
virtual void SetSign(enum FunctionSign sign)
MCMCCalculator()
default constructor
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
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...
virtual void SetNumBurnInSteps(Int_t numBurnInSteps)
set the number of steps in the chain to discard as burn-in, starting from the first ...
RooProdPdf is an efficient implementation of a product of PDFs of the form.
virtual void SetAxes(RooArgList &axes)
Set which parameters go on which axis.
virtual void SetType(enum FunctionType type)
virtual MarkovChain * ConstructChain()
void SetupBasicUsage()
Constructor for automatic configuration with basic settings.
This class uses the Metropolis-Hastings algorithm to construct a Markov Chain of data points using Mo...
virtual void SetParameters(const RooArgSet &set)
virtual void SetNumIters(Int_t numIters)
virtual void SetEpsilon(Double_t epsilon)
set the acceptable level or error for Keys interval determination
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
virtual void SetFunction(RooAbsReal &function)
RooAbsPdf * GetPriorPdf() const
get parameters prior pdf (return NULL if not existing)
const RooArgSet * GetConditionalObservables() const
get RooArgSet for conditional observables (return NULL if not existing)
virtual void SetProposalFunction(ProposalFunction &proposalFunction)
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) ...
virtual void SetIntervalType(enum IntervalType intervalType)
Set the type of interval to find.
virtual void SetChainParameters(const RooArgSet &set)
virtual void SetLeftSideTailFraction(Double_t a)
set the left-side tail fraction for a tail-fraction interval
RooAbsData is the common abstract base class for binned and unbinned datasets.
virtual void SetConfidenceLevel(Double_t cl)
set the desired confidence level (see GetActualConfidenceLevel()) Note: calling this function trigger...
void SetBins(const RooAbsCollection &coll, Int_t numBins) const
virtual void SetUseKeys(Bool_t useKeys)
set whether to use kernel estimation to determine the interval
Stores the steps in a Markov Chain of points.
Namespace for the RooStats classes.
RooAbsPdf * GetPdf() const
get model PDF (return NULL if pdf has not been specified or does not exist)
const RooArgSet * GetParametersOfInterest() const
get RooArgSet containing the parameter of interest (return NULL if not existing)
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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...
RooArgSet fConditionalObs
ProposalFunction * fPropFunc
enum MCMCInterval::IntervalType fIntervalType
PdfProposal is a concrete implementation of the ProposalFunction interface.
void RemoveConstantParameters(RooArgSet *set)
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual MCMCInterval * GetInterval() const
Main interface to get a ConfInterval.
virtual void SetDelta(Double_t delta)
kbelasco: The inner-workings of the class really should not be exposed like this in a comment...
const RooArgSet * GetNuisanceParameters() const
get RooArgSet containing the nuisance parameters (return NULL if not existing)
virtual void SetLeftSideTailFraction(Double_t a)
Set the left side tail fraction.
MCMCInterval is a concrete implementation of the RooStats::ConfInterval interface.
RooCmdArg ConditionalObservables(const RooArgSet &set)
Bayesian Calculator estimating an interval or a credible region using the Markov-Chain Monte Carlo me...
virtual void SetModel(const ModelConfig &model)
Set the Model.
RooCmdArg Constrain(const RooArgSet ¶ms)
virtual void SetUseSparseHist(Bool_t useSparseHist)
set whether to use a sparse histogram.