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 () | |
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 double | Evaluate (RooAbsData &data, RooArgSet &nullPOI)=0 |
Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters Of Interest. | |
virtual const RooArgSet * | GetDetailedOutput () const |
return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate. | |
virtual const TString | GetVarName () const =0 |
virtual TClass * | IsA () const |
virtual bool | PValueIsRightTail (void) const |
Defines the sign convention of the test statistic. Overwrite function if necessary. | |
virtual void | SetConditionalObservables (const RooArgSet &) |
interface to set conditional observables. If a test statistics needs them it will re-implement this function | |
virtual void | SetGlobalObservables (const RooArgSet &) |
interface to set global observables. If a test statistics needs them it will re-implement this function | |
virtual void | Streamer (TBuffer &) |
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 |
RooAbsPdf * | fAltPdf |
RooArgSet | fConditionalObs |
RooArgSet * | fDetailedOutput |
! | |
bool | fDetailedOutputEnabled |
bool | fFirstEval |
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 |
RooAbsPdf * | fNullPdf |
bool | fReuseNll |
Static Private Attributes | |
static bool | fgAlwaysReuseNll = true |
#include <RooStats/SimpleLikelihoodRatioTestStat.h>
|
inline |
Constructor for proof. Do not use.
Definition at line 28 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Takes null and alternate parameters from PDF. Can be overridden.
Definition at line 40 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Takes null and alternate parameters from values in nullParameters and altParameters.
Can be overridden.
Definition at line 63 of file SimpleLikelihoodRatioTestStat.h.
|
inlineoverride |
Definition at line 83 of file SimpleLikelihoodRatioTestStat.h.
|
static |
|
static |
|
inlinestaticconstexpr |
Definition at line 160 of file SimpleLikelihoodRatioTestStat.h.
|
inlinestatic |
Definition at line 160 of file SimpleLikelihoodRatioTestStat.h.
|
inlinevirtual |
Definition at line 133 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 134 of file SimpleLikelihoodRatioTestStat.h.
|
inlineoverridevirtual |
Implements RooStats::TestStatistic.
Definition at line 136 of file SimpleLikelihoodRatioTestStat.h.
|
inlineoverridevirtual |
Reimplemented from RooStats::TestStatistic.
Definition at line 160 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
this should be possible with RooAbsCollection
Definition at line 106 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Definition at line 99 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 125 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 129 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Definition at line 93 of file SimpleLikelihoodRatioTestStat.h.
|
inline |
Definition at line 91 of file SimpleLikelihoodRatioTestStat.h.
|
overridevirtual |
Reimplemented from RooStats::TestStatistic.
|
inline |
Definition at line 160 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 145 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 143 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 146 of file SimpleLikelihoodRatioTestStat.h.
|
private |
!
Definition at line 151 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 150 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 148 of file SimpleLikelihoodRatioTestStat.h.
|
staticprivate |
Definition at line 155 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 147 of file SimpleLikelihoodRatioTestStat.h.
|
private |
! transient copy of the alt NLL
Definition at line 154 of file SimpleLikelihoodRatioTestStat.h.
|
private |
! transient copy of the null NLL
Definition at line 153 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 144 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 142 of file SimpleLikelihoodRatioTestStat.h.
|
private |
Definition at line 156 of file SimpleLikelihoodRatioTestStat.h.