11 #ifndef ROOSTATS_BayesianCalculator 12 #define ROOSTATS_BayesianCalculator 22 #ifndef ROOSTATS_IntervalCalculator 26 #ifndef ROOSTATS_SimpleInterval 95 const RooArgSet* nuisanceParameters = 0 );
virtual void SetData(RooAbsData &data)
Set the DataSet ( add to the the workspace if not already there ?)
RooAbsPdf * GetPosteriorPdf() const
return posterior pdf (object is managed by the BayesianCalculator class)
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)
use directly the approximate posterior function obtained by binning it in nbins by default the cdf is...
void SetIntegrationType(const char *type)
set the integration type (possible type are) :
double GetMode() const
return the mode (most probable value of the posterior function)
void SetBrfPrecision(double precision)
set the precision of the Root Finder
virtual void SetNuisanceParameters(const RooArgSet &set)
specify the nuisance parameters (eg. the rest of the parameters)
virtual void SetParameters(const RooArgSet &set)
specify the parameters of interest in the interval
#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)
set the number of iterations when running a MC integration algorithm If not set use default algorithm...
void ApproximatePosterior() const
RooPlot * GetPosteriorPlot(bool norm=false, double precision=0.01) const
get the plot with option to get it normalized
RooAbsReal * fIntegratedLikelihood
void ComputeIntervalUsingRooFit(double c1, double c2) const
virtual void SetConfidenceLevel(Double_t cl)
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval) ...
void SetShortestInterval()
set the Bayesian calculator to compute the shorest interval (default is central interval) to switch o...
void SetLeftSideTailFraction(Double_t leftSideFraction)
set the fraction of probability content on the left tail Central limits use 0.5 (default case) for up...
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 via the ModelConfig
void ComputeShortestInterval() const
Namespace for the RooStats classes.
RooAbsReal * GetPosteriorFunction() const
return posterior function (object is managed by the BayesianCalculator class)
void ComputeIntervalFromCdf(double c1, double c2) const
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
virtual void SetPriorPdf(RooAbsPdf &pdf)
Set only the Prior Pdf.
RooArgSet fConditionalObs
virtual void SetConditionalObservables(const RooArgSet &set)
set the conditional observables which will be used when creating the NLL so the pdf's will not be nor...
RooArgSet fNuisanceParameters
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) ...
RooAbsPdf * fPosteriorPdf
BayesianCalculator()
constructor
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()
destructor
virtual SimpleInterval * GetInterval() const
compute the interval.
void ComputeIntervalFromApproxPosterior(double c1, double c2) const
void ForceNuisancePdf(RooAbsPdf &pdf)
force the nuisance pdf when using the toy mc sampling
double norm(double *x, double *p)
BayesianCalculator is a concrete implementation of IntervalCalculator, providing the computation of a...