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:
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.
virtual | ~CombinedCalculator() |
static TClass* | Class() |
virtual Double_t | ConfidenceLevel() const |
virtual RooStats::HypoTestResult* | GetHypoTest() const |
virtual RooStats::ConfInterval* | GetInterval() const |
virtual void | RooStats::HypoTestCalculator::Initialize(RooAbsData& data, RooAbsPdf& commonPdf, RooArgSet& nullParameters, RooArgSet& alternateParameters, RooArgSet* nuisanceParameters = 0, RooAbsPdf* nuisancePdf = 0) |
virtual void | RooStats::HypoTestCalculator::Initialize(RooAbsData& data, RooAbsPdf& nullPdf, RooAbsPdf& alternatePdf, RooArgSet* nullParameters = 0, RooArgSet* alternateParameters = 0, RooArgSet* nuisanceParameters = 0, RooAbsPdf* nuisancePdf = 0) |
virtual void | RooStats::HypoTestCalculator::Initialize(RooWorkspace& ws, const char* data, const char* commonPdf, RooArgSet& nullParameters, RooArgSet& alternateParameters, RooArgSet* nuisanceParameters = 0, const char* nuisancePdf = 0) |
virtual void | RooStats::HypoTestCalculator::Initialize(RooWorkspace& ws, const char* data, const char* nullPdf, const char* alternatePdf, RooArgSet* nullParameters = 0, RooArgSet* alternateParameters = 0, RooArgSet* nuisanceParameters = 0, const char* nuisancePdf = 0) |
virtual TClass* | IsA() const |
RooStats::IntervalCalculator& | RooStats::IntervalCalculator::operator=(const RooStats::IntervalCalculator&) |
virtual void | SetAlternateParameters(RooArgSet& set) |
virtual void | SetAlternatePdf(RooAbsPdf& pdf) |
virtual void | SetAlternatePdf(const char* name) |
virtual void | SetCommonPdf(RooAbsPdf& pdf) |
virtual void | SetCommonPdf(const char* name) |
virtual void | SetConfidenceLevel(Double_t cl) |
virtual void | SetData(RooAbsData& data) |
virtual void | SetData(const char* name) |
virtual void | SetNuisanceParameters(RooArgSet& set) |
virtual void | RooStats::HypoTestCalculator::SetNuisancePdf(const char*) |
virtual void | RooStats::HypoTestCalculator::SetNuisancePdf(RooAbsPdf&) |
virtual void | SetNullParameters(RooArgSet& set) |
virtual void | SetNullPdf(RooAbsPdf& pdf) |
virtual void | SetNullPdf(const char* name) |
virtual void | SetParameters(RooArgSet& set) |
virtual void | SetPdf(RooAbsPdf& pdf) |
virtual void | SetPdf(const char* name) |
virtual void | SetSize(Double_t size) |
virtual void | SetWorkspace(RooWorkspace& ws) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual Double_t | Size() const |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
RooArgSet* | fAlternateParams | RooArgSet specifying alternate parameters for hypothesis test |
const char* | fDataName | name of data set in workspace |
RooArgSet* | fNuisParams | RooArgSet specifying nuisance parameters for interval |
RooArgSet* | fNullParams | RooArgSet specifying null parameters for hypothesis test |
Bool_t | fOwnsWorkspace | |
RooArgSet* | fPOI | RooArgSet specifying parameters of interest for interval |
const char* | fPdfName | name of common PDF in workspace |
Double_t | fSize | size of the test (eg. specified rate of Type I error) |
RooWorkspace* | fWS | a workspace that owns all the components to be used by the calculator |
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
{fSize = 1.-cl;}
Set the Pdf, add to the the workspace if not already there
{ SetPdf(pdf);}
Set the Pdf, add to the the workspace if not already there
{ SetPdf(pdf);}
specify the nuisance parameters (eg. the rest of the parameters)
{fNuisParams = &set;}
from HypoTestCalculator set the PDF for the null hypothesis. Needs to be the common one
{SetPdf(name);}
set a common PDF for both the null and alternate hypotheses
{SetPdf(name);}
set parameter values for the null if using a common PDF
{SetPdf(name);}
set parameter values for the alternate if using a common PDF
{fAlternateParams = &set;}