Logo ROOT  
Reference Guide
RooStats::FrequentistCalculator Class Reference

Does a frequentist hypothesis test.

Hypothesis Test Calculator using a full frequentist procedure for sampling the test statistic distribution. The nuisance parameters are fixed to their MLEs. The use of ToyMCSampler as the TestStatSampler is assumed.

Definition at line 31 of file FrequentistCalculator.h.

Public Member Functions

 FrequentistCalculator (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=0)
 
 ~FrequentistCalculator ()
 
const RooArgSetGetFitInfo () const
 
void SetConditionalMLEsAlt (const RooArgSet *c)
 set given nuisance parameters to a specific value that will be used instead of their profiled value for Alternate toys More...
 
void SetConditionalMLEsNull (const RooArgSet *c)
 set given nuisance parameters to a specific value that will be used instead of their profiled value for Null toys More...
 
void SetNToysInTails (int toysNull, int toysAlt)
 set least number of toys in tails More...
 
void SetToys (int toysNull, int toysAlt)
 set number of toys More...
 
void StoreFitInfo (bool val=true)
 
- Public Member Functions inherited from RooStats::HypoTestCalculatorGeneric
 HypoTestCalculatorGeneric (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=0)
 Constructor. More...
 
 ~HypoTestCalculatorGeneric ()
 
const ModelConfigGetAlternateModel (void) const
 
const RooAbsDataGetData (void) const
 
virtual HypoTestResultGetHypoTest () const
 inherited methods from HypoTestCalculator interface More...
 
const ModelConfigGetNullModel (void) const
 
TestStatSamplerGetTestStatSampler (void) const
 Returns instance of TestStatSampler. More...
 
virtual void SetAlternateModel (const ModelConfig &altModel)
 Set the model for the alternate hypothesis (S+B) More...
 
virtual void SetData (RooAbsData &data)
 Set the DataSet. More...
 
virtual void SetNullModel (const ModelConfig &nullModel)
 
void UseSameAltToys ()
 Set this for re-using always the same toys for alternate hypothesis in case of calls at different null parameter points This is useful to get more stable bands when running the HypoTest inversion. More...
 
- Public Member Functions inherited from RooStats::HypoTestCalculator
virtual ~HypoTestCalculator ()
 
virtual void SetCommonModel (const ModelConfig &model)
 

Protected Member Functions

void PostHook () const
 
int PreAltHook (RooArgSet *parameterPoint, double obsTestStat) const
 configure TestStatSampler for the Alt run More...
 
void PreHook () const
 
int PreNullHook (RooArgSet *parameterPoint, double obsTestStat) const
 configure TestStatSampler for the Null run More...
 
- Protected Member Functions inherited from RooStats::HypoTestCalculatorGeneric
virtual int CheckHook (void) const
 

Protected Attributes

const RooArgSetfConditionalMLEsAlt
 
const RooArgSetfConditionalMLEsNull
 
int fNToysAlt
 
int fNToysAltTail
 
int fNToysNull
 
int fNToysNullTail
 
- Protected Attributes inherited from RooStats::HypoTestCalculatorGeneric
const ModelConfigfAltModel
 
unsigned int fAltToysSeed
 
const RooAbsDatafData
 
TestStatSamplerfDefaultSampler
 
TestStatisticfDefaultTestStat
 
const ModelConfigfNullModel
 
TestStatSamplerfTestStatSampler
 

Private Attributes

RooArgSetfFitInfo
 
bool fStoreFitInfo
 

#include <RooStats/FrequentistCalculator.h>

Inheritance diagram for RooStats::FrequentistCalculator:
[legend]

Constructor & Destructor Documentation

◆ FrequentistCalculator()

RooStats::FrequentistCalculator::FrequentistCalculator ( const RooAbsData data,
const ModelConfig altModel,
const ModelConfig nullModel,
TestStatSampler sampler = 0 
)
inline

