ROOT  6.06/09
Reference Guide
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
RooStats::ProfileLikelihoodTestStat Class Reference

ProfileLikelihoodTestStat is an implementation of the TestStatistic interface that calculates the profile likelihood ratio at a particular parameter point given a dataset.

It does not constitute a statistical test, for that one may either use:

the ProfileLikelihoodCalculator that relies on asymptotic properties of the Profile Likelihood Ratio the Neyman Construction classes with this class as a test statistic the Hybrid Calculator class with this class as a test statistic

Definition at line 57 of file ProfileLikelihoodTestStat.h.

Public Member Functions

 ProfileLikelihoodTestStat ()
 
 ProfileLikelihoodTestStat (RooAbsPdf &pdf)
 
virtual ~ProfileLikelihoodTestStat ()
 
void SetOneSided (Bool_t flag=true)
 
void SetOneSidedDiscovery (Bool_t flag=true)
 
void SetSigned (Bool_t flag=true)
 
bool IsTwoSided () const
 
bool IsOneSidedDiscovery () const
 
void SetReuseNLL (Bool_t flag)
 
void SetLOffset (Bool_t flag=kTRUE)
 
void SetMinimizer (const char *minimizer)
 
void SetStrategy (Int_t strategy)
 
void SetTolerance (double tol)
 
void SetPrintLevel (Int_t printlevel)
 
virtual Double_t Evaluate (RooAbsData &data, RooArgSet &paramsOfInterest)
 Main interface to evaluate the test statistic on a dataset given the values for the Null Parameters Of Interest. More...
 
virtual Double_t EvaluateProfileLikelihood (int type, RooAbsData &data, RooArgSet &paramsOfInterest)
 
virtual void EnableDetailedOutput (bool e=true, bool withErrorsAndPulls=false)
 
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 void SetConditionalObservables (const RooArgSet &set)
 
virtual void SetVarName (const char *name)
 
virtual const TString GetVarName () const
 
virtual RooAbsPdfGetPdf () 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 Types

enum  LimitType { twoSided, oneSided, oneSidedDiscovery }
 

Private Member Functions

RooFitResultGetMinNLL ()
 

Private Attributes

RooAbsPdffPdf
 
RooAbsRealfNll
 
const RooArgSetfCachedBestFitParams
 
RooAbsDatafLastData
 
LimitType fLimitType
 
Bool_t fSigned
 
bool fDetailedOutputEnabled
 
bool fDetailedOutputWithErrorsAndPulls
 
RooArgSetfDetailedOutput
 
RooArgSet fConditionalObs
 
TString fVarName
 
Bool_t fReuseNll
 
TString fMinimizer
 
Int_t fStrategy
 
Double_t fTolerance
 
Int_t fPrintLevel
 
Bool_t fLOffset
 

Static Private Attributes

static Bool_t fgAlwaysReuseNll = kTRUE
 

#include <RooStats/ProfileLikelihoodTestStat.h>

+ Inheritance diagram for RooStats::ProfileLikelihoodTestStat:
+ Collaboration diagram for RooStats::ProfileLikelihoodTestStat:

Constructor & Destructor Documentation

RooStats::ProfileLikelihoodTestStat::ProfileLikelihoodTestStat ( )
inline

Definition at line 62 of file ProfileLikelihoodTestStat.h.

RooStats::ProfileLikelihoodTestStat::ProfileLikelihoodTestStat ( RooAbsPdf pdf)
inline

Definition at line 83 of file ProfileLikelihoodTestStat.h.

virtual RooStats::ProfileLikelihoodTestStat::~ProfileLikelihoodTestStat ( )
inlinevirtual

Definition at line 104 of file ProfileLikelihoodTestStat.h.

Member Function Documentation

virtual void RooStats::ProfileLikelihoodTestStat::EnableDetailedOutput ( bool  e = true,
bool  withErrorsAndPulls = false 
)
inlinevirtual
virtual Double_t RooStats::ProfileLikelihoodTestStat::Evaluate ( RooAbsData data,
RooArgSet nullPOI 
)
inlinevirtual

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 131 of file ProfileLikelihoodTestStat.h.

Double_t RooStats::ProfileLikelihoodTestStat::EvaluateProfileLikelihood ( int  type,
RooAbsData data,
RooArgSet paramsOfInterest 
)
virtual

Definition at line 33 of file ProfileLikelihoodTestStat.cxx.

Referenced by RooStats::MinNLLTestStat::Evaluate(), and Evaluate().

virtual const RooArgSet* RooStats::ProfileLikelihoodTestStat::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 144 of file ProfileLikelihoodTestStat.h.

Referenced by RooStats::MinNLLTestStat::GetDetailedOutput().

RooFitResult * RooStats::ProfileLikelihoodTestStat::GetMinNLL ( )
private

Definition at line 276 of file ProfileLikelihoodTestStat.cxx.

virtual RooAbsPdf* RooStats::ProfileLikelihoodTestStat::GetPdf ( ) const
inlinevirtual
virtual const TString RooStats::ProfileLikelihoodTestStat::GetVarName ( ) const
inlinevirtual
bool RooStats::ProfileLikelihoodTestStat::IsOneSidedDiscovery ( ) const
inline

