![]() |
![]() |
#include <SimplerLikelihoodRatioTestStatExt.h>
Public Member Functions | |
virtual Double_t | Evaluate (RooAbsData &data, RooArgSet &nullPOI) |
virtual const TString | GetVarName () const |
SimplerLikelihoodRatioTestStatOpt (const RooArgSet &obs, RooAbsPdf &pdfNull, RooAbsPdf &pdfAlt, const RooArgSet ¶msNull=RooArgSet(), const RooArgSet ¶msAlt=RooArgSet(), bool factorize=true) | |
virtual | ~SimplerLikelihoodRatioTestStatOpt () |
Private Member Functions | |
double | evalSimNLL (RooAbsData &data, RooSimultaneous *pdf, std::vector< RooAbsPdf * > &components) |
double | evalSimpleNLL (RooAbsData &data, RooAbsPdf *pdf) |
void | unrollSimPdf (RooSimultaneous *pdf, std::vector< RooAbsPdf * > &out) |
Private Attributes | |
const RooArgSet * | obs_ |
observables (global argset) More... | |
std::auto_ptr< RooArgSet > | paramsAlt_ |
std::auto_ptr< RooArgSet > | paramsNull_ |
parameter sets to apply snapshots to More... | |
RooAbsPdf * | pdfAlt_ |
std::auto_ptr< RooAbsPdf > | pdfAltOwned_ |
RooArgSet | pdfCompAlt_ |
RooArgSet | pdfCompNull_ |
snapshot with all branch nodes of the pdfs before factorization More... | |
RooArgList | pdfDepObs_ |
nodes which depend directly on observables, on which one has to do redirectServers More... | |
RooAbsPdf * | pdfNull_ |
pdfs (cloned, and with constraints factorized away) More... | |
std::auto_ptr< RooAbsPdf > | pdfNullOwned_ |
owned copy of the pdfs after factorizing More... | |
RooSimultaneous * | simPdfAlt_ |
std::vector< RooAbsPdf * > | simPdfComponentsAlt_ |
std::vector< RooAbsPdf * > | simPdfComponentsNull_ |
components of the sim pdfs after factorization, for each bin in sim. category. can contain nulls More... | |
RooSimultaneous * | simPdfNull_ |
pdfNull, pdfAlt cast to sympdf (may be null) after factorization More... | |
RooArgSet | snapAlt_ |
RooArgSet | snapNull_ |
snapshots of parameters for the two pdfs More... | |
BEGIN_HTML
SimplerLikelihoodRatioTestStatOpt: an optimized implementaion of the simple likelihood ratio test statistics Q = - ln( L(data|null) / L(data|alt) )
Optimization is obtained through the following methods:
Only one loop is performed on the dataset (since only one is necessary), and the data is not copied.
Author: Giovanni Petrucciani (UCSD/CMS/CERN), May 2011
END_HTML
Definition at line 34 of file SimplerLikelihoodRatioTestStatExt.h.
SimplerLikelihoodRatioTestStatOpt::SimplerLikelihoodRatioTestStatOpt | ( | const RooArgSet & | obs, |
RooAbsPdf & | pdfNull, | ||
RooAbsPdf & | pdfAlt, | ||
const RooArgSet & | paramsNull = RooArgSet() , |
||
const RooArgSet & | paramsAlt = RooArgSet() , |
||
bool | factorize = true |
||
) |
Create a SimplerLikelihoodRatioTestStatOpt. obs = the observables on which the two pdfs depend pdfNull, pdfAlt = pdfs of the two models paramsNull, paramsAlt = values of the parameters that should be set before evaluating the pdfs factorize: if set to true, the constraint terms not depending on the observables will be removed
Definition at line 4 of file SimplerLikelihoodRatioTestStatExt.cc.
References createBeamHaloJobs::constraints, utils::factorizePdf(), utils::fullClonePdf(), utils::getClients(), obs_, pdfAlt_, pdfAltOwned_, pdfCompAlt_, pdfCompNull_, pdfDepObs_, pdfNull_, pdfNullOwned_, simPdfAlt_, simPdfComponentsAlt_, simPdfComponentsNull_, simPdfNull_, snapAlt_, snapNull_, and unrollSimPdf().
|
virtual |
Definition at line 47 of file SimplerLikelihoodRatioTestStatExt.cc.
|
private |
Definition at line 106 of file SimplerLikelihoodRatioTestStatExt.cc.
References newFWLiteAna::bin, i, n, obs_, and w().
Referenced by Evaluate().
|
private |
Definition at line 139 of file SimplerLikelihoodRatioTestStatExt.cc.
References i, n, obs_, and w().
Referenced by Evaluate().
|
virtual |
Definition at line 52 of file SimplerLikelihoodRatioTestStatExt.cc.
References a, evalSimNLL(), evalSimpleNLL(), obs_, paramsAlt_, paramsNull_, pdfAlt_, pdfDepObs_, pdfNull_, simPdfAlt_, simPdfComponentsAlt_, simPdfComponentsNull_, simPdfNull_, snapAlt_, and snapNull_.
|
inlinevirtual |
Definition at line 47 of file SimplerLikelihoodRatioTestStatExt.h.
References pdfAlt_, and pdfNull_.
|
private |
Definition at line 88 of file SimplerLikelihoodRatioTestStatExt.cc.
Referenced by SimplerLikelihoodRatioTestStatOpt().
|
private |
observables (global argset)
Definition at line 52 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by evalSimNLL(), evalSimpleNLL(), Evaluate(), SimplerLikelihoodRatioTestStatOpt(), and unrollSimPdf().
|
private |
Definition at line 62 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate().
|
private |
parameter sets to apply snapshots to
Definition at line 62 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate().
|
private |
Definition at line 54 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), GetVarName(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
Definition at line 64 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by SimplerLikelihoodRatioTestStatOpt().
|
private |
Definition at line 56 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by SimplerLikelihoodRatioTestStatOpt().
|
private |
snapshot with all branch nodes of the pdfs before factorization
Definition at line 56 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by SimplerLikelihoodRatioTestStatOpt().
|
private |
nodes which depend directly on observables, on which one has to do redirectServers
Definition at line 58 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
pdfs (cloned, and with constraints factorized away)
Definition at line 54 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), GetVarName(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
owned copy of the pdfs after factorizing
Definition at line 64 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by SimplerLikelihoodRatioTestStatOpt().
|
private |
Definition at line 66 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
Definition at line 68 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
components of the sim pdfs after factorization, for each bin in sim. category. can contain nulls
Definition at line 68 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
pdfNull, pdfAlt cast to sympdf (may be null) after factorization
Definition at line 66 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
Definition at line 60 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), and SimplerLikelihoodRatioTestStatOpt().
|
private |
snapshots of parameters for the two pdfs
Definition at line 60 of file SimplerLikelihoodRatioTestStatExt.h.
Referenced by Evaluate(), and SimplerLikelihoodRatioTestStatOpt().