ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RooStats::HybridCalculator Class Reference

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 mariginalization 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 43 of file HybridCalculator.h.

Public Member Functions

 HybridCalculator (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=0)
 
 ~HybridCalculator ()
 
virtual void ForcePriorNuisanceNull (RooAbsPdf &priorNuisance)
 Override the distribution used for marginalizing nuisance parameters that is inferred from ModelConfig. More...
 
virtual void ForcePriorNuisanceAlt (RooAbsPdf &priorNuisance)
 
virtual void SetNullModel (const ModelConfig &nullModel)
 
virtual void SetAlternateModel (const ModelConfig &altModel)
 
void SetToys (int toysNull, int toysAlt)
 set number of toys More...
 
void SetNToysInTails (int toysNull, int toysAlt)
 set least number of toys in tails More...
 
- Public Member Functions inherited from RooStats::HypoTestCalculatorGeneric
 HypoTestCalculatorGeneric (const RooAbsData &data, const ModelConfig &altModel, const ModelConfig &nullModel, TestStatSampler *sampler=0)
 Constructor. More...
 
 ~HypoTestCalculatorGeneric ()
 
virtual HypoTestResultGetHypoTest () const
 inherited methods from HypoTestCalculator interface More...
 
const RooAbsDataGetData (void) const
 
const ModelConfigGetNullModel (void) const
 
virtual const RooArgSetGetFitInfo () const
 
const ModelConfigGetAlternateModel (void) const
 
virtual void SetData (RooAbsData &data)
 
TestStatSamplerGetTestStatSampler (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

int CheckHook (void) const
 check whether all input is consistent More...
 
int PreNullHook (RooArgSet *, double obsTestStat) const
 configure TestStatSampler for the Null run More...
 
int PreAltHook (RooArgSet *, double obsTestStat) const
 configure TestStatSampler for the Alt run More...
 
- Protected Member Functions inherited from RooStats::HypoTestCalculatorGeneric
virtual void PreHook () const
 
virtual void PostHook () const
 

Protected Attributes

RooAbsPdffPriorNuisanceNull
 
RooAbsPdffPriorNuisanceAlt
 
Bool_t fPriorNuisanceNullExternal
 
Bool_t fPriorNuisanceAltExternal
 
int fNToysNull
 
int fNToysAlt
 
int fNToysNullTail
 
int fNToysAltTail
 
- Protected Attributes inherited from RooStats::HypoTestCalculatorGeneric
const ModelConfigfAltModel
 
const ModelConfigfNullModel
 
const RooAbsDatafData
 
TestStatSamplerfTestStatSampler
 
TestStatSamplerfDefaultSampler
 
TestStatisticfDefaultTestStat
 
unsigned int fAltToysSeed
 

#include <RooStats/HybridCalculator.h>

+ Inheritance diagram for RooStats::HybridCalculator:
+ Collaboration diagram for RooStats::HybridCalculator:

Constructor & Destructor Documentation

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

Definition at line 46 of file HybridCalculator.h.

RooStats::HybridCalculator::~HybridCalculator ( )
inline

Definition at line 64 of file HybridCalculator.h.

Member Function Documentation

int HybridCalculator::CheckHook ( void  ) const
protectedvirtual

check whether all input is consistent

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 26 of file HybridCalculator.cxx.

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

Definition at line 75 of file HybridCalculator.h.

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

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

Definition at line 71 of file HybridCalculator.h.

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

configure TestStatSampler for the Alt run

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 90 of file HybridCalculator.cxx.

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

configure TestStatSampler for the Null run

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 41 of file HybridCalculator.cxx.

virtual void RooStats::HybridCalculator::SetAlternateModel ( const ModelConfig altModel)
inlinevirtual

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 88 of file HybridCalculator.h.

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

set least number of toys in tails

Definition at line 100 of file HybridCalculator.h.

virtual void RooStats::HybridCalculator::SetNullModel ( const ModelConfig nullModel)
inlinevirtual

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 80 of file HybridCalculator.h.

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

set number of toys

Definition at line 97 of file HybridCalculator.h.

Member Data Documentation

int RooStats::HybridCalculator::fNToysAlt
protected

Definition at line 123 of file HybridCalculator.h.

Referenced by SetToys().

int RooStats::HybridCalculator::fNToysAltTail
protected

Definition at line 127 of file HybridCalculator.h.

Referenced by SetNToysInTails().

int RooStats::HybridCalculator::fNToysNull
protected

Definition at line 122 of file HybridCalculator.h.

Referenced by SetToys().

int RooStats::HybridCalculator::fNToysNullTail
protected

Definition at line 126 of file HybridCalculator.h.

Referenced by SetNToysInTails().

RooAbsPdf* RooStats::HybridCalculator::fPriorNuisanceAlt
protected

Definition at line 114 of file HybridCalculator.h.

Referenced by ForcePriorNuisanceAlt(), SetAlternateModel(), and ~HybridCalculator().

Bool_t RooStats::HybridCalculator::fPriorNuisanceAltExternal
protected

Definition at line 119 of file HybridCalculator.h.

Referenced by ForcePriorNuisanceAlt(), SetAlternateModel(), and ~HybridCalculator().

RooAbsPdf* RooStats::HybridCalculator::fPriorNuisanceNull
protected

Definition at line 113 of file HybridCalculator.h.

Referenced by ForcePriorNuisanceNull(), SetNullModel(), and ~HybridCalculator().

Bool_t RooStats::HybridCalculator::fPriorNuisanceNullExternal
protected

Definition at line 118 of file HybridCalculator.h.

Referenced by ForcePriorNuisanceNull(), SetNullModel(), and ~HybridCalculator().


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