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_t size=0.05) | |
constructor from data and model configuration More... | |
CombinedCalculator (RooAbsData &data, RooAbsPdf &pdf, const RooArgSet ¶msOfInterest, Double_t size=0.05, const RooArgSet *nullParams=0, const RooArgSet *altParams=0, const RooArgSet *nuisParams=0) | |
virtual | ~CombinedCalculator () |
destructor. More... | |
virtual Double_t | ConfidenceLevel () const |
Get the Confidence level for the test. More... | |
virtual HypoTestResult * | GetHypoTest () const =0 |
main interface to get a HypoTestResult, pure virtual More... | |
virtual ConfInterval * | GetInterval () const =0 |
Main interface to get a ConfInterval, pure virtual. More... | |
virtual void | SetAlternateModel (const ModelConfig &) |
virtual void | SetAlternateParameters (const RooArgSet &set) |
set parameter values for the alternate if using a common PDF More... | |
virtual void | SetConditionalObservables (const RooArgSet &set) |
set conditional observables needed for computing the NLL More... | |
virtual void | SetConfidenceLevel (Double_t cl) |
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval) More... | |
virtual void | SetData (RooAbsData &data) |
Set the DataSet, add to the the workspace if not already there. More... | |
virtual void | SetGlobalObservables (const RooArgSet &set) |
set global observables needed for computing the NLL More... | |
virtual void | SetModel (const ModelConfig &model) |
set the model (in this case can set only the parameters for the null hypothesis) More... | |
virtual void | SetNuisanceParameters (const RooArgSet &set) |
specify the nuisance parameters (eg. the rest of the parameters) More... | |
virtual void | SetNullModel (const ModelConfig &) |
virtual void | SetNullParameters (const RooArgSet &set) |
set parameter values for the null if using a common PDF More... | |
virtual void | SetParameters (const RooArgSet &set) |
specify the parameters of interest in the interval More... | |
virtual void | SetPdf (RooAbsPdf &pdf) |
Set the Pdf. More... | |
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) More... | |
virtual Double_t | Size () const |
Get the size of the test (eg. rate of Type I error) More... | |
Public Member Functions inherited from RooStats::IntervalCalculator | |
virtual | ~IntervalCalculator () |
virtual Double_t | ConfidenceLevel () const =0 |
Get the Confidence level for the test. More... | |
virtual ConfInterval * | GetInterval () const =0 |
Main interface to get a ConfInterval, pure virtual. More... | |
virtual void | SetConfidenceLevel (Double_t cl)=0 |
set the confidence level for the interval (e.g. 0.95 for a 95% Confidence Interval) More... | |
virtual void | SetData (RooAbsData &)=0 |
Set the DataSet ( add to the the workspace if not already there ?) More... | |
virtual void | SetModel (const ModelConfig &)=0 |
Set the Model. More... | |
virtual void | SetTestSize (Double_t size)=0 |
set the size of the test (rate of Type I error) ( e.g. 0.05 for a 95% Confidence Interval) More... | |
virtual Double_t | Size () const =0 |
Get the size of the test (eg. rate of Type I error) More... | |
Public Member Functions inherited from RooStats::HypoTestCalculator | |
virtual | ~HypoTestCalculator () |
virtual HypoTestResult * | GetHypoTest () const =0 |
virtual void | SetAlternateModel (const ModelConfig &model)=0 |
virtual void | SetCommonModel (const ModelConfig &model) |
virtual void | SetData (RooAbsData &data)=0 |
virtual void | SetNullModel (const ModelConfig &model)=0 |
Protected Member Functions | |
RooAbsData * | GetData () const |
RooAbsPdf * | GetPdf () const |
Protected Attributes | |
RooArgSet | fAlternateParams |
RooArgSet | fConditionalObs |
RooAbsData * | fData |
RooArgSet | fGlobalObs |
RooArgSet | fNuisParams |
RooArgSet | fNullParams |
RooAbsPdf * | fPdf |
RooArgSet | fPOI |
Double_t | fSize |
#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.
|
inlinevirtual |
destructor.
Definition at line 97 of file CombinedCalculator.h.
|
inlinevirtual |
Get the Confidence level for the test.
Implements RooStats::IntervalCalculator.
Definition at line 113 of file CombinedCalculator.h.
|
inlineprotected |
Definition at line 162 of file CombinedCalculator.h.
|
pure virtual |
main interface to get a HypoTestResult, pure virtual
Implements RooStats::HypoTestCalculator.
Implemented in RooStats::ProfileLikelihoodCalculator.
|
pure virtual |
Main interface to get a ConfInterval, pure virtual.
Implements RooStats::IntervalCalculator.
Implemented in RooStats::ProfileLikelihoodCalculator.
|
inlineprotected |
Definition at line 161 of file CombinedCalculator.h.
|
inlinevirtual |
Implements RooStats::HypoTestCalculator.
Definition at line 132 of file CombinedCalculator.h.
|
inlinevirtual |
set parameter values for the alternate if using a common PDF
Definition at line 150 of file CombinedCalculator.h.
|
inlinevirtual |
set conditional observables needed for computing the NLL
Definition at line 153 of file CombinedCalculator.h.
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
Implements RooStats::IntervalCalculator.
Definition at line 109 of file CombinedCalculator.h.
|
inlinevirtual |
Set the DataSet, add to the the workspace if not already there.
Implements RooStats::HypoTestCalculator.
Definition at line 116 of file CombinedCalculator.h.
|
inlinevirtual |
set global observables needed for computing the NLL
Definition at line 156 of file CombinedCalculator.h.
|
inlinevirtual |
set the model (in this case can set only the parameters for the null hypothesis)
Implements RooStats::IntervalCalculator.
Definition at line 121 of file CombinedCalculator.h.
|
inlinevirtual |
specify the nuisance parameters (eg. the rest of the parameters)
Definition at line 144 of file CombinedCalculator.h.
|
inlinevirtual |
Implements RooStats::HypoTestCalculator.
Definition at line 130 of file CombinedCalculator.h.
set parameter values for the null if using a common PDF
Definition at line 147 of file CombinedCalculator.h.
specify the parameters of interest in the interval
Definition at line 141 of file CombinedCalculator.h.
Set the Pdf.
Definition at line 138 of file CombinedCalculator.h.
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 107 of file CombinedCalculator.h.
|
inlinevirtual |
Get the size of the test (eg. rate of Type I error)
Implements RooStats::IntervalCalculator.
Definition at line 111 of file CombinedCalculator.h.
|
protected |
Definition at line 170 of file CombinedCalculator.h.
|
protected |
Definition at line 172 of file CombinedCalculator.h.
|
protected |
Definition at line 167 of file CombinedCalculator.h.
|
protected |
Definition at line 173 of file CombinedCalculator.h.
|
protected |
Definition at line 171 of file CombinedCalculator.h.
|
protected |
Definition at line 169 of file CombinedCalculator.h.
|
protected |
Definition at line 166 of file CombinedCalculator.h.
|
protected |
Definition at line 168 of file CombinedCalculator.h.
|
protected |
Definition at line 164 of file CombinedCalculator.h.