TestStatistic class that returns -log(L[null] / L[alt]) where L is the likelihood.
It is often called as the LEP Test statistic.
Definition at line 23 of file SimpleLikelihoodRatioTestStat.h.
Public Member Functions | |
SimpleLikelihoodRatioTestStat ()=default | |
Constructor for proof. Do not use. | |
SimpleLikelihoodRatioTestStat (RooAbsPdf &nullPdf, RooAbsPdf &altPdf) | |
Takes null and alternate parameters from PDF. Can be overridden. | |
SimpleLikelihoodRatioTestStat (RooAbsPdf &nullPdf, RooAbsPdf &altPdf, const RooArgSet &nullParameters, const RooArgSet &altParameters) | |
Takes null and alternate parameters from values in nullParameters and altParameters. | |
~SimpleLikelihoodRatioTestStat () override | |
virtual void | EnableDetailedOutput (bool e=true) |
double | Evaluate (RooAbsData &data, RooArgSet &nullPOI) override |
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters Of Interest. | |
const RooArgSet * | GetDetailedOutput (void) const override |
return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate. | |
const TString | GetVarName () const override |
TClass * | IsA () const override |
bool | ParamsAreEqual () |
this should be possible with RooAbsCollection | |
void | SetAltParameters (const RooArgSet &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 normalized on the conditional observables when computing the NLL | |
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 normalized correctly on the global observables when computing the NLL | |
void | SetNullParameters (const RooArgSet &nullParameters) |
void | SetReuseNLL (bool flag) |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
![]() | |
virtual | ~TestStatistic () |
virtual bool | PValueIsRightTail (void) const |
Defines the sign convention of the test statistic. Overwrite function if necessary. | |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static void | SetAlwaysReuseNLL (bool flag) |
![]() | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Attributes | |
RooArgSet * | fAltParameters = nullptr |
RooAbsPdf * | fAltPdf = nullptr |
RooArgSet | fConditionalObs |
std::unique_ptr< RooArgSet > | fDetailedOutput |
! | |
bool | fDetailedOutputEnabled = false |
bool | fFirstEval = true |
RooArgSet | fGlobalObs |
std::unique_ptr< RooAbsReal > | fNllAlt |
! transient copy of the alt NLL | |
std::unique_ptr< RooAbsReal > | fNllNull |
! transient copy of the null NLL | |
RooArgSet * | fNullParameters = nullptr |
RooAbsPdf * | fNullPdf = nullptr |
bool | fReuseNll = false |
Static Private Attributes | |
static bool | fgAlwaysReuseNll = true |
#include <RooStats/SimpleLikelihoodRatioTestStat.h>
|
default |
Constructor for proof. Do not use.
|
inline |
Takes null and alternate parameters from PDF. Can be overridden.
Definition at line 31 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Takes null and alternate parameters from values in nullParameters and altParameters.
Can be overridden.
Definition at line 44 of file SimpleLikelihoodRatioTestStat.h.
|
inlineoverride |
Definition at line 53 of file SimpleLikelihoodRatioTestStat.h.
|
inlinestaticconstexpr |
Definition at line 128 of file SimpleLikelihoodRatioTestStat.h.
Definition at line 128 of file SimpleLikelihoodRatioTestStat.h.
|
inlinevirtual |
Definition at line 102 of file SimpleLikelihoodRatioTestStat.h.
|
overridevirtual |
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters Of Interest.
Implements RooStats::TestStatistic.
Definition at line 30 of file SimpleLikelihoodRatioTestStat.cxx.
|
inlineoverridevirtual |
return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate.
Reimplemented from RooStats::TestStatistic.
Definition at line 103 of file SimpleLikelihoodRatioTestStat.h.
Implements RooStats::TestStatistic.
Definition at line 105 of file SimpleLikelihoodRatioTestStat.h.
|
inlineoverridevirtual |
Reimplemented from RooStats::TestStatistic.
Definition at line 128 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
this should be possible with RooAbsCollection
Definition at line 75 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Definition at line 68 of file SimpleLikelihoodRatioTestStat.h.
|
static |
Definition at line 28 of file SimpleLikelihoodRatioTestStat.cxx.
|
inlineoverridevirtual |
set the conditional observables which will be used when creating the NLL so the pdf's will not be normalized on the conditional observables when computing the NLL
Reimplemented from RooStats::TestStatistic.
Definition at line 94 of file SimpleLikelihoodRatioTestStat.h.
|
inlineoverridevirtual |
set the global observables which will be used when creating the NLL so the constraint pdf's will be normalized correctly on the global observables when computing the NLL
Reimplemented from RooStats::TestStatistic.
Definition at line 98 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Definition at line 62 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Definition at line 60 of file SimpleLikelihoodRatioTestStat.h.
|
overridevirtual |
Reimplemented from RooStats::TestStatistic.
|
inline |
Definition at line 128 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 114 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 112 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 115 of file SimpleLikelihoodRatioTestStat.h.
|
private |
!
Definition at line 120 of file SimpleLikelihoodRatioTestStat.h.
Definition at line 119 of file SimpleLikelihoodRatioTestStat.h.
Definition at line 117 of file SimpleLikelihoodRatioTestStat.h.
Definition at line 124 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 116 of file SimpleLikelihoodRatioTestStat.h.
|
private |
! transient copy of the alt NLL
Definition at line 123 of file SimpleLikelihoodRatioTestStat.h.
|
private |
! transient copy of the null NLL
Definition at line 122 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 113 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 111 of file SimpleLikelihoodRatioTestStat.h.
Definition at line 125 of file SimpleLikelihoodRatioTestStat.h.