28 if( fPriorNuisanceNull && (!fNullModel->GetNuisanceParameters() || fNullModel->GetNuisanceParameters()->getSize() == 0) ) {
29 oocoutE((
TObject*)0,
InputArguments) <<
"HybridCalculator - Nuisance PDF has been specified, but is unaware of which parameters are the nuisance parameters. Must set nuisance parameters in the Null ModelConfig." << endl;
32 if( fPriorNuisanceAlt && (!fAltModel->GetNuisanceParameters() || fAltModel->GetNuisanceParameters()->getSize() == 0) ) {
33 oocoutE((
TObject*)0,
InputArguments) <<
"HybridCalculator - Nuisance PDF has been specified, but is unaware of which parameters are the nuisance parameters. Must set nuisance parameters in the Alt ModelConfig" << endl;
41 int HybridCalculator::PreNullHook(
RooArgSet* ,
double obsTestStat)
const {
54 <<
"HybridCalculator - No nuisance parameters specified for Null model and no prior forced. " 55 <<
"Case is reduced to simple hypothesis testing with no uncertainty." << endl;
102 <<
"HybridCalculator - No nuisance parameters specified for Alt model and no prior forced. " 103 <<
"Case is reduced to simple hypothesis testing with no uncertainty." << endl;
void SetToysLeftTail(Double_t toys, Double_t threshold)
RooAbsPdf * fPriorNuisanceNull
const RooArgSet * GetNuisanceParameters() const
get RooArgSet containing the nuisance parameters (return NULL if not existing)
void SetToysRightTail(Double_t toys, Double_t threshold)
void SetToysBothTails(Double_t toys, Double_t low_threshold, Double_t high_threshold)
TestStatSampler * GetTestStatSampler(void) const
void LoadSnapshot() const
const ModelConfig * fNullModel
virtual void SetNToys(const Int_t ntoy)
const ModelConfig * GetNullModel(void) const
int PreAltHook(RooArgSet *, double obsTestStat) const
configure TestStatSampler for the Alt run
ToyMCSampler is an implementation of the TestStatSampler interface.
This class implements the Hypothesis test calculation using an hybrid (frequentist/bayesian) procedur...
Namespace for the RooStats classes.
TestStatSampler * fTestStatSampler
Mother of all ROOT objects.
RooAbsPdf * fPriorNuisanceAlt
const ModelConfig * fAltModel
virtual void SetPriorNuisance(RooAbsPdf *)=0