11 #ifndef ROOSTATS_BayesianCalculator 12 #define ROOSTATS_BayesianCalculator 47 const RooArgSet* nuisanceParameters = 0 );
virtual void SetData(RooAbsData &data)
Set the DataSet ( add to the the workspace if not already there ?)
RooAbsPdf * GetPosteriorPdf() const
Build and return the posterior pdf (i.e posterior function normalized to all range of poi) Note that ...
ROOT::Math::IGenFunction * fPosteriorFunction
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
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...
IntervalCalculator is an interface class for a tools which produce RooStats ConfIntervals.
void SetScanOfPosterior(int nbin=100)
void SetIntegrationType(const char *type)
set the integration type (possible type are) :
double GetMode() const
Returns the value of the parameter for the point in parameter-space that is the most likely...
void SetBrfPrecision(double precision)
virtual void SetNuisanceParameters(const RooArgSet &set)
virtual void SetParameters(const RooArgSet &set)
#define ClassDef(name, id)
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
The TNamed class is the base class for all named ROOT classes.
virtual void SetNumIters(Int_t numIters)
void ApproximatePosterior() const
approximate posterior in nbins using a TF1 scan the poi values and evaluate the posterior at each poi...
RooPlot * GetPosteriorPlot(bool norm=false, double precision=0.01) const
return a RooPlot with the posterior and the credibility region NOTE: User takes ownership of the retu...
void ClearAll() const
clear all cached pdf objects
RooAbsReal * fIntegratedLikelihood
void ComputeIntervalUsingRooFit(double c1, double c2) const
internal function compute the interval using RooFit
virtual void SetConfidenceLevel(Double_t cl)
set the confidence level for the interval (e.g. 0.95 for a 95% Confidence Interval) ...
void SetShortestInterval()
void SetLeftSideTailFraction(Double_t leftSideFraction)
virtual Double_t ConfidenceLevel() const
Get the Confidence level for the test.
RooAbsData is the common abstract base class for binned and unbinned datasets.
A RooPlot is a plot frame and a container for graphics objects within that frame. ...
virtual void SetModel(const ModelConfig &model)
set the model to use The model pdf, prior pdf, parameter of interest and nuisances will be taken acco...
void ComputeShortestInterval() const
compute the shortest interval
Namespace for the RooStats classes.
RooAbsReal * GetPosteriorFunction() const
Build and return the posterior function (not normalized) as a RooAbsReal the posterior is obtained fr...
void ComputeIntervalFromCdf(double c1, double c2) const
internal function compute the interval using Cdf integration
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual void SetPriorPdf(RooAbsPdf &pdf)
RooArgSet fConditionalObs
virtual void SetConditionalObservables(const RooArgSet &set)
RooArgSet fNuisanceParameters
virtual void SetTestSize(Double_t size)
set the size of the test (rate of Type I error) ( e.g. 0.05 for a 95% Confidence Interval) ...
RooAbsPdf * fPosteriorPdf
BayesianCalculator()
default constructor
SimpleInterval is a concrete implementation of the ConfInterval interface.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
virtual Double_t Size() const
Get the size of the test (eg. rate of Type I error)
virtual ~BayesianCalculator()
virtual SimpleInterval * GetInterval() const
Compute the interval.
void ComputeIntervalFromApproxPosterior(double c1, double c2) const
compute the interval using the approximate posterior function
void ForceNuisancePdf(RooAbsPdf &pdf)
double norm(double *x, double *p)
BayesianCalculator is a concrete implementation of IntervalCalculator, providing the computation of a...