Same purpose as HybridCalculatorOriginal, but different implementation.
This class implements the Hypothesis test calculation using an hybrid (frequentist/bayesian) procedure.A frequentist sampling of the test statistic distribution is obtained but with marginalization of the nuisance parameters. The toys are generated by sampling the nuisance parameters according to their prior distribution.
The use of the of ToyMCSampler as the TestStatSampler is assumed.
Definition at line 22 of file HybridCalculator.h.
Public Member Functions | |
HybridCalculator (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=nullptr) | |
~HybridCalculator () override | |
virtual void | ForcePriorNuisanceAlt (RooAbsPdf &priorNuisance) |
virtual void | ForcePriorNuisanceNull (RooAbsPdf &priorNuisance) |
Override the distribution used for marginalizing nuisance parameters that is inferred from ModelConfig. | |
TClass * | IsA () const override |
void | SetAlternateModel (const ModelConfig &altModel) override |
Set the model for the alternate hypothesis. | |
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. | |
void | SetToys (int toysNull, int toysAlt) |
set number of toys | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from RooStats::HypoTestCalculatorGeneric | |
HypoTestCalculatorGeneric (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=nullptr) | |
Constructor. | |
~HypoTestCalculatorGeneric () override | |
const ModelConfig * | GetAlternateModel (void) const |
const RooAbsData * | GetData (void) const |
virtual const RooArgSet * | GetFitInfo () const |
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) | |
void | SetData (RooAbsData &data) override |
Set the DataSet. | |
void | SetNullModel (const ModelConfig &nullModel) override |
set the model for the null hypothesis (only B) | |
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. | |
Public Member Functions inherited from RooStats::HypoTestCalculator | |
virtual | ~HypoTestCalculator () |
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 | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from RooStats::HypoTestCalculatorGeneric | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from RooStats::HypoTestCalculator | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Protected Member Functions | |
int | CheckHook (void) const override |
check whether all input is consistent | |
int | PreAltHook (RooArgSet *, double obsTestStat) const override |
configure TestStatSampler for the Alt run | |
int | PreNullHook (RooArgSet *, double obsTestStat) const override |
configure TestStatSampler for the Null run | |
Protected Member Functions inherited from RooStats::HypoTestCalculatorGeneric | |
virtual void | PostHook () const |
virtual void | PreHook () const |
Protected Attributes | |
int | fNToysAlt |
int | fNToysAltTail |
int | fNToysNull |
int | fNToysNullTail |
RooAbsPdf * | fPriorNuisanceAlt |
bool | fPriorNuisanceAltExternal |
RooAbsPdf * | fPriorNuisanceNull |
bool | fPriorNuisanceNullExternal |
Protected Attributes inherited from RooStats::HypoTestCalculatorGeneric | |
const ModelConfig * | fAltModel |
unsigned int | fAltToysSeed |
const RooAbsData * | fData |
TestStatSampler * | fDefaultSampler |
TestStatistic * | fDefaultTestStat |
const ModelConfig * | fNullModel |
TestStatSampler * | fTestStatSampler |
#include <RooStats/HybridCalculator.h>
|
inline |
Definition at line 25 of file HybridCalculator.h.
|
inlineoverride |
Definition at line 43 of file HybridCalculator.h.
|
overrideprotectedvirtual |
check whether all input is consistent
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 37 of file HybridCalculator.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 109 of file HybridCalculator.h.
|
inlinestatic |
Definition at line 109 of file HybridCalculator.h.
|
inlinevirtual |
Definition at line 55 of file HybridCalculator.h.
|
inlinevirtual |
Override the distribution used for marginalizing nuisance parameters that is inferred from ModelConfig.
Definition at line 50 of file HybridCalculator.h.
|
inlineoverridevirtual |
Reimplemented from RooStats::HypoTestCalculator.
Definition at line 109 of file HybridCalculator.h.
|
overrideprotectedvirtual |
configure TestStatSampler for the Alt run
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 103 of file HybridCalculator.cxx.
|
overrideprotectedvirtual |
configure TestStatSampler for the Null run
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 53 of file HybridCalculator.cxx.
|
inlineoverridevirtual |
Set the model for the alternate hypothesis.
Implements RooStats::HypoTestCalculator.
Definition at line 68 of file HybridCalculator.h.
set least number of toys in tails
Definition at line 79 of file HybridCalculator.h.
|
inlineoverridevirtual |
Set the model for the null hypothesis.
Implements RooStats::HypoTestCalculator.
Definition at line 61 of file HybridCalculator.h.
set number of toys
Definition at line 76 of file HybridCalculator.h.
|
overridevirtual |
Reimplemented from RooStats::HypoTestCalculator.
|
inline |
Definition at line 109 of file HybridCalculator.h.
|
protected |
Definition at line 102 of file HybridCalculator.h.
|
protected |
Definition at line 106 of file HybridCalculator.h.
|
protected |
Definition at line 101 of file HybridCalculator.h.
|
protected |
Definition at line 105 of file HybridCalculator.h.
|
protected |
Definition at line 93 of file HybridCalculator.h.
|
protected |
Definition at line 98 of file HybridCalculator.h.
|
protected |
Definition at line 92 of file HybridCalculator.h.
|
protected |
Definition at line 97 of file HybridCalculator.h.