Definition at line 118 of file ProfileLikelihoodTestStat.h.

bool RooStats::ProfileLikelihoodTestStat::IsTwoSided ( ) const
inline
void RooStats::ProfileLikelihoodTestStat::SetAlwaysReuseNLL ( Bool_t  flag)
static

Definition at line 31 of file ProfileLikelihoodTestStat.cxx.

virtual void RooStats::ProfileLikelihoodTestStat::SetConditionalObservables ( const RooArgSet set)
inlinevirtual
void RooStats::ProfileLikelihoodTestStat::SetLOffset ( Bool_t  flag = kTRUE)
inline

Definition at line 123 of file ProfileLikelihoodTestStat.h.

Referenced by RooStats::MinNLLTestStat::SetLOffset().

void RooStats::ProfileLikelihoodTestStat::SetMinimizer ( const char *  minimizer)
inline
void RooStats::ProfileLikelihoodTestStat::SetOneSided ( Bool_t  flag = true)
inline

Definition at line 112 of file ProfileLikelihoodTestStat.h.

Referenced by RooStats::MinNLLTestStat::SetOneSided().

void RooStats::ProfileLikelihoodTestStat::SetOneSidedDiscovery ( Bool_t  flag = true)
inline
void RooStats::ProfileLikelihoodTestStat::SetPrintLevel ( Int_t  printlevel)
inline
void RooStats::ProfileLikelihoodTestStat::SetReuseNLL ( Bool_t  flag)
inline
void RooStats::ProfileLikelihoodTestStat::SetSigned ( Bool_t  flag = true)
inline

Definition at line 114 of file ProfileLikelihoodTestStat.h.

void RooStats::ProfileLikelihoodTestStat::SetStrategy ( Int_t  strategy)
inline
void RooStats::ProfileLikelihoodTestStat::SetTolerance ( double  tol)
inline
virtual void RooStats::ProfileLikelihoodTestStat::SetVarName ( const char *  name)
inlinevirtual

Definition at line 158 of file ProfileLikelihoodTestStat.h.

Referenced by RooStats::MinNLLTestStat::SetVarName().

Member Data Documentation

const RooArgSet* RooStats::ProfileLikelihoodTestStat::fCachedBestFitParams
private
RooArgSet RooStats::ProfileLikelihoodTestStat::fConditionalObs
private

Definition at line 185 of file ProfileLikelihoodTestStat.h.

Referenced by SetConditionalObservables().

RooArgSet* RooStats::ProfileLikelihoodTestStat::fDetailedOutput
private
bool RooStats::ProfileLikelihoodTestStat::fDetailedOutputEnabled
private

Definition at line 182 of file ProfileLikelihoodTestStat.h.

Referenced by EnableDetailedOutput(), and ProfileLikelihoodTestStat().

bool RooStats::ProfileLikelihoodTestStat::fDetailedOutputWithErrorsAndPulls
private

Definition at line 183 of file ProfileLikelihoodTestStat.h.

Referenced by EnableDetailedOutput(), and ProfileLikelihoodTestStat().

Bool_t RooStats::ProfileLikelihoodTestStat::fgAlwaysReuseNll = kTRUE
staticprivate

Definition at line 189 of file ProfileLikelihoodTestStat.h.

RooAbsData* RooStats::ProfileLikelihoodTestStat::fLastData
private

Definition at line 175 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat().

LimitType RooStats::ProfileLikelihoodTestStat::fLimitType
private
Bool_t RooStats::ProfileLikelihoodTestStat::fLOffset
private

Definition at line 195 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat(), and SetLOffset().

TString RooStats::ProfileLikelihoodTestStat::fMinimizer
private

Definition at line 191 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat(), and SetMinimizer().

RooAbsReal* RooStats::ProfileLikelihoodTestStat::fNll
private
RooAbsPdf* RooStats::ProfileLikelihoodTestStat::fPdf
private

Definition at line 172 of file ProfileLikelihoodTestStat.h.

Referenced by GetPdf(), and ProfileLikelihoodTestStat().

Int_t RooStats::ProfileLikelihoodTestStat::fPrintLevel
private

Definition at line 194 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat(), and SetPrintLevel().

Bool_t RooStats::ProfileLikelihoodTestStat::fReuseNll
private

Definition at line 190 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat(), and SetReuseNLL().

Bool_t RooStats::ProfileLikelihoodTestStat::fSigned
private

Definition at line 178 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat(), and SetSigned().

Int_t RooStats::ProfileLikelihoodTestStat::fStrategy
private

Definition at line 192 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat(), and SetStrategy().

Double_t RooStats::ProfileLikelihoodTestStat::fTolerance
private

Definition at line 193 of file ProfileLikelihoodTestStat.h.

Referenced by ProfileLikelihoodTestStat(), and SetTolerance().

TString RooStats::ProfileLikelihoodTestStat::fVarName
private

Definition at line 187 of file ProfileLikelihoodTestStat.h.

Referenced by GetVarName(), ProfileLikelihoodTestStat(), and SetVarName().


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