73 return fNullProfile.EvaluateProfileLikelihood(type, data, poi);
75 return fAltProfile.EvaluateProfileLikelihood(type, data, poi);
78 oocoutE(
nullptr,InputArguments) <<
"RatioOfProfiledLikelihoods::ProfileLikelihood - invalid pdf used for computing the profiled likelihood - return NaN"
93 double nullNLL =
fNullProfile.EvaluateProfileLikelihood(type, data, nullParamsOfInterest);
107 auto cloneVar = std::make_unique<RooRealVar>(
TString::Format(
"nullprof_%s", var->GetName()),
112 auto cloneVar = std::make_unique<RooRealVar>(
TString::Format(
"altprof_%s", var->GetName()),
126 return nullNLL -altNLL;
ROOT::RRangeCast< T, false, Range_t > static_range_cast(Range_t &&coll)
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
static void SetAlwaysReuseNLL(bool flag)
double Evaluate(RooAbsData &data, RooArgSet &nullParamsOfInterest) override
evaluate the ratio of profile likelihood
static bool fgAlwaysReuseNll
ProfileLikelihoodTestStat fAltProfile
bool fDetailedOutputEnabled
RooArgSet * fDetailedOutput
ProfileLikelihoodTestStat fNullProfile
double ProfiledLikelihood(RooAbsData &data, RooArgSet &poi, RooAbsPdf &pdf)
returns -logL(poi, conditional MLE of nuisance params) it does not subtract off the global MLE becaus...
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Double_t QuietNaN()
Returns a quiet NaN as defined by IEEE 754.