11#ifndef ROOSTATS_SimpleLikelihoodRatioTestStat
12#define ROOSTATS_SimpleLikelihoodRatioTestStat
136 if (null->getVal() != alt->
getVal()) ret =
false;
159 return "log(L(#mu_{1}) / L(#mu_{0}))";
#define ClassDef(name, id)
RooArgSet * getVariables(Bool_t stripDisconnected=kTRUE) const
Return RooArgSet with all variables (tree leaf nodes of expresssion tree)
virtual void removeAll()
Remove all arguments from our set, deleting them if we own them.
Bool_t equals(const RooAbsCollection &otherColl) const
Check if this and other collection have identically-named contents.
TIterator * createIterator(Bool_t dir=kIterForward) const
TIterator-style iteration over contained elements.
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t 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.
Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE) override
Add element to non-owning set.
TestStatistic class that returns -log(L[null] / L[alt]) where L is the likelihood.
virtual ~SimpleLikelihoodRatioTestStat()
virtual void SetConditionalObservables(const RooArgSet &set)
interface to set conditional observables. If a test statistics needs them it will re-implement this f...
SimpleLikelihoodRatioTestStat(RooAbsPdf &nullPdf, RooAbsPdf &altPdf, const RooArgSet &nullParameters, const RooArgSet &altParameters)
SimpleLikelihoodRatioTestStat()
RooArgSet fConditionalObs
virtual void EnableDetailedOutput(bool e=true)
void SetReuseNLL(Bool_t flag)
RooArgSet * fAltParameters
virtual const RooArgSet * GetDetailedOutput(void) const
return detailed output: for fits this can be pulls, processing time, ... The returned pointer will no...
void SetNullParameters(const RooArgSet &nullParameters)
SimpleLikelihoodRatioTestStat(RooAbsPdf &nullPdf, RooAbsPdf &altPdf)
virtual void SetGlobalObservables(const RooArgSet &set)
interface to set global observables. If a test statistics needs them it will re-implement this functi...
bool fDetailedOutputEnabled
RooAbsReal * fNllAlt
transient copy of the null NLL
virtual const TString GetVarName() const
RooArgSet * fDetailedOutput
static Bool_t fgAlwaysReuseNll
transient copy of the alt NLL
static void SetAlwaysReuseNLL(Bool_t flag)
void SetAltParameters(const RooArgSet &altParameters)
RooArgSet * fNullParameters
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &nullPOI)
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters O...
TestStatistic is an interface class to provide a facility for construction test statistics distributi...
Iterator abstract base class.
virtual TObject * Next()=0
Namespace for the RooStats classes.