ROOT 6.18/05 Reference Guide |
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=0) | |
~HybridCalculator () | |
virtual void | ForcePriorNuisanceAlt (RooAbsPdf &priorNuisance) |
virtual void | ForcePriorNuisanceNull (RooAbsPdf &priorNuisance) |
Override the distribution used for marginalizing nuisance parameters that is inferred from ModelConfig. More... | |
virtual void | SetAlternateModel (const ModelConfig &altModel) |
Set the model for the alternate hypothesis (S+B) More... | |
void | SetNToysInTails (int toysNull, int toysAlt) |
set least number of toys in tails More... | |
virtual void | SetNullModel (const ModelConfig &nullModel) |
void | SetToys (int toysNull, int toysAlt) |
set number of toys More... | |
Public Member Functions inherited from RooStats::HypoTestCalculatorGeneric | |
HypoTestCalculatorGeneric (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=0) | |
Constructor. More... | |
~HypoTestCalculatorGeneric () | |
const ModelConfig * | GetAlternateModel (void) const |
const RooAbsData * | GetData (void) const |
virtual const RooArgSet * | GetFitInfo () const |
virtual HypoTestResult * | GetHypoTest () const |
inherited methods from HypoTestCalculator interface More... | |
const ModelConfig * | GetNullModel (void) const |
TestStatSampler * | GetTestStatSampler (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 HypoTestResult * | GetHypoTest () const =0 |
virtual void | SetAlternateModel (const ModelConfig &model)=0 |
virtual void | SetCommonModel (const ModelConfig &model) |
virtual void | SetData (RooAbsData &data)=0 |
virtual void | SetNullModel (const ModelConfig &model)=0 |
Protected Member Functions | |
int | CheckHook (void) const |
check whether all input is consistent More... | |
int | PreAltHook (RooArgSet *, double obsTestStat) const |
configure TestStatSampler for the Alt run More... | |
int | PreNullHook (RooArgSet *, double obsTestStat) const |
configure TestStatSampler for the Null run More... | |
Protected Member Functions inherited from RooStats::HypoTestCalculatorGeneric | |
virtual int | CheckHook (void) const |
virtual void | PostHook () const |
virtual int | PreAltHook (RooArgSet *, double) const |
virtual void | PreHook () const |
virtual int | PreNullHook (RooArgSet *, double) const |
Protected Attributes | |
int | fNToysAlt |
int | fNToysAltTail |
int | fNToysNull |
int | fNToysNullTail |
RooAbsPdf * | fPriorNuisanceAlt |
Bool_t | fPriorNuisanceAltExternal |
RooAbsPdf * | fPriorNuisanceNull |
Bool_t | 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.
|
inline |
Definition at line 43 of file HybridCalculator.h.
|
protectedvirtual |
check whether all input is consistent
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 37 of file HybridCalculator.cxx.
|
inlinevirtual |
Definition at line 54 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.
|
protectedvirtual |
configure TestStatSampler for the Alt run
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 103 of file HybridCalculator.cxx.
|
protectedvirtual |
configure TestStatSampler for the Null run
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 53 of file HybridCalculator.cxx.
|
inlinevirtual |
Set the model for the alternate hypothesis (S+B)
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 67 of file HybridCalculator.h.
|
inline |
set least number of toys in tails
Definition at line 79 of file HybridCalculator.h.
|
inlinevirtual |
Reimplemented from RooStats::HypoTestCalculatorGeneric.
Definition at line 59 of file HybridCalculator.h.
|
inline |
set number of toys
Definition at line 76 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.