11#ifndef ROOSTATS_CombinedCalculator
12#define ROOSTATS_CombinedCalculator
73 fPOI(paramsOfInterest)
112 fPdf = model.GetPdf();
113 if (model.GetParametersOfInterest())
SetParameters(*model.GetParametersOfInterest());
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual void SetNullParameters(const RooArgSet &set)
set parameter values for the null if using a common PDF
CombinedCalculator()=default
void SetModel(const ModelConfig &model) override
set the model (in this case can set only the parameters for the null hypothesis)
CombinedCalculator(RooAbsData &data, const ModelConfig &model, double size=0.05)
constructor from data and model configuration
void SetNullModel(const ModelConfig &) override
Set the model for the null hypothesis.
RooArgSet fNuisParams
RooArgSet specifying nuisance parameters for interval.
RooArgSet fNullParams
RooArgSet specifying null parameters for hypothesis test.
void SetTestSize(double size) override
set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
ConfInterval * GetInterval() const override=0
Main interface to get a ConfInterval, pure virtual.
virtual void SetGlobalObservables(const RooArgSet &set)
set global observables needed for computing the NLL
double Size() const override
Get the size of the test (eg. rate of Type I error).
RooArgSet fPOI
RooArgSet specifying parameters of interest for interval.
RooAbsData * GetData() const
double ConfidenceLevel() const override
Get the Confidence level for the test.
RooArgSet fGlobalObs
RooArgSet specifying the global observables.
CombinedCalculator(RooAbsData &data, RooAbsPdf &pdf, const RooArgSet ¶msOfInterest, double size=0.05, const RooArgSet *nullParams=nullptr, const RooArgSet *altParams=nullptr, const RooArgSet *nuisParams=nullptr)
virtual void SetParameters(const RooArgSet &set)
specify the parameters of interest in the interval
void SetData(RooAbsData &data) override
Set the DataSet, add to the workspace if not already there.
virtual void SetPdf(RooAbsPdf &pdf)
Set the Pdf.
RooAbsPdf * GetPdf() const
virtual void SetAlternateParameters(const RooArgSet &set)
set parameter values for the alternate if using a common PDF
virtual void SetConditionalObservables(const RooArgSet &set)
set conditional observables needed for computing the NLL
virtual void SetNuisanceParameters(const RooArgSet &set)
specify the nuisance parameters (eg. the rest of the parameters)
double fSize
size of the test (eg. specified rate of Type I error)
RooArgSet fConditionalObs
RooArgSet specifying the conditional observables.
void SetConfidenceLevel(double cl) override
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
HypoTestResult * GetHypoTest() const override=0
main interface to get a HypoTestResult, pure virtual
RooArgSet fAlternateParams
RooArgSet specifying alternate parameters for hypothesis test.
void SetAlternateModel(const ModelConfig &) override
Set the model for the alternate hypothesis.
ConfInterval is an interface class for a generic interval in the RooStats framework.
HypoTestCalculator is an interface class for a tools which produce RooStats HypoTestResults.
HypoTestResult is a base class for results from hypothesis tests.
IntervalCalculator is an interface class for a tools which produce RooStats ConfIntervals.
< A class that holds configuration information for a model using a workspace as a store
Namespace for the RooStats classes.