Logo ROOT   6.08/07
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 47 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)
 
void SetNullParameters (const RooArgSet &nullParameters)
 
void SetReuseNLL (Bool_t flag)
 
- Public Member Functions inherited from RooStats::TestStatistic
virtual ~TestStatistic ()
 
virtual bool PValueIsRightTail (void) const
 Defines the sign convention of the test statistic. Overwrite function if necessary. More...
 

Static Public Member Functions

static void SetAlwaysReuseNLL (Bool_t flag)
 

Private Attributes

RooArgSetfAltParameters
 
RooAbsPdffAltPdf
 
RooArgSet fConditionalObs
 
RooArgSetfDetailedOutput
 
bool fDetailedOutputEnabled
 
bool fFirstEval
 
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 52 of file SimpleLikelihoodRatioTestStat.h.

◆ SimpleLikelihoodRatioTestStat() [2/3]

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

Definition at line 67 of file SimpleLikelihoodRatioTestStat.h.

◆ SimpleLikelihoodRatioTestStat() [3/3]

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

Definition at line 94 of file SimpleLikelihoodRatioTestStat.h.

◆ ~SimpleLikelihoodRatioTestStat()

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

Definition at line 119 of file SimpleLikelihoodRatioTestStat.h.

Member Function Documentation

◆ EnableDetailedOutput()

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

Definition at line 174 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 19 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 175 of file SimpleLikelihoodRatioTestStat.h.

◆ GetVarName()

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

Implements RooStats::TestStatistic.

Definition at line 177 of file SimpleLikelihoodRatioTestStat.h.

◆ ParamsAreEqual()

bool RooStats::SimpleLikelihoodRatioTestStat::ParamsAreEqual ( )
inline

Definition at line 148 of file SimpleLikelihoodRatioTestStat.h.

◆ SetAltParameters()

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

Definition at line 140 of file SimpleLikelihoodRatioTestStat.h.

◆ SetAlwaysReuseNLL()

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

Definition at line 17 of file SimpleLikelihoodRatioTestStat.cxx.

◆ SetConditionalObservables()

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

Definition at line 169 of file SimpleLikelihoodRatioTestStat.h.

◆ SetNullParameters()

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

Definition at line 132 of file SimpleLikelihoodRatioTestStat.h.

◆ SetReuseNLL()

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

Definition at line 129 of file SimpleLikelihoodRatioTestStat.h.

Member Data Documentation

◆ fAltParameters

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fAltParameters
private

Definition at line 186 of file SimpleLikelihoodRatioTestStat.h.

◆ fAltPdf

RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fAltPdf
private

Definition at line 184 of file SimpleLikelihoodRatioTestStat.h.

◆ fConditionalObs

RooArgSet RooStats::SimpleLikelihoodRatioTestStat::fConditionalObs
private

Definition at line 187 of file SimpleLikelihoodRatioTestStat.h.

◆ fDetailedOutput

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutput
private

Definition at line 191 of file SimpleLikelihoodRatioTestStat.h.

◆ fDetailedOutputEnabled

bool RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutputEnabled
private

Definition at line 190 of file SimpleLikelihoodRatioTestStat.h.

◆ fFirstEval

bool RooStats::SimpleLikelihoodRatioTestStat::fFirstEval
private

Definition at line 188 of file SimpleLikelihoodRatioTestStat.h.

◆ fgAlwaysReuseNll

Bool_t RooStats::SimpleLikelihoodRatioTestStat::fgAlwaysReuseNll = kTRUE
staticprivate

transient copy of the alt NLL

Definition at line 195 of file SimpleLikelihoodRatioTestStat.h.

◆ fNllAlt

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllAlt
private

transient copy of the null NLL

Definition at line 194 of file SimpleLikelihoodRatioTestStat.h.

◆ fNllNull

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllNull
private

Definition at line 193 of file SimpleLikelihoodRatioTestStat.h.

◆ fNullParameters

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fNullParameters
private

Definition at line 185 of file SimpleLikelihoodRatioTestStat.h.

◆ fNullPdf

RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fNullPdf
private

Definition at line 183 of file SimpleLikelihoodRatioTestStat.h.

◆ fReuseNll

Bool_t RooStats::SimpleLikelihoodRatioTestStat::fReuseNll
private

Definition at line 196 of file SimpleLikelihoodRatioTestStat.h.


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