ROOT logo
ROOT » ROOFIT » ROOSTATS » RooStats::HypoTestCalculator

class RooStats::HypoTestCalculator

HypoTestCalculator is an interface class for a tools which produce RooStats HypoTestResults. The interface currently assumes that any hypothesis test calculator can be configured by specifying:

  • a model for the null,
  • a model for the alternate,
  • a data set,
  • a set of parameters of which specify the null (including values and const/non-const status), and
  • a set of parameters of which specify the alternate (including values and const/non-const status).
The interface allows one to pass the model, data, and parameters via a workspace and then specify them with names. The interface will be extended so that one does not need to use a workspace.

After configuring the calculator, one only needs to ask GetHypoTest, which will return a HypoTestResult 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.

Function Members (Methods)

    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

static TClass*Class()
virtual RooStats::HypoTestResult*GetHypoTest() const
virtual TClass*IsA() const
RooStats::HypoTestCalculator&operator=(const RooStats::HypoTestCalculator&)
virtual voidSetAlternateModel(const RooStats::ModelConfig& model)
virtual voidSetCommonModel(const RooStats::ModelConfig& model)
virtual voidSetData(RooAbsData& data)
virtual voidSetNullModel(const RooStats::ModelConfig& model)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

virtual ~HypoTestCalculator()
HypoTestResult* GetHypoTest() const
 main interface to get a HypoTestResult, pure virtual
void SetCommonModel(const RooStats::ModelConfig& model)
 Set a common model for both the null and alternate, add to the the workspace if not already there
SetNullModel(const RooStats::ModelConfig& model)
SetAlternateModel(const RooStats::ModelConfig& model)
void SetData(RooAbsData& data)
 Set the DataSet