Definition at line 40 of file FrequentistCalculator.h.

◆ ~FrequentistCalculator()

RooStats::FrequentistCalculator::~FrequentistCalculator ( )
inline

Definition at line 58 of file FrequentistCalculator.h.

Member Function Documentation

◆ GetFitInfo()

const RooArgSet* RooStats::FrequentistCalculator::GetFitInfo ( ) const
inlinevirtual

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 93 of file FrequentistCalculator.h.

◆ PostHook()

void FrequentistCalculator::PostHook ( ) const
protectedvirtual

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 50 of file FrequentistCalculator.cxx.

◆ PreAltHook()

int FrequentistCalculator::PreAltHook ( RooArgSet parameterPoint,
double  obsTestStat 
) const
protectedvirtual

configure TestStatSampler for the Alt run

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 170 of file FrequentistCalculator.cxx.

◆ PreHook()

void FrequentistCalculator::PreHook ( ) const
protectedvirtual

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 38 of file FrequentistCalculator.cxx.

◆ PreNullHook()

int FrequentistCalculator::PreNullHook ( RooArgSet parameterPoint,
double  obsTestStat 
) const
protectedvirtual

configure TestStatSampler for the Null run

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 55 of file FrequentistCalculator.cxx.

◆ SetConditionalMLEsAlt()

void RooStats::FrequentistCalculator::SetConditionalMLEsAlt ( const RooArgSet c)
inline

set given nuisance parameters to a specific value that will be used instead of their profiled value for Alternate toys

Definition at line 82 of file FrequentistCalculator.h.

◆ SetConditionalMLEsNull()

void RooStats::FrequentistCalculator::SetConditionalMLEsNull ( const RooArgSet c)
inline

set given nuisance parameters to a specific value that will be used instead of their profiled value for Null toys

Definition at line 73 of file FrequentistCalculator.h.

◆ SetNToysInTails()

void RooStats::FrequentistCalculator::SetNToysInTails ( int  toysNull,
int  toysAlt 
)
inline

set least number of toys in tails

Definition at line 69 of file FrequentistCalculator.h.

◆ SetToys()

void RooStats::FrequentistCalculator::SetToys ( int  toysNull,
int  toysAlt 
)
inline

set number of toys

Definition at line 66 of file FrequentistCalculator.h.

◆ StoreFitInfo()

void RooStats::FrequentistCalculator::StoreFitInfo ( bool  val = true)
inline

Definition at line 89 of file FrequentistCalculator.h.

Member Data Documentation

◆ fConditionalMLEsAlt

const RooArgSet* RooStats::FrequentistCalculator::fConditionalMLEsAlt
protected

Definition at line 110 of file FrequentistCalculator.h.

◆ fConditionalMLEsNull

const RooArgSet* RooStats::FrequentistCalculator::fConditionalMLEsNull
protected

Definition at line 109 of file FrequentistCalculator.h.

◆ fFitInfo

RooArgSet* RooStats::FrequentistCalculator::fFitInfo
mutableprivate

Definition at line 121 of file FrequentistCalculator.h.

◆ fNToysAlt

int RooStats::FrequentistCalculator::fNToysAlt
protected

Definition at line 114 of file FrequentistCalculator.h.

◆ fNToysAltTail

int RooStats::FrequentistCalculator::fNToysAltTail
protected

Definition at line 118 of file FrequentistCalculator.h.

◆ fNToysNull

int RooStats::FrequentistCalculator::fNToysNull
protected

Definition at line 113 of file FrequentistCalculator.h.

◆ fNToysNullTail

int RooStats::FrequentistCalculator::fNToysNullTail
protected

Definition at line 117 of file FrequentistCalculator.h.

◆ fStoreFitInfo

bool RooStats::FrequentistCalculator::fStoreFitInfo
private

Definition at line 122 of file FrequentistCalculator.h.

Libraries for RooStats::FrequentistCalculator:
[legend]

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