Logo ROOT  
Reference Guide
RooStats::HybridCalculator Class Reference

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 () override
 
virtual void ForcePriorNuisanceAlt (RooAbsPdf &priorNuisance)
 
virtual void ForcePriorNuisanceNull (RooAbsPdf &priorNuisance)
 Override the distribution used for marginalizing nuisance parameters that is inferred from ModelConfig. More...
 
TClassIsA () const override
 
void SetAlternateModel (const ModelConfig &altModel) override
 Set the model for the alternate hypothesis. More...
 
void SetNToysInTails (int toysNull, int toysAlt)
 set least number of toys in tails More...
 
void SetNullModel (const ModelConfig &nullModel) override
 Set the model for the null hypothesis. More...
 
void SetToys (int toysNull, int toysAlt)
 set number of toys More...
 
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=0)
 Constructor. More...
 
 ~HypoTestCalculatorGeneric () override
 
const ModelConfigGetAlternateModel (void) const
 
const RooAbsDataGetData (void) const
 
virtual const RooArgSetGetFitInfo () const
 
HypoTestResultGetHypoTest () const override
 inherited methods from HypoTestCalculator interface More...
 
const ModelConfigGetNullModel (void) const
 
TestStatSamplerGetTestStatSampler (void) const
 Returns instance of TestStatSampler. More...
 
TClassIsA () const override
 
void SetAlternateModel (const ModelConfig &altModel) override
 Set the model for the alternate hypothesis (S+B) More...
 
void SetData (RooAbsData &data) override
 Set the DataSet. More...
 
void SetNullModel (const ModelConfig &nullModel) override
 set the model for the null hypothesis (only B) More...
 
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. More...
 
- Public Member Functions inherited from RooStats::HypoTestCalculator
virtual ~HypoTestCalculator ()
 
virtual HypoTestResultGetHypoTest () const =0
 main interface to get a HypoTestResult, pure virtual More...
 
virtual TClassIsA () const
 
virtual void SetAlternateModel (const ModelConfig &model)=0
 Set the model for the alternate hypothesis. More...
 
virtual void SetCommonModel (const ModelConfig &model)
 Set a common model for both the null and alternate, add to the the workspace if not already there. More...
 
virtual void SetData (RooAbsData &data)=0
 Set the DataSet. More...
 
virtual void SetNullModel (const ModelConfig &model)=0
 Set the model for the null hypothesis. More...
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from RooStats::HypoTestCalculatorGeneric
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from RooStats::HypoTestCalculator
static TClassClass ()
 
static const char * Class_Name ()
 
static Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

int CheckHook (void) const override
 check whether all input is consistent More...
 
int PreAltHook (RooArgSet *, double obsTestStat) const override
 configure TestStatSampler for the Alt run More...
 
int PreNullHook (RooArgSet *, double obsTestStat) const override
 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
 
RooAbsPdffPriorNuisanceAlt
 
bool fPriorNuisanceAltExternal
 
RooAbsPdffPriorNuisanceNull
 
bool fPriorNuisanceNullExternal
 
- Protected Attributes inherited from RooStats::HypoTestCalculatorGeneric
const ModelConfigfAltModel
 
unsigned int fAltToysSeed
 
const RooAbsDatafData
 
TestStatSamplerfDefaultSampler
 
TestStatisticfDefaultTestStat
 
const ModelConfigfNullModel
 
TestStatSamplerfTestStatSampler
 

#include <RooStats/HybridCalculator.h>

Inheritance diagram for RooStats::HybridCalculator:
[legend]

Constructor & Destructor Documentation

◆ HybridCalculator()

RooStats::HybridCalculator::HybridCalculator ( const RooAbsData data,
const ModelConfig altModel,
const ModelConfig nullModel,
TestStatSampler sampler = 0 
)
inline

Definition at line 25 of file HybridCalculator.h.

◆ ~HybridCalculator()

RooStats::HybridCalculator::~HybridCalculator ( )
inlineoverride

Definition at line 43 of file HybridCalculator.h.

Member Function Documentation

◆ CheckHook()

int HybridCalculator::CheckHook ( void  ) const
overrideprotectedvirtual

check whether all input is consistent

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 37 of file HybridCalculator.cxx.

◆ Class()

