CombinedCalculator is an interface class for a tools which can produce both RooStats HypoTestResults and ConfIntervals.
The interface currently assumes that any such calculator can be configured by specifying:
The interface allows one to pass the model, data, and parameters via a workspace and then specify them with names. The interface also allows one to pass the model, data, and parameters without a workspace (which is created internally).
After configuring the calculator, one only needs to ask GetHypoTest() (which will return a HypoTestResult pointer) or GetInterval() (which will return an ConfInterval pointer).
The concrete implementations of this interface should deal with the details of how the nuisance parameters are dealt with (eg. integration vs. profiling) and which test-statistic is used (perhaps this should be added to the interface).
The motivation for this interface is that we hope to be able to specify the problem in a common way for several concrete calculators.
Definition at line 62 of file CombinedCalculator.h.
Public Member Functions | |
CombinedCalculator () | |
CombinedCalculator (RooAbsData &data, const ModelConfig &model, double size=0.05) | |
constructor from data and model configuration | |
CombinedCalculator (RooAbsData &data, RooAbsPdf &pdf, const RooArgSet ¶msOfInterest, double size=0.05, const RooArgSet *nullParams=nullptr, const RooArgSet *altParams=nullptr, const RooArgSet *nuisParams=nullptr) | |
~CombinedCalculator () override | |
destructor. | |
double | ConfidenceLevel () const override |
Get the Confidence level for the test. | |
HypoTestResult * | GetHypoTest () const override=0 |
main interface to get a HypoTestResult, pure virtual | |
ConfInterval * | GetInterval () const override=0 |
Main interface to get a ConfInterval, pure virtual. | |
TClass * | IsA () const override |
void | SetAlternateModel (const ModelConfig &) override |
Set the model for the alternate hypothesis. | |
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 | |
void | SetConfidenceLevel (double cl) override |
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval) | |
void | SetData (RooAbsData &data) override |
Set the DataSet, add to the workspace if not already there. | |
virtual void | SetGlobalObservables (const RooArgSet &set) |
set global observables needed for computing the NLL | |
void | SetModel (const ModelConfig &model) override |
set the model (in this case can set only the parameters for the null hypothesis) | |
virtual void | SetNuisanceParameters (const RooArgSet &set) |
specify the nuisance parameters (eg. the rest of the parameters) | |
void | SetNullModel (const ModelConfig &) override |
Set the model for the null hypothesis. | |
virtual void | SetNullParameters (const RooArgSet &set) |
set parameter values for the null if using a common PDF | |
virtual void | SetParameters (const RooArgSet &set) |
specify the parameters of interest in the interval | |
virtual void | SetPdf (RooAbsPdf &pdf) |
Set the Pdf. | |
void | SetTestSize (double size) override |
set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval) | |
double | Size () const override |
Get the size of the test (eg. rate of Type I error) | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from RooStats::IntervalCalculator | |
virtual | ~IntervalCalculator () |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from RooStats::HypoTestCalculator | |
virtual | ~HypoTestCalculator () |
virtual void | SetCommonModel (const ModelConfig &model) |
Set a common model for both the null and alternate, add to the workspace if not already there. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from RooStats::IntervalCalculator | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from RooStats::HypoTestCalculator | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Protected Member Functions | |
RooAbsData * | GetData () const |
RooAbsPdf * | GetPdf () const |
Protected Attributes | |
RooArgSet | fAlternateParams |
RooArgSet specifying alternate parameters for hypothesis test. | |
RooArgSet | fConditionalObs |
RooArgSet specifying the conditional observables. | |
RooAbsData * | fData |
RooArgSet | fGlobalObs |
RooArgSet specifying the global observables. | |
RooArgSet | fNuisParams |
RooArgSet specifying nuisance parameters for interval. | |
RooArgSet | fNullParams |
RooArgSet specifying null parameters for hypothesis test. | |
RooAbsPdf * | fPdf |
RooArgSet | fPOI |
RooArgSet specifying parameters of interest for interval. | |
double | fSize |
size of the test (eg. specified rate of Type I error) | |
#include <RooStats/CombinedCalculator.h>
|
inline |
Definition at line 66 of file CombinedCalculator.h.
|
inline |
Definition at line 72 of file CombinedCalculator.h.
|
inline |
constructor from data and model configuration
Definition at line 86 of file CombinedCalculator.h.
|
inlineoverride |
destructor.
Definition at line 96 of file CombinedCalculator.h.
|
static |
|
inlinestaticconstexpr |
Definition at line 173 of file CombinedCalculator.h.
|
inlineoverridevirtual |
Get the Confidence level for the test.
Implements RooStats::IntervalCalculator.
Definition at line 110 of file CombinedCalculator.h.
|
inlinestatic |
Definition at line 173 of file CombinedCalculator.h.
|
inlineprotected |
Definition at line 159 of file CombinedCalculator.h.
|
overridepure virtual |
main interface to get a HypoTestResult, pure virtual
Implements RooStats::HypoTestCalculator.
Implemented in RooStats::ProfileLikelihoodCalculator.
|
overridepure virtual |
Main interface to get a ConfInterval, pure virtual.
Implements RooStats::IntervalCalculator.
Implemented in RooStats::ProfileLikelihoodCalculator.
|
inlineprotected |
Definition at line 158 of file CombinedCalculator.h.
|
inlineoverridevirtual |
Reimplemented from RooStats::IntervalCalculator.
Reimplemented in RooStats::ProfileLikelihoodCalculator.
Definition at line 173 of file CombinedCalculator.h.
|
inlineoverridevirtual |
Set the model for the alternate hypothesis.
Implements RooStats::HypoTestCalculator.
Definition at line 129 of file CombinedCalculator.h.
|
inlinevirtual |
set parameter values for the alternate if using a common PDF
Definition at line 147 of file CombinedCalculator.h.
|
inlinevirtual |
set conditional observables needed for computing the NLL
Definition at line 150 of file CombinedCalculator.h.
|
inlineoverridevirtual |
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
Implements RooStats::IntervalCalculator.
Definition at line 106 of file CombinedCalculator.h.
|
inlineoverridevirtual |
Set the DataSet, add to the workspace if not already there.
Implements RooStats::IntervalCalculator.
Definition at line 113 of file CombinedCalculator.h.
|
inlinevirtual |
set global observables needed for computing the NLL
Definition at line 153 of file CombinedCalculator.h.
|
inlineoverridevirtual |
set the model (in this case can set only the parameters for the null hypothesis)
Implements RooStats::IntervalCalculator.
Definition at line 118 of file CombinedCalculator.h.
|
inlinevirtual |
specify the nuisance parameters (eg. the rest of the parameters)
Definition at line 141 of file CombinedCalculator.h.
|
inlineoverridevirtual |
Set the model for the null hypothesis.
Implements RooStats::HypoTestCalculator.
Definition at line 127 of file CombinedCalculator.h.
|
inlinevirtual |
set parameter values for the null if using a common PDF
Definition at line 144 of file CombinedCalculator.h.
|
inlinevirtual |
specify the parameters of interest in the interval
Definition at line 138 of file CombinedCalculator.h.
|
inlinevirtual |
Set the Pdf.
Definition at line 135 of file CombinedCalculator.h.
|
inlineoverridevirtual |
set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
Implements RooStats::IntervalCalculator.
Definition at line 104 of file CombinedCalculator.h.
|
inlineoverridevirtual |
Get the size of the test (eg. rate of Type I error)
Implements RooStats::IntervalCalculator.
Definition at line 108 of file CombinedCalculator.h.
|
overridevirtual |
Reimplemented from RooStats::IntervalCalculator.
Reimplemented in RooStats::ProfileLikelihoodCalculator.
|
inline |
Definition at line 173 of file CombinedCalculator.h.
|
protected |
RooArgSet specifying alternate parameters for hypothesis test.
Definition at line 167 of file CombinedCalculator.h.
|
protected |
RooArgSet specifying the conditional observables.
Definition at line 169 of file CombinedCalculator.h.
|
protected |
Definition at line 164 of file CombinedCalculator.h.
|
protected |
RooArgSet specifying the global observables.
Definition at line 170 of file CombinedCalculator.h.
|
protected |
RooArgSet specifying nuisance parameters for interval.
Definition at line 168 of file CombinedCalculator.h.
|
protected |
RooArgSet specifying null parameters for hypothesis test.
Definition at line 166 of file CombinedCalculator.h.
|
protected |
Definition at line 163 of file CombinedCalculator.h.
|
protected |
RooArgSet specifying parameters of interest for interval.
Definition at line 165 of file CombinedCalculator.h.
|
protected |
size of the test (eg. specified rate of Type I error)
Definition at line 161 of file CombinedCalculator.h.