Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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 ()
 
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)
 
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 ModelConfigGetAlternateModel (void) const
 
const RooAbsDataGetData (void) const
 
virtual const RooArgSetGetFitInfo () const
 
virtual HypoTestResultGetHypoTest () const
 inherited methods from HypoTestCalculator interface More...
 
const ModelConfigGetNullModel (void) const
 
TestStatSamplerGetTestStatSampler (void) const
 
virtual void SetData (RooAbsData &data)
 
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 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 void PostHook () const
 
virtual void PreHook () const
 

Protected Attributes

int fNToysAlt
 
int fNToysAltTail
 
int fNToysNull
 
int fNToysNullTail
 
RooAbsPdffPriorNuisanceAlt
 
Bool_t fPriorNuisanceAltExternal
 
RooAbsPdffPriorNuisanceNull
 
Bool_t 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 ( )
inline

Definition at line 43 of file HybridCalculator.h.

Member Function Documentation

◆ CheckHook()

int HybridCalculator::CheckHook ( void  ) const
protectedvirtual

check whether all input is consistent

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 37 of file HybridCalculator.cxx.

◆ ForcePriorNuisanceAlt()

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

Definition at line 54 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.

◆ PreAltHook()

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

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
protectedvirtual

configure TestStatSampler for the Null run

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 53 of file HybridCalculator.cxx.

◆ SetAlternateModel()

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

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 67 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()

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

Reimplemented from RooStats::HypoTestCalculatorGeneric.

Definition at line 59 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.

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_t 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_t 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: