Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
RooStats::SimpleLikelihoodRatioTestStat Class Reference

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 24 of file SimpleLikelihoodRatioTestStat.h.

Public Member Functions

 SimpleLikelihoodRatioTestStat ()
 
 SimpleLikelihoodRatioTestStat (RooAbsPdf &nullPdf, RooAbsPdf &altPdf)
 
 SimpleLikelihoodRatioTestStat (RooAbsPdf &nullPdf, RooAbsPdf &altPdf, const RooArgSet &nullParameters, const RooArgSet &altParameters)
 
virtual ~SimpleLikelihoodRatioTestStat ()
 
virtual void EnableDetailedOutput (bool e=true)
 
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 Of Interest. More...
 
virtual const RooArgSetGetDetailedOutput (void) const
 return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate. More...
 
virtual const TString GetVarName () const
 
bool ParamsAreEqual ()
 
void SetAltParameters (const RooArgSet &altParameters)
 
virtual void SetConditionalObservables (const RooArgSet &set)
 interface to set conditional observables. If a test statistics needs them it will re-implement this function More...
 
virtual void SetGlobalObservables (const RooArgSet &set)
 interface to set global observables. If a test statistics needs them it will re-implement this function More...
 
void SetNullParameters (const RooArgSet &nullParameters)
 
void SetReuseNLL (Bool_t flag)
 
- Public Member Functions inherited from RooStats::TestStatistic
virtual ~TestStatistic ()
 
virtual Double_t 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. More...
 
virtual const RooArgSetGetDetailedOutput () const
 return detailed output: for fits this can be pulls, processing time, ... The returned pointer will not loose validity until another call to Evaluate. More...
 
virtual const TString GetVarName () const =0
 
virtual bool PValueIsRightTail (void) const
 Defines the sign convention of the test statistic. Overwrite function if necessary. More...
 
virtual void SetConditionalObservables (const RooArgSet &)
 interface to set conditional observables. If a test statistics needs them it will re-implement this function More...
 
virtual void SetGlobalObservables (const RooArgSet &)
 interface to set global observables. If a test statistics needs them it will re-implement this function More...
 

Static Public Member Functions

static void SetAlwaysReuseNLL (Bool_t flag)
 

Private Attributes

RooArgSetfAltParameters
 
RooAbsPdffAltPdf
 
RooArgSet fConditionalObs
 
RooArgSetfDetailedOutput
 
bool fDetailedOutputEnabled
 
bool fFirstEval
 
RooArgSet fGlobalObs
 
RooAbsRealfNllAlt
 transient copy of the null NLL More...
 
RooAbsRealfNllNull
 
RooArgSetfNullParameters
 
RooAbsPdffNullPdf
 
Bool_t fReuseNll
 

Static Private Attributes

static Bool_t fgAlwaysReuseNll = kTRUE
 transient copy of the alt NLL More...
 

#include <RooStats/SimpleLikelihoodRatioTestStat.h>

Inheritance diagram for RooStats::SimpleLikelihoodRatioTestStat:
[legend]

Constructor & Destructor Documentation

◆ SimpleLikelihoodRatioTestStat() [1/3]

RooStats::SimpleLikelihoodRatioTestStat::SimpleLikelihoodRatioTestStat ( )
inline

Definition at line 29 of file SimpleLikelihoodRatioTestStat.h.

◆ SimpleLikelihoodRatioTestStat() [2/3]

RooStats::SimpleLikelihoodRatioTestStat::SimpleLikelihoodRatioTestStat ( RooAbsPdf nullPdf,
RooAbsPdf altPdf 
)
inline

Definition at line 44 of file SimpleLikelihoodRatioTestStat.h.

◆ SimpleLikelihoodRatioTestStat() [3/3]

RooStats::SimpleLikelihoodRatioTestStat::SimpleLikelihoodRatioTestStat ( RooAbsPdf nullPdf,
RooAbsPdf altPdf,
const RooArgSet nullParameters,
const RooArgSet altParameters 
)
inline

Definition at line 71 of file SimpleLikelihoodRatioTestStat.h.

◆ ~SimpleLikelihoodRatioTestStat()

virtual RooStats::SimpleLikelihoodRatioTestStat::~SimpleLikelihoodRatioTestStat ( )
inlinevirtual

Definition at line 96 of file SimpleLikelihoodRatioTestStat.h.

Member Function Documentation

◆ EnableDetailedOutput()

virtual void RooStats::SimpleLikelihoodRatioTestStat::EnableDetailedOutput ( bool  e = true)
inlinevirtual

Definition at line 155 of file SimpleLikelihoodRatioTestStat.h.

◆ Evaluate()

Double_t RooStats::SimpleLikelihoodRatioTestStat::Evaluate ( RooAbsData data,
RooArgSet nullPOI 
)
virtual

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.

