ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
RooStats::HypoTestCalculatorGeneric Class Reference

Common base class for the Hypothesis Test Calculators.

It is not designed to use directly but via its derived classes

Definition at line 54 of file HypoTestCalculatorGeneric.h.

Public Member Functions

 HypoTestCalculatorGeneric (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=0)
 Constructor. More...
 
 ~HypoTestCalculatorGeneric ()
 
virtual HypoTestResultGetHypoTest () const
 inherited methods from HypoTestCalculator interface More...
 
virtual void SetNullModel (const ModelConfig &nullModel)
 
const RooAbsDataGetData (void) const
 
const ModelConfigGetNullModel (void) const
 
virtual const RooArgSetGetFitInfo () const
 
virtual void SetAlternateModel (const ModelConfig &altModel)
 
const ModelConfigGetAlternateModel (void) const
 
virtual void SetData (RooAbsData &data)
 
TestStatSamplerGetTestStatSampler (void) const
 
void UseSameAltToys ()
 to re-use same toys for alternate hypothesis More...
 
- Public Member Functions inherited from RooStats::HypoTestCalculator
virtual ~HypoTestCalculator ()
 
virtual void SetCommonModel (const ModelConfig &model)
 

Protected Member Functions

virtual int CheckHook (void) const
 
virtual int PreNullHook (RooArgSet *, double) const
 
virtual int PreAltHook (RooArgSet *, double) const
 
virtual void PreHook () const
 
virtual void PostHook () const
 

Protected Attributes

const ModelConfigfAltModel
 
const ModelConfigfNullModel
 
const RooAbsDatafData
 
TestStatSamplerfTestStatSampler
 
TestStatSamplerfDefaultSampler
 
TestStatisticfDefaultTestStat
 
unsigned int fAltToysSeed
 

Private Member Functions

void SetupSampler (const ModelConfig &model) const
 common setup for both models More...
 
void SetAdaptiveLimits (Double_t obsTestStat, Bool_t forNull) const
 
SamplingDistributionGenerateSamplingDistribution (ModelConfig *thisModel, double obsTestStat, RooAbsPdf *impDens=NULL, const RooArgSet *impSnapshot=NULL) const
 

#include <RooStats/HypoTestCalculatorGeneric.h>

+ Inheritance diagram for RooStats::HypoTestCalculatorGeneric:
+ Collaboration diagram for RooStats::HypoTestCalculatorGeneric:

Constructor & Destructor Documentation

HypoTestCalculatorGeneric::HypoTestCalculatorGeneric ( const RooAbsData data,
const ModelConfig altModel,
const ModelConfig nullModel,
TestStatSampler sampler = 0 
)

Constructor.

When test stat sampler is not provided uses ToyMCSampler and RatioOfProfiledLikelihoodsTestStat and nToys = 1000. User can : GetTestStatSampler()->SetNToys( # )

Definition at line 39 of file HypoTestCalculatorGeneric.cxx.

HypoTestCalculatorGeneric::~HypoTestCalculatorGeneric ( )

Definition at line 85 of file HypoTestCalculatorGeneric.cxx.

Member Function Documentation

virtual int RooStats::HypoTestCalculatorGeneric::CheckHook ( void  ) const
inlineprotectedvirtual

Reimplemented in RooStats::HybridCalculator.

Definition at line 96 of file HypoTestCalculatorGeneric.h.

SamplingDistribution* RooStats::HypoTestCalculatorGeneric::GenerateSamplingDistribution ( ModelConfig thisModel,
double  obsTestStat,
RooAbsPdf impDens = NULL,
const RooArgSet impSnapshot = NULL 
) const
private
const ModelConfig* RooStats::HypoTestCalculatorGeneric::GetAlternateModel ( void  ) const
inline
const RooAbsData* RooStats::HypoTestCalculatorGeneric::GetData ( void  ) const
inline
virtual const RooArgSet* RooStats::HypoTestCalculatorGeneric::GetFitInfo ( ) const
inlinevirtual

Reimplemented in RooStats::FrequentistCalculator.

Definition at line 77 of file HypoTestCalculatorGeneric.h.

HypoTestResult * HypoTestCalculatorGeneric::GetHypoTest ( ) const
virtual

inherited methods from HypoTestCalculator interface

Implements RooStats::HypoTestCalculator.

Reimplemented in RooStats::AsymptoticCalculator.

Definition at line 92 of file HypoTestCalculatorGeneric.cxx.

Referenced by RooStats::HypoTestInverter::Eval().

const ModelConfig* RooStats::HypoTestCalculatorGeneric::GetNullModel ( void  ) const
inline
TestStatSampler* RooStats::HypoTestCalculatorGeneric::GetTestStatSampler ( void  ) const
inline
virtual void RooStats::HypoTestCalculatorGeneric::PostHook ( ) const
inlineprotectedvirtual

Reimplemented in RooStats::FrequentistCalculator.

Definition at line 100 of file HypoTestCalculatorGeneric.h.

virtual int RooStats::HypoTestCalculatorGeneric::PreAltHook ( RooArgSet ,
double   
) const
inlineprotectedvirtual
virtual void RooStats::HypoTestCalculatorGeneric::PreHook ( ) const
inlineprotectedvirtual

Reimplemented in RooStats::FrequentistCalculator.

Definition at line 99 of file HypoTestCalculatorGeneric.h.

virtual int RooStats::HypoTestCalculatorGeneric::PreNullHook ( RooArgSet ,
double   
) const
inlineprotectedvirtual
void RooStats::HypoTestCalculatorGeneric::SetAdaptiveLimits ( Double_t  obsTestStat,
Bool_t  forNull 
) const
private
virtual void RooStats::HypoTestCalculatorGeneric::SetAlternateModel ( const ModelConfig altModel)
inlinevirtual
virtual void RooStats::HypoTestCalculatorGeneric::SetData ( RooAbsData data)
inlinevirtual
virtual void RooStats::HypoTestCalculatorGeneric::SetNullModel ( const ModelConfig nullModel)
inlinevirtual
void HypoTestCalculatorGeneric::SetupSampler ( const ModelConfig model) const
private

common setup for both models

Definition at line 69 of file HypoTestCalculatorGeneric.cxx.

void HypoTestCalculatorGeneric::UseSameAltToys ( )

to re-use same toys for alternate hypothesis

Definition at line 251 of file HypoTestCalculatorGeneric.cxx.

Member Data Documentation

const ModelConfig* RooStats::HypoTestCalculatorGeneric::fAltModel
protected
unsigned int RooStats::HypoTestCalculatorGeneric::fAltToysSeed
protected

Definition at line 110 of file HypoTestCalculatorGeneric.h.

const RooAbsData* RooStats::HypoTestCalculatorGeneric::fData
protected

Definition at line 105 of file HypoTestCalculatorGeneric.h.

Referenced by GetData(), and SetData().

TestStatSampler* RooStats::HypoTestCalculatorGeneric::fDefaultSampler
protected

Definition at line 107 of file HypoTestCalculatorGeneric.h.

TestStatistic* RooStats::HypoTestCalculatorGeneric::fDefaultTestStat
protected

Definition at line 108 of file HypoTestCalculatorGeneric.h.

const ModelConfig* RooStats::HypoTestCalculatorGeneric::fNullModel
protected
TestStatSampler* RooStats::HypoTestCalculatorGeneric::fTestStatSampler
protected

Definition at line 106 of file HypoTestCalculatorGeneric.h.

Referenced by GetTestStatSampler().


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