ROOT
6.06/09
Reference Guide
|
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 HypoTestResult * | GetHypoTest () const |
inherited methods from HypoTestCalculator interface More... | |
virtual void | SetNullModel (const ModelConfig &nullModel) |
const RooAbsData * | GetData (void) const |
const ModelConfig * | GetNullModel (void) const |
virtual const RooArgSet * | GetFitInfo () const |
virtual void | SetAlternateModel (const ModelConfig &altModel) |
const ModelConfig * | GetAlternateModel (void) const |
virtual void | SetData (RooAbsData &data) |
TestStatSampler * | GetTestStatSampler (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 ModelConfig * | fAltModel |
const ModelConfig * | fNullModel |
const RooAbsData * | fData |
TestStatSampler * | fTestStatSampler |
TestStatSampler * | fDefaultSampler |
TestStatistic * | fDefaultTestStat |
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 |
SamplingDistribution * | GenerateSamplingDistribution (ModelConfig *thisModel, double obsTestStat, RooAbsPdf *impDens=NULL, const RooArgSet *impSnapshot=NULL) const |
#include <RooStats/HypoTestCalculatorGeneric.h>
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.
|
inlineprotectedvirtual |
Reimplemented in RooStats::HybridCalculator.
Definition at line 96 of file HypoTestCalculatorGeneric.h.
|
private |
|
inline |
Definition at line 80 of file HypoTestCalculatorGeneric.h.
Referenced by RooStats::HypoTestInverter::CheckInputModels(), RooStats::AsymptoticCalculator::GetHypoTest(), RooStats::HypoTestInverter::GetVariableToScan(), RooStats::AsymptoticCalculator::Initialize(), and RooStats::HypoTestInverter::RebuildDistributions().
|
inline |
Definition at line 75 of file HypoTestCalculatorGeneric.h.
Referenced by RooStats::AsymptoticCalculator::GetHypoTest(), and RooStats::AsymptoticCalculator::Initialize().
|
inlinevirtual |
Reimplemented in RooStats::FrequentistCalculator.
Definition at line 77 of file HypoTestCalculatorGeneric.h.
|
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().
|
inline |
Definition at line 76 of file HypoTestCalculatorGeneric.h.
Referenced by RooStats::AsymptoticCalculator::AsymptoticCalculator(), RooStats::HypoTestInverter::CheckInputModels(), RooStats::AsymptoticCalculator::GetHypoTest(), RooStats::HypoTestInverter::GetVariableToScan(), RooStats::AsymptoticCalculator::Initialize(), RooStats::HypoTestInverter::RebuildDistributions(), and RooStats::HypoTestInverter::RunOnePoint().
|
inline |
Definition at line 86 of file HypoTestCalculatorGeneric.h.
Referenced by RooStats::HypoTestInverter::CreateResults(), RooStats::HypoTestInverter::GetTestStatistic(), RooStats::HypoTestInverter::RebuildDistributions(), and RooStats::HypoTestInverter::SetTestStatistic().
|
inlineprotectedvirtual |
Reimplemented in RooStats::FrequentistCalculator.
Definition at line 100 of file HypoTestCalculatorGeneric.h.
|
inlineprotectedvirtual |
Reimplemented in RooStats::HybridCalculator, and RooStats::FrequentistCalculator.
Definition at line 98 of file HypoTestCalculatorGeneric.h.
|
inlineprotectedvirtual |
Reimplemented in RooStats::FrequentistCalculator.
Definition at line 99 of file HypoTestCalculatorGeneric.h.
|
inlineprotectedvirtual |
Reimplemented in RooStats::HybridCalculator, and RooStats::FrequentistCalculator.
Definition at line 97 of file HypoTestCalculatorGeneric.h.
|
private |
|
inlinevirtual |
Implements RooStats::HypoTestCalculator.
Reimplemented in RooStats::AsymptoticCalculator, and RooStats::HybridCalculator.
Definition at line 79 of file HypoTestCalculatorGeneric.h.
Referenced by RooStats::AsymptoticCalculator::SetAlternateModel().
|
inlinevirtual |
Implements RooStats::HypoTestCalculator.
Reimplemented in RooStats::AsymptoticCalculator.
Definition at line 82 of file HypoTestCalculatorGeneric.h.
Referenced by RooStats::AsymptoticCalculator::SetData(), and RooStats::HypoTestInverter::SetData().
|
inlinevirtual |
Implements RooStats::HypoTestCalculator.
Reimplemented in RooStats::AsymptoticCalculator, and RooStats::HybridCalculator.
Definition at line 74 of file HypoTestCalculatorGeneric.h.
Referenced by RooStats::AsymptoticCalculator::SetNullModel().
|
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.
|
protected |
Definition at line 103 of file HypoTestCalculatorGeneric.h.
Referenced by GetAlternateModel(), SetAlternateModel(), and RooStats::HybridCalculator::SetAlternateModel().
|
protected |
Definition at line 110 of file HypoTestCalculatorGeneric.h.
|
protected |
Definition at line 105 of file HypoTestCalculatorGeneric.h.
|
protected |
Definition at line 107 of file HypoTestCalculatorGeneric.h.
|
protected |
Definition at line 108 of file HypoTestCalculatorGeneric.h.
|
protected |
Definition at line 104 of file HypoTestCalculatorGeneric.h.
Referenced by GetNullModel(), SetNullModel(), and RooStats::HybridCalculator::SetNullModel().
|
protected |
Definition at line 106 of file HypoTestCalculatorGeneric.h.
Referenced by GetTestStatSampler().