Logo ROOT  
Reference Guide
RooStats::HypoTestCalculator Class Referenceabstract

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.

Definition at line 59 of file HypoTestCalculator.h.

Public Member Functions

virtual ~HypoTestCalculator ()
 
virtual HypoTestResultGetHypoTest () const =0
 main interface to get a HypoTestResult, pure virtual More...
 
virtual TClassIsA () const
 
virtual void SetAlternateModel (const ModelConfig &model)=0
 Set the model for the alternate hypothesis. More...
 
virtual void SetCommonModel (const ModelConfig &model)
 Set a common model for both the null and alternate, add to the the workspace if not already there. More...
 
virtual void SetData (RooAbsData &data)=0
 Set the DataSet. More...
 
virtual void SetNullModel (const ModelConfig &model)=0
 Set the model for the null hypothesis. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

#include <RooStats/HypoTestCalculator.h>

Inheritance diagram for RooStats::HypoTestCalculator:
[legend]

Constructor & Destructor Documentation

◆ ~HypoTestCalculator()

virtual RooStats::HypoTestCalculator::~HypoTestCalculator ( )
inlinevirtual

Definition at line 64 of file HypoTestCalculator.h.

Member Function Documentation

◆ Class()

static TClass * RooStats::HypoTestCalculator::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooStats::HypoTestCalculator::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t RooStats::HypoTestCalculator::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 84 of file HypoTestCalculator.h.

◆ DeclFileName()

static const char * RooStats::HypoTestCalculator::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 84 of file HypoTestCalculator.h.

◆ GetHypoTest()

virtual HypoTestResult * RooStats::HypoTestCalculator::GetHypoTest ( ) const
pure virtual

◆ IsA()

◆ SetAlternateModel()

virtual void RooStats::HypoTestCalculator::SetAlternateModel ( const ModelConfig model)
pure virtual

◆ SetCommonModel()

virtual void RooStats::HypoTestCalculator::SetCommonModel ( const ModelConfig model)
inlinevirtual

Set a common model for both the null and alternate, add to the the workspace if not already there.

Definition at line 70 of file HypoTestCalculator.h.

◆ SetData()

virtual void RooStats::HypoTestCalculator::SetData ( RooAbsData data)
pure virtual

◆ SetNullModel()

virtual void RooStats::HypoTestCalculator::SetNullModel ( const ModelConfig model)
pure virtual

◆ Streamer()

◆ StreamerNVirtual()

void RooStats::HypoTestCalculator::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 84 of file HypoTestCalculator.h.


The documentation for this class was generated from the following file: