12#ifndef ROOSTATS_ProfileLikelihoodTestStat
13#define ROOSTATS_ProfileLikelihoodTestStat
105 std::unique_ptr<RooFitResult>
GetMinNLL();
107 std::pair<double, int>
minimizeNLL(std::string
const &prefix);
110 std::unique_ptr<RooAbsReal>
fNll;
int Int_t
Signed integer 4 bytes (int).
#define ClassDefOverride(name, id)
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.
void SetLOffset(std::string const &mode)
void SetPrintLevel(Int_t printlevel)
ProfileLikelihoodTestStat(RooAbsPdf &pdf)
std::pair< double, int > minimizeNLL(std::string const &prefix)
bool IsOneSidedDiscovery() const
std::unique_ptr< RooArgSet > fDetailedOutput
!
RooArgSet fConditionalObs
conditional observables
virtual void EnableDetailedOutput(bool e=true, bool withErrorsAndPulls=false)
void SetOneSidedDiscovery(bool flag=true)
bool fDetailedOutputWithErrorsAndPulls
double Evaluate(RooAbsData &data, RooArgSet ¶msOfInterest) override
Main interface to evaluate the test statistic on a dataset.
std::unique_ptr< RooAbsReal > fNll
!
void SetConditionalObservables(const RooArgSet &set) override
set the conditional observables which will be used when creating the NLL so the pdf's will not be nor...
void SetReuseNLL(bool flag)
void SetGlobalObservables(const RooArgSet &set) override
set the global observables which will be used when creating the NLL so the constraint pdf's will be n...
void SetTolerance(double tol)
static void SetAlwaysReuseNLL(bool flag)
static bool fgAlwaysReuseNll
~ProfileLikelihoodTestStat() override
void SetLOffset(bool flag=true)
void SetSigned(bool flag=true)
virtual double EvaluateProfileLikelihood(int type, RooAbsData &data, RooArgSet ¶msOfInterest)
evaluate the profile likelihood ratio (type = 0) or the minimum of likelihood (type=1) or the conditi...
RooArgSet fGlobalObs
global observables
const RooArgSet * GetDetailedOutput(void) const override
Returns detailed output.
const RooArgSet * fCachedBestFitParams
const TString GetVarName() const override
void SetOneSided(bool flag=true)
virtual void SetVarName(const char *name)
virtual RooAbsPdf * GetPdf() const
void SetMinimizer(const char *minimizer)
void SetStrategy(Int_t strategy)
bool minimizationNeeded(RooArgSet allParams) const
Check if there are non-const parameters so it is worth to do the minimization.
std::unique_ptr< RooFitResult > GetMinNLL()
find minimum of NLL using RooMinimizer
bool fDetailedOutputEnabled
this will store a snapshot of the unconditional nuisance parameter fit.
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
Namespace for new Math classes and functions.
Namespace for the RooStats classes.
std::string const & NLLOffsetMode()
Test what offsetting mode RooStats should use by default.