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 25 of file FrequentistCalculator.h.
Public Member Functions | |
| FrequentistCalculator (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=nullptr) | |
| ~FrequentistCalculator () override | |
| const ModelConfig * | GetAlternateModel (void) const |
| const RooAbsData * | GetData (void) const |
| const RooArgSet * | GetFitInfo () const override |
| HypoTestResult * | GetHypoTest () const override |
| inherited methods from HypoTestCalculator interface | |
| const ModelConfig * | GetNullModel (void) const |
| TestStatSampler * | GetTestStatSampler (void) const |
| Returns instance of TestStatSampler. | |
| TClass * | IsA () const override |
| void | SetAlternateModel (const ModelConfig &altModel) override |
| Set the model for the alternate hypothesis (S+B). | |
| virtual void | SetCommonModel (const ModelConfig &model) |
| Set a common model for both the null and alternate, add to the workspace if not already there. | |
| 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 | |
| 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 | |
| void | SetData (RooAbsData &data) override |
| Set the DataSet. | |
| void | SetNToysInTails (int toysNull, int toysAlt) |
| set least number of toys in tails | |
| void | SetNullModel (const ModelConfig &nullModel) override |
| set the model for the null hypothesis (only B) | |
| void | SetToys (int toysNull, int toysAlt) |
| set number of toys | |
| void | StoreFitInfo (bool val=true) |
| void | Streamer (TBuffer &) override |
| void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
| 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. | |
Static Public Member Functions | |
| static TClass * | Class () |
| static const char * | Class_Name () |
| static constexpr Version_t | Class_Version () |
| static const char * | DeclFileName () |
Protected Member Functions | |
| virtual int | CheckHook (void) const |
| void | PostHook () const override |
| int | PreAltHook (RooArgSet *parameterPoint, double obsTestStat) const override |
| configure TestStatSampler for the Alt run | |
| void | PreHook () const override |
| int | PreNullHook (RooArgSet *parameterPoint, double obsTestStat) const override |
| configure TestStatSampler for the Null run | |
Protected Attributes | |
| const ModelConfig * | fAltModel |
| unsigned int | fAltToysSeed |
| const RooArgSet * | fConditionalMLEsAlt = nullptr |
| const RooArgSet * | fConditionalMLEsNull = nullptr |
| const RooAbsData * | fData |
| TestStatSampler * | fDefaultSampler |
| TestStatistic * | fDefaultTestStat |
| int | fNToysAlt |
| int | fNToysAltTail |
| int | fNToysNull |
| int | fNToysNullTail |
| const ModelConfig * | fNullModel |
| TestStatSampler * | fTestStatSampler |
Private Member Functions | |
| SamplingDistribution * | GenerateSamplingDistribution (ModelConfig *thisModel, double obsTestStat, RooAbsPdf *impDens=nullptr, const RooArgSet *impSnapshot=nullptr) const |
| void | SetAdaptiveLimits (double obsTestStat, bool forNull) const |
| void | SetupSampler (const ModelConfig &model) const |
| common setup for both models | |
Private Attributes | |
| RooArgSet * | fFitInfo |
| bool | fStoreFitInfo |
#include <RooStats/FrequentistCalculator.h>
|
inline |
Definition at line 28 of file FrequentistCalculator.h.
|
inlineoverride |
Definition at line 44 of file FrequentistCalculator.h.
|
inlineprotectedvirtualinherited |
Reimplemented in RooStats::HybridCalculator.
Definition at line 73 of file HypoTestCalculatorGeneric.h.
|
static |
|
static |
|
inlinestaticconstexpr |
Definition at line 111 of file FrequentistCalculator.h.
|
inlinestatic |
Definition at line 111 of file FrequentistCalculator.h.
|
privateinherited |
|
inlineinherited |
Definition at line 57 of file HypoTestCalculatorGeneric.h.
|
inlineinherited |
Definition at line 52 of file HypoTestCalculatorGeneric.h.
|
inlineoverridevirtual |
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 79 of file FrequentistCalculator.h.
|
overridevirtualinherited |
inherited methods from HypoTestCalculator interface
several possibilities: no prior nuisance given and no nuisance parameters: ok no prior nuisance given but nuisance parameters: error prior nuisance given for some nuisance parameters:
Implements RooStats::HypoTestCalculator.
Definition at line 117 of file HypoTestCalculatorGeneric.cxx.
|
inlineinherited |
Definition at line 53 of file HypoTestCalculatorGeneric.h.
|
inlineinherited |
Returns instance of TestStatSampler.
Use to change properties of TestStatSampler, e.g. GetTestStatSampler.SetTestSize(double size);
Definition at line 63 of file HypoTestCalculatorGeneric.h.
|
inlineoverridevirtual |
Reimplemented from RooStats::HypoTestCalculator.
Definition at line 111 of file FrequentistCalculator.h.
|
overrideprotectedvirtual |
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 48 of file FrequentistCalculator.cxx.
|
overrideprotectedvirtual |
configure TestStatSampler for the Alt run
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 165 of file FrequentistCalculator.cxx.
|
overrideprotectedvirtual |
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 36 of file FrequentistCalculator.cxx.
|
overrideprotectedvirtual |
configure TestStatSampler for the Null run
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 53 of file FrequentistCalculator.cxx.
|
privateinherited |
|
inlineoverridevirtualinherited |
Set the model for the alternate hypothesis (S+B).
Implements RooStats::HypoTestCalculator.
Definition at line 56 of file HypoTestCalculatorGeneric.h.
|
inlinevirtualinherited |
Set a common model for both the null and alternate, add to the workspace if not already there.
Definition at line 70 of file HypoTestCalculator.h.
|
inline |
set given nuisance parameters to a specific value that will be used instead of their profiled value for Alternate toys
Definition at line 68 of file FrequentistCalculator.h.
|
inline |
set given nuisance parameters to a specific value that will be used instead of their profiled value for Null toys
Definition at line 59 of file FrequentistCalculator.h.
|
inlineoverridevirtualinherited |
Set the DataSet.
Implements RooStats::HypoTestCalculator.
Definition at line 59 of file HypoTestCalculatorGeneric.h.
set least number of toys in tails
Definition at line 55 of file FrequentistCalculator.h.
|
inlineoverridevirtualinherited |
set the model for the null hypothesis (only B)
Implements RooStats::HypoTestCalculator.
Definition at line 51 of file HypoTestCalculatorGeneric.h.
set number of toys
Definition at line 52 of file FrequentistCalculator.h.
|
privateinherited |
common setup for both models
Definition at line 88 of file HypoTestCalculatorGeneric.cxx.
|
inline |
Definition at line 75 of file FrequentistCalculator.h.
|
overridevirtual |
Reimplemented from RooStats::HypoTestCalculator.
|
inline |
Definition at line 111 of file FrequentistCalculator.h.
|
inherited |
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.
to re-use same toys for alternate hypothesis
Definition at line 276 of file HypoTestCalculatorGeneric.cxx.
|
protectedinherited |
Definition at line 80 of file HypoTestCalculatorGeneric.h.
|
protectedinherited |
Definition at line 87 of file HypoTestCalculatorGeneric.h.
|
protected |
Definition at line 96 of file FrequentistCalculator.h.
|
protected |
Definition at line 95 of file FrequentistCalculator.h.
|
protectedinherited |
Definition at line 82 of file HypoTestCalculatorGeneric.h.
|
protectedinherited |
Definition at line 84 of file HypoTestCalculatorGeneric.h.
|
protectedinherited |
Definition at line 85 of file HypoTestCalculatorGeneric.h.
|
mutableprivate |
Definition at line 107 of file FrequentistCalculator.h.
|
protected |
Definition at line 100 of file FrequentistCalculator.h.
|
protected |
Definition at line 104 of file FrequentistCalculator.h.
|
protected |
Definition at line 99 of file FrequentistCalculator.h.
|
protected |
Definition at line 103 of file FrequentistCalculator.h.
|
protectedinherited |
Definition at line 81 of file HypoTestCalculatorGeneric.h.
|
private |
Definition at line 108 of file FrequentistCalculator.h.
|
protectedinherited |
Definition at line 83 of file HypoTestCalculatorGeneric.h.