ROOT  6.06/08
Reference Guide
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 ()
 
void SetReuseNLL (Bool_t flag)
 
void SetNullParameters (const RooArgSet &nullParameters)
 
void SetAltParameters (const RooArgSet &altParameters)
 
bool ParamsAreEqual ()
 
virtual void SetConditionalObservables (const RooArgSet &set)
 
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 void EnableDetailedOutput (bool e=true)
 
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
 
- 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

RooAbsPdffNullPdf
 
RooAbsPdffAltPdf
 
RooArgSetfNullParameters
 
RooArgSetfAltParameters
 
RooArgSet fConditionalObs
 
bool fFirstEval
 
bool fDetailedOutputEnabled
 
RooArgSetfDetailedOutput
 
RooAbsRealfNllNull
 
RooAbsRealfNllAlt
 transient copy of the null NLL More...
 
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:
+ Collaboration diagram for RooStats::SimpleLikelihoodRatioTestStat:

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.

Referenced by SetConditionalObservables().

§ 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.

Referenced by Evaluate().

§ 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.

Referenced by ~SimpleLikelihoodRatioTestStat().

§ 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

§ fAltPdf

RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fAltPdf
private

Definition at line 184 of file SimpleLikelihoodRatioTestStat.h.

Referenced by Evaluate(), and SimpleLikelihoodRatioTestStat().

§ fConditionalObs

RooArgSet RooStats::SimpleLikelihoodRatioTestStat::fConditionalObs
private

Definition at line 187 of file SimpleLikelihoodRatioTestStat.h.

Referenced by Evaluate(), and SetConditionalObservables().

§ fDetailedOutput

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutput
private

§ fDetailedOutputEnabled

bool RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutputEnabled
private

§ fFirstEval

bool RooStats::SimpleLikelihoodRatioTestStat::fFirstEval
private

§ fgAlwaysReuseNll

Bool_t RooStats::SimpleLikelihoodRatioTestStat::fgAlwaysReuseNll = kTRUE
staticprivate

transient copy of the alt NLL

Definition at line 195 of file SimpleLikelihoodRatioTestStat.h.

Referenced by Evaluate(), and SetAlwaysReuseNLL().

§ fNllAlt

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllAlt
private

transient copy of the null NLL

Definition at line 194 of file SimpleLikelihoodRatioTestStat.h.

Referenced by Evaluate(), SimpleLikelihoodRatioTestStat(), and ~SimpleLikelihoodRatioTestStat().

§ fNllNull

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllNull
private

§ fNullParameters

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fNullParameters
private

§ fNullPdf

RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fNullPdf
private

Definition at line 183 of file SimpleLikelihoodRatioTestStat.h.

Referenced by Evaluate(), and SimpleLikelihoodRatioTestStat().

§ fReuseNll

Bool_t RooStats::SimpleLikelihoodRatioTestStat::fReuseNll
private

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