◆ GetDetailedOutput()

virtual const RooArgSet * RooStats::SimpleLikelihoodRatioTestStat::GetDetailedOutput ( void  ) const
inlinevirtual

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 156 of file SimpleLikelihoodRatioTestStat.h.

◆ GetVarName()

virtual const TString RooStats::SimpleLikelihoodRatioTestStat::GetVarName ( ) const
inlinevirtual

Implements RooStats::TestStatistic.

Definition at line 158 of file SimpleLikelihoodRatioTestStat.h.

◆ ParamsAreEqual()

bool RooStats::SimpleLikelihoodRatioTestStat::ParamsAreEqual ( )
inline

Definition at line 125 of file SimpleLikelihoodRatioTestStat.h.

◆ SetAltParameters()

void RooStats::SimpleLikelihoodRatioTestStat::SetAltParameters ( const RooArgSet altParameters)
inline

Definition at line 117 of file SimpleLikelihoodRatioTestStat.h.

◆ SetAlwaysReuseNLL()

void RooStats::SimpleLikelihoodRatioTestStat::SetAlwaysReuseNLL ( Bool_t  flag)
static

Definition at line 28 of file SimpleLikelihoodRatioTestStat.cxx.

◆ SetConditionalObservables()

virtual void RooStats::SimpleLikelihoodRatioTestStat::SetConditionalObservables ( const RooArgSet )
inlinevirtual

interface to set conditional observables. If a test statistics needs them it will re-implement this function

Reimplemented from RooStats::TestStatistic.

Definition at line 146 of file SimpleLikelihoodRatioTestStat.h.

◆ SetGlobalObservables()

virtual void RooStats::SimpleLikelihoodRatioTestStat::SetGlobalObservables ( const RooArgSet )
inlinevirtual

interface to set global observables. If a test statistics needs them it will re-implement this function

Reimplemented from RooStats::TestStatistic.

Definition at line 150 of file SimpleLikelihoodRatioTestStat.h.

◆ SetNullParameters()

void RooStats::SimpleLikelihoodRatioTestStat::SetNullParameters ( const RooArgSet nullParameters)
inline

Definition at line 109 of file SimpleLikelihoodRatioTestStat.h.

◆ SetReuseNLL()

void RooStats::SimpleLikelihoodRatioTestStat::SetReuseNLL ( Bool_t  flag)
inline

Definition at line 106 of file SimpleLikelihoodRatioTestStat.h.

Member Data Documentation

◆ fAltParameters

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fAltParameters
private

Definition at line 167 of file SimpleLikelihoodRatioTestStat.h.

◆ fAltPdf

RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fAltPdf
private

Definition at line 165 of file SimpleLikelihoodRatioTestStat.h.

◆ fConditionalObs

RooArgSet RooStats::SimpleLikelihoodRatioTestStat::fConditionalObs
private

Definition at line 168 of file SimpleLikelihoodRatioTestStat.h.

◆ fDetailedOutput

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutput
private

Definition at line 173 of file SimpleLikelihoodRatioTestStat.h.

◆ fDetailedOutputEnabled

bool RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutputEnabled
private

Definition at line 172 of file SimpleLikelihoodRatioTestStat.h.

◆ fFirstEval

bool RooStats::SimpleLikelihoodRatioTestStat::fFirstEval
private

Definition at line 170 of file SimpleLikelihoodRatioTestStat.h.

◆ fgAlwaysReuseNll

Bool_t RooStats::SimpleLikelihoodRatioTestStat::fgAlwaysReuseNll = kTRUE
staticprivate

transient copy of the alt NLL

Definition at line 177 of file SimpleLikelihoodRatioTestStat.h.

◆ fGlobalObs

RooArgSet RooStats::SimpleLikelihoodRatioTestStat::fGlobalObs
private

Definition at line 169 of file SimpleLikelihoodRatioTestStat.h.

◆ fNllAlt

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllAlt
private

transient copy of the null NLL

Definition at line 176 of file SimpleLikelihoodRatioTestStat.h.

◆ fNllNull

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllNull
private

Definition at line 175 of file SimpleLikelihoodRatioTestStat.h.

◆ fNullParameters

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fNullParameters
private

Definition at line 166 of file SimpleLikelihoodRatioTestStat.h.

◆ fNullPdf

RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fNullPdf
private

Definition at line 164 of file SimpleLikelihoodRatioTestStat.h.

◆ fReuseNll

Bool_t RooStats::SimpleLikelihoodRatioTestStat::fReuseNll
private

Definition at line 178 of file SimpleLikelihoodRatioTestStat.h.

Libraries for RooStats::SimpleLikelihoodRatioTestStat:
[legend]

The documentation for this class was generated from the following files: