11#ifndef ROOSTATS_SimpleLikelihoodRatioTestStat
12#define ROOSTATS_SimpleLikelihoodRatioTestStat
35 std::unique_ptr<RooArgSet> allNullVars{
fNullPdf->getVariables()};
38 std::unique_ptr<RooArgSet> allAltVars{
fAltPdf->getVariables()};
84 if (null->getVal() != alt->
getVal())
106 return "log(L(#mu_{1}) / L(#mu_{0}))";
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooArgSet * snapshot(bool deepCopy=true) const
Use RooAbsCollection::snapshot(), but return as RooArgSet.
static void SetAlwaysReuseNLL(bool flag)
void SetReuseNLL(bool flag)
double Evaluate(RooAbsData &data, RooArgSet &nullPOI) override
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
SimpleLikelihoodRatioTestStat(RooAbsPdf &nullPdf, RooAbsPdf &altPdf, const RooArgSet &nullParameters, const RooArgSet &altParameters)
Takes null and alternate parameters from values in nullParameters and altParameters.
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...
std::unique_ptr< RooArgSet > fDetailedOutput
!
RooArgSet fConditionalObs
virtual void EnableDetailedOutput(bool e=true)
std::unique_ptr< RooAbsReal > fNllAlt
! transient copy of the alt NLL
const TString GetVarName() const override
std::unique_ptr< RooAbsReal > fNllNull
! transient copy of the null NLL
RooArgSet * fAltParameters
void SetNullParameters(const RooArgSet &nullParameters)
SimpleLikelihoodRatioTestStat(RooAbsPdf &nullPdf, RooAbsPdf &altPdf)
Takes null and alternate parameters from PDF. Can be overridden.
SimpleLikelihoodRatioTestStat()=default
Constructor for proof. Do not use.
static bool fgAlwaysReuseNll
bool fDetailedOutputEnabled
bool ParamsAreEqual()
this should be possible with RooAbsCollection
~SimpleLikelihoodRatioTestStat() override
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 SetAltParameters(const RooArgSet &altParameters)
RooArgSet * fNullParameters
const RooArgSet * GetDetailedOutput(void) const override
return detailed output: for fits this can be pulls, processing time, ... The returned pointer will no...
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
Namespace for the RooStats classes.