static TClass * RooStats::HybridCalculator::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * RooStats::HybridCalculator::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static Version_t RooStats::HybridCalculator::Class_Version ( )
inlinestatic
Returns
Version of this class

Definition at line 109 of file HybridCalculator.h.

◆ DeclFileName()

static const char * RooStats::HybridCalculator::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 109 of file HybridCalculator.h.

◆ ForcePriorNuisanceAlt()

virtual void RooStats::HybridCalculator::ForcePriorNuisanceAlt ( RooAbsPdf priorNuisance)
inlinevirtual

Definition at line 55 of file HybridCalculator.h.

◆ ForcePriorNuisanceNull()

virtual void RooStats::HybridCalculator::ForcePriorNuisanceNull ( RooAbsPdf priorNuisance)
inlinevirtual

Override the distribution used for marginalizing nuisance parameters that is inferred from ModelConfig.

Definition at line 50 of file HybridCalculator.h.

◆ IsA()

TClass * RooStats::HybridCalculator::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from RooStats::HypoTestCalculator.

Definition at line 109 of file HybridCalculator.h.

◆ PreAltHook()

int HybridCalculator::PreAltHook ( RooArgSet ,
double  obsTestStat 
) const
overrideprotectedvirtual

configure TestStatSampler for the Alt run

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 103 of file HybridCalculator.cxx.

◆ PreNullHook()

int HybridCalculator::PreNullHook ( RooArgSet ,
double  obsTestStat 
) const
overrideprotectedvirtual

configure TestStatSampler for the Null run

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 53 of file HybridCalculator.cxx.

◆ SetAlternateModel()

void RooStats::HybridCalculator::SetAlternateModel ( const ModelConfig model)
inlineoverridevirtual

Set the model for the alternate hypothesis.

Implements RooStats::HypoTestCalculator.

Definition at line 68 of file HybridCalculator.h.

◆ SetNToysInTails()

void RooStats::HybridCalculator::SetNToysInTails ( int  toysNull,
int  toysAlt 
)
inline

set least number of toys in tails

Definition at line 79 of file HybridCalculator.h.

◆ SetNullModel()

void RooStats::HybridCalculator::SetNullModel ( const ModelConfig model)
inlineoverridevirtual

Set the model for the null hypothesis.

Implements RooStats::HypoTestCalculator.

Definition at line 61 of file HybridCalculator.h.

◆ SetToys()

void RooStats::HybridCalculator::SetToys ( int  toysNull,
int  toysAlt 
)
inline

set number of toys

Definition at line 76 of file HybridCalculator.h.

◆ Streamer()

void RooStats::HybridCalculator::Streamer ( TBuffer )
overridevirtual

Reimplemented from RooStats::HypoTestCalculator.

◆ StreamerNVirtual()

void RooStats::HybridCalculator::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 109 of file HybridCalculator.h.

Member Data Documentation

◆ fNToysAlt

int RooStats::HybridCalculator::fNToysAlt
protected

Definition at line 102 of file HybridCalculator.h.

◆ fNToysAltTail

int RooStats::HybridCalculator::fNToysAltTail
protected

Definition at line 106 of file HybridCalculator.h.

◆ fNToysNull

int RooStats::HybridCalculator::fNToysNull
protected

Definition at line 101 of file HybridCalculator.h.

◆ fNToysNullTail

int RooStats::HybridCalculator::fNToysNullTail
protected

Definition at line 105 of file HybridCalculator.h.

◆ fPriorNuisanceAlt

RooAbsPdf* RooStats::HybridCalculator::fPriorNuisanceAlt
protected

Definition at line 93 of file HybridCalculator.h.

◆ fPriorNuisanceAltExternal

bool RooStats::HybridCalculator::fPriorNuisanceAltExternal
protected

Definition at line 98 of file HybridCalculator.h.

◆ fPriorNuisanceNull

RooAbsPdf* RooStats::HybridCalculator::fPriorNuisanceNull
protected

Definition at line 92 of file HybridCalculator.h.

◆ fPriorNuisanceNullExternal

bool RooStats::HybridCalculator::fPriorNuisanceNullExternal
protected

Definition at line 97 of file HybridCalculator.h.

Libraries for RooStats::HybridCalculator:
[legend]

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