1 #ifndef HiggsAnalysis_CombinedLimit_ProfiledLikelihoodRatioTestStatExt_h
2 #define HiggsAnalysis_CombinedLimit_ProfiledLikelihoodRatioTestStatExt_h
9 #include <RooAbsData.h>
10 #include <RooArgSet.h>
11 #include <RooStats/TestStatistic.h>
12 #include "../interface/RooSimultaneousOpt.h"
13 #include "../interface/CachingNLL.h"
22 const RooArgSet *nuisances,
const RooArgSet & paramsNull = RooArgSet(),
const RooArgSet & paramsAlt = RooArgSet(),
25 virtual Double_t
Evaluate(RooAbsData&
data, RooArgSet& nullPOI) ;
28 return TString::Format(
"-log(%s/%s)",
pdfNull_->GetName(),
pdfAlt_->GetName());
43 bool createNLL(RooAbsPdf &pdf, RooAbsData &data, std::auto_ptr<RooAbsReal> &nll) ;
45 double minNLL(std::auto_ptr<RooAbsReal> &nll) ;
55 const RooArgSet *nuisances,
56 const RooArgSet & params,
const RooArgSet & poi,
const RooArgList &gobsParams,
const RooArgList &gobs,
int verbosity=0,
OneSidedness oneSided =
oneSidedDef) ;
58 virtual Double_t
Evaluate(RooAbsData&
data, RooArgSet& nullPOI) ;
59 virtual std::vector<Double_t>
Evaluate(RooAbsData&
data, RooArgSet& nullPOI,
const std::vector<Double_t> &rVals) ;
61 virtual const TString
GetVarName()
const {
return "- log (#lambda)"; }
74 std::auto_ptr<RooAbsReal>
nll_;
81 double minNLL(
bool constrained, RooRealVar *
r=0) ;
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &nullPOI)
bool robustMinimize(RooAbsReal &nll, RooMinimizerOpt &minimizer, int verbosity=0)
std::auto_ptr< RooArgSet > paramsNull_
void setPrintLevel(Int_t level)
ProfiledLikelihoodTestStatOpt(const RooArgSet &observables, RooAbsPdf &pdf, const RooArgSet *nuisances, const RooArgSet ¶ms, const RooArgSet &poi, const RooArgList &gobsParams, const RooArgList &gobs, int verbosity=0, OneSidedness oneSided=oneSidedDef)
double minNLL(bool constrained, RooRealVar *r=0)
virtual const TString GetVarName() const
void setPrintLevel(Int_t level)
std::auto_ptr< RooAbsReal > nllAlt_
virtual Double_t Evaluate(RooAbsData &data, RooArgSet &nullPOI)
void SetOneSided(OneSidedness oneSided)
std::auto_ptr< RooArgSet > paramsAlt_
ProfiledLikelihoodRatioTestStatOpt(const RooArgSet &obs, RooAbsPdf &pdfNull, RooAbsPdf &pdfAlt, const RooArgSet *nuisances, const RooArgSet ¶msNull=RooArgSet(), const RooArgSet ¶msAlt=RooArgSet(), int verbosity=0)
double minNLL(std::auto_ptr< RooAbsReal > &nll)
std::auto_ptr< RooAbsReal > nllNull_
std::auto_ptr< RooArgSet > params_
std::auto_ptr< RooAbsReal > nll_
bool createNLL(RooAbsPdf &pdf, RooAbsData &data, std::auto_ptr< RooAbsReal > &nll)
char data[epos_bytes_allocation]
virtual const TString GetVarName() const
bool createNLL(RooAbsPdf &pdf, RooAbsData &data)