ROOT  6.06/09
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

RooStats::SimpleLikelihoodRatioTestStat::SimpleLikelihoodRatioTestStat ( )
inline

Definition at line 52 of file SimpleLikelihoodRatioTestStat.h.

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

Definition at line 67 of file SimpleLikelihoodRatioTestStat.h.

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

Definition at line 94 of file SimpleLikelihoodRatioTestStat.h.

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

Definition at line 119 of file SimpleLikelihoodRatioTestStat.h.

Member Function Documentation

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

Definition at line 174 of file SimpleLikelihoodRatioTestStat.h.

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.

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.

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

Implements RooStats::TestStatistic.

Definition at line 177 of file SimpleLikelihoodRatioTestStat.h.

bool RooStats::SimpleLikelihoodRatioTestStat::ParamsAreEqual ( )
inline

Definition at line 148 of file SimpleLikelihoodRatioTestStat.h.

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

Definition at line 140 of file SimpleLikelihoodRatioTestStat.h.

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

Definition at line 17 of file SimpleLikelihoodRatioTestStat.cxx.

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

Definition at line 169 of file SimpleLikelihoodRatioTestStat.h.

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

Definition at line 132 of file SimpleLikelihoodRatioTestStat.h.

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

Definition at line 129 of file SimpleLikelihoodRatioTestStat.h.

Member Data Documentation

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fAltParameters
private
RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fAltPdf
private

Definition at line 184 of file SimpleLikelihoodRatioTestStat.h.

Referenced by SimpleLikelihoodRatioTestStat().

RooArgSet RooStats::SimpleLikelihoodRatioTestStat::fConditionalObs
private

Definition at line 187 of file SimpleLikelihoodRatioTestStat.h.

Referenced by SetConditionalObservables().

RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutput
private
bool RooStats::SimpleLikelihoodRatioTestStat::fDetailedOutputEnabled
private
bool RooStats::SimpleLikelihoodRatioTestStat::fFirstEval
private
Bool_t RooStats::SimpleLikelihoodRatioTestStat::fgAlwaysReuseNll = kTRUE
staticprivate

transient copy of the alt NLL

Definition at line 195 of file SimpleLikelihoodRatioTestStat.h.

Referenced by SetAlwaysReuseNLL().

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllAlt
private

transient copy of the null NLL

Definition at line 194 of file SimpleLikelihoodRatioTestStat.h.

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

RooAbsReal* RooStats::SimpleLikelihoodRatioTestStat::fNllNull
private
RooArgSet* RooStats::SimpleLikelihoodRatioTestStat::fNullParameters
private
RooAbsPdf* RooStats::SimpleLikelihoodRatioTestStat::fNullPdf
private

Definition at line 183 of file SimpleLikelihoodRatioTestStat.h.

Referenced by SimpleLikelihoodRatioTestStat().

Bool_t RooStats::SimpleLikelihoodRatioTestStat::fReuseNll
private

Definition at line 196 of file SimpleLikelihoodRatioTestStat.h.

Referenced by SetReuseNLL(), and SimpleLikelihoodRatioTestStat().


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