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;
53 int HybridCalculator::PreNullHook(
RooArgSet* ,
double obsTestStat)
const {
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;
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;
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
load the snapshot from ws if it exists
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.
Same purpose as HybridCalculatorOriginal, but different implementation.
TestStatSampler * fTestStatSampler
Mother of all ROOT objects.
RooAbsPdf * fPriorNuisanceAlt
const ModelConfig * fAltModel
virtual void SetPriorNuisance(RooAbsPdf *)=0