32 using namespace RooStats;
39 if( fPriorNuisanceNull && (!fNullModel->GetNuisanceParameters() || fNullModel->GetNuisanceParameters()->getSize() == 0) ) {
40 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;
43 if( fPriorNuisanceAlt && (!fAltModel->GetNuisanceParameters() || fAltModel->GetNuisanceParameters()->getSize() == 0) ) {
44 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;
58 if(fPriorNuisanceNull) {
60 fTestStatSampler->SetPriorNuisance(fPriorNuisanceNull);
62 fNullModel->GetNuisanceParameters() == NULL ||
63 fNullModel->GetNuisanceParameters()->getSize() == 0
66 <<
"HybridCalculator - No nuisance parameters specified for Null model and no prior forced. "
67 <<
"Case is reduced to simple hypothesis testing with no uncertainty." << endl;
81 if(fNToysNull >= 0) toymcs->
SetNToys(fNToysNull);
86 if(GetTestStatSampler()->GetTestStatistic()->PValueIsRightTail()) {
95 GetNullModel()->LoadSnapshot();
107 if(fPriorNuisanceAlt){
109 fTestStatSampler->SetPriorNuisance(fPriorNuisanceAlt);
111 fAltModel->GetNuisanceParameters()==NULL ||
112 fAltModel->GetNuisanceParameters()->getSize()==0
115 <<
"HybridCalculator - No nuisance parameters specified for Alt model and no prior forced. "
116 <<
"Case is reduced to simple hypothesis testing with no uncertainty." << endl;
130 if(fNToysAlt >= 0) toymcs->
SetNToys(fNToysAlt);
135 if(GetTestStatSampler()->GetTestStatistic()->PValueIsRightTail()) {
void SetToysLeftTail(Double_t toys, Double_t threshold)
int PreNullHook(RooArgSet *, double obsTestStat) const
configure TestStatSampler for the Null run
void SetToysRightTail(Double_t toys, Double_t threshold)
void SetToysBothTails(Double_t toys, Double_t low_threshold, Double_t high_threshold)
virtual void SetNToys(const Int_t ntoy)
int PreAltHook(RooArgSet *, double obsTestStat) const
configure TestStatSampler for the Alt run
ToyMCSampler is an implementation of the TestStatSampler interface.
Same purpose as HybridCalculatorOriginal, but different implementation.
Mother of all ROOT objects.
int CheckHook(void) const
check whether all input is consistent