#include <ProfileLikelihood.h>
Classes | |
class | MinimizerSentry |
Setup Minimizer configuration on creation, reset the previous one on destruction. More... | |
Public Member Functions | |
virtual void | applyOptions (const boost::program_options::variables_map &vm) |
virtual const std::string & | name () const |
ProfileLikelihood () | |
virtual bool | run (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint) |
Public Member Functions inherited from LimitAlgo | |
virtual void | applyDefaultOptions () |
LimitAlgo () | |
LimitAlgo (const char *desc) | |
const boost::program_options::options_description & | options () const |
virtual void | setNToys (const int) |
virtual void | setToyNumber (const int) |
virtual | ~LimitAlgo () |
Protected Member Functions | |
bool | runLimit (RooWorkspace *w, RooStats::ModelConfig *mc, RooAbsData &data, double &limit, double &limitErr) |
bool | runSignificance (RooWorkspace *w, RooStats::ModelConfig *mc, RooAbsData &data, double &limit, double &limitErr) |
double | significanceBruteForce (RooAbsPdf &pdf, RooAbsData &data, RooRealVar &poi, const RooArgSet *nuisances, double tolerance) const |
double | significanceFromScan (RooAbsPdf &pdf, RooAbsData &data, RooRealVar &poi, const RooArgSet *nuisances, double tolerance, int npoints) const |
std::pair< double, double > | upperLimitBruteForce (RooAbsPdf &pdf, RooAbsData &data, RooRealVar &poi, const RooArgSet *nuisances, double tolerance, double cl) const |
double | upperLimitWithMinos (RooAbsPdf &pdf, RooAbsData &data, RooRealVar &poi, const RooArgSet *nuisances, double tolerance, double cl) const |
Static Protected Attributes | |
static std::string | bfAlgo_ = "scale" |
static bool | bruteForce_ = false |
static float | mass_ |
static float | maxOutlierFraction_ = 0.25 |
Ignore up to this fraction of results if they're too far from the median. More... | |
static int | maxOutliers_ = 3 |
Stop trying after finding N outliers. More... | |
static float | maxRelDeviation_ = 0.05 |
maximum relative deviation of the different points from the median to accept More... | |
static int | maxTries_ = 1 |
trying up to M times from different points More... | |
static std::string | minimizerAlgo_ = "Minuit2" |
static std::string | minimizerAlgoForBF_ = "Minuit2,simplex" |
static std::string static float | minimizerTolerance_ = 1e-2 |
static std::string static float | minimizerToleranceForBF_ = 1e-4 |
static std::string | plot_ = "" |
static int | points_ = 20 |
static bool | preFit_ = false |
Try first a plain fit. More... | |
static bool | reportPVal_ = false |
Report p-value instead of significance. More... | |
static float | signalForSignificance_ = 0 |
static int | tries_ = 1 |
compute the limit N times More... | |
static bool | useMinos_ = true |
Additional Inherited Members | |
Protected Attributes inherited from LimitAlgo | |
boost::program_options::options_description | options_ |
Class for computing limits and significances from naive Profile Likelihood asymptotics (i.e. no Asimov dataset)
Definition at line 15 of file ProfileLikelihood.h.
ProfileLikelihood::ProfileLikelihood | ( | ) |
Definition at line 47 of file ProfileLikelihood.cc.
References bfAlgo_, maxOutlierFraction_, maxOutliers_, maxRelDeviation_, maxTries_, minimizerAlgo_, minimizerAlgoForBF_, minimizerTolerance_, minimizerToleranceForBF_, LimitAlgo::options_, plot_, points_, signalForSignificance_, and tries_.
|
virtual |
Reimplemented from LimitAlgo.
Definition at line 72 of file ProfileLikelihood.cc.
References bruteForce_, mass_, reportPVal_, and useMinos_.
|
inlinevirtual |
|
virtual |
Implements LimitAlgo.
Definition at line 105 of file ProfileLikelihood.cc.
References gather_cfg::cout, diffTreeTool::diff, doSignificance_, i, j, utils::makeNuisancePdf(), max(), maxOutlierFraction_, maxOutliers_, maxRelDeviation_, maxTries_, minimizerAlgo_, minimizerTolerance_, preFit_, alignCSCRings::r, runLimit(), runSignificance(), runtimedef::set(), python.multivaluedict::sort(), summarizeEdmComparisonLogfiles::success, tries_, and withSystematics.
|
protected |
Definition at line 180 of file ProfileLikelihood.cc.
References bruteForce_, alignmentValidation::c1, dtNoiseDBValidation_cfg::cerr, cl, CloseCoutSentry::clear(), gather_cfg::cout, data, alignCSCRings::e, edm::detail::isnan(), vdt::le, lowerLimit_, minimizerTolerance_, plotResiduals::plot(), plot_, alignCSCRings::r, summarizeEdmComparisonLogfiles::success, upperLimitBruteForce(), upperLimitWithMinos(), and useMinos_.
Referenced by run().
|
protected |
Definition at line 239 of file ProfileLikelihood.cc.
References bfAlgo_, bruteForce_, dtNoiseDBValidation_cfg::cerr, cl, CloseCoutSentry::clear(), gather_cfg::cout, data, ProfiledLikelihoodTestStatOpt::Evaluate(), minimizerTolerance_, points_, alignCSCRings::r, reportPVal_, query::result, signalForSignificance_, significanceBruteForce(), significanceFromScan(), mathSSE::sqrt(), and useMinos_.
Referenced by run().
|
protected |
Definition at line 388 of file ProfileLikelihood.cc.
References dtNoiseDBValidation_cfg::cerr, CascadeMinimizer::Constrained, gather_cfg::cout, CascadeMinimizer::improve(), mass_, CascadeMinimizer::minimize(), minimizerAlgo_, minimizerAlgoForBF_, minimizerTolerance_, minimizerToleranceForBF_, download_sqlite_cfg::outputFile, CascadeMinimizer::save(), CascadeMinimizer::setStrategy(), errorMatrix2Lands_multiChannel::start, summarizeEdmComparisonLogfiles::success, and CascadeMinimizer::Unconstrained.
Referenced by runSignificance().
|
protected |
Definition at line 466 of file ProfileLikelihood.cc.
References bfAlgo_, dtNoiseDBValidation_cfg::cerr, CascadeMinimizer::Constrained, gather_cfg::cout, i, CascadeMinimizer::improve(), mass_, CascadeMinimizer::minimize(), minimizerAlgo_, minimizerAlgoForBF_, minimizerTolerance_, minimizerToleranceForBF_, download_sqlite_cfg::outputFile, run_regression::ret, CascadeMinimizer::save(), CascadeMinimizer::setStrategy(), errorMatrix2Lands_multiChannel::start, relval_steps::steps, summarizeEdmComparisonLogfiles::success, and CascadeMinimizer::Unconstrained.
Referenced by runSignificance().
|
protected |
Definition at line 308 of file ProfileLikelihood.cc.
References dtNoiseDBValidation_cfg::cerr, cmsPerfPublish::fail(), lowerLimit_, minimizerAlgoForBF_, minimizerToleranceForBF_, nllutils::robustMinimize(), errorMatrix2Lands_multiChannel::start, summarizeEdmComparisonLogfiles::success, and filterCSVwithJSON::target.
Referenced by runLimit().
|
protected |
Definition at line 285 of file ProfileLikelihood.cc.
References dtNoiseDBValidation_cfg::cerr, MessageLogger_cff::limit, lowerLimit_, and nllutils::robustMinimize().
Referenced by runLimit().
|
staticprotected |
Definition at line 40 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), runSignificance(), and significanceFromScan().
|
staticprotected |
Definition at line 39 of file ProfileLikelihood.h.
Referenced by applyOptions(), runLimit(), and runSignificance().
|
staticprotected |
Definition at line 61 of file ProfileLikelihood.h.
Referenced by applyOptions(), significanceBruteForce(), and significanceFromScan().
|
staticprotected |
Ignore up to this fraction of results if they're too far from the median.
Definition at line 51 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and run().
|
staticprotected |
Stop trying after finding N outliers.
Definition at line 53 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and run().
|
staticprotected |
maximum relative deviation of the different points from the median to accept
Definition at line 49 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and run().
|
staticprotected |
trying up to M times from different points
Definition at line 47 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and run().
|
staticprotected |
Definition at line 36 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), run(), significanceBruteForce(), and significanceFromScan().
|
staticprotected |
Definition at line 36 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), significanceBruteForce(), significanceFromScan(), and upperLimitBruteForce().
|
staticprotected |
Definition at line 36 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), run(), runLimit(), runSignificance(), significanceBruteForce(), and significanceFromScan().
|
staticprotected |
Definition at line 36 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), significanceBruteForce(), significanceFromScan(), and upperLimitBruteForce().
|
staticprotected |
Definition at line 63 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and runLimit().
|
staticprotected |
Definition at line 41 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and runSignificance().
|
staticprotected |
|
staticprotected |
Report p-value instead of significance.
Definition at line 58 of file ProfileLikelihood.h.
Referenced by applyOptions(), and runSignificance().
|
staticprotected |
Definition at line 60 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and runSignificance().
|
staticprotected |
compute the limit N times
Definition at line 45 of file ProfileLikelihood.h.
Referenced by ProfileLikelihood(), and run().
|
staticprotected |
Definition at line 39 of file ProfileLikelihood.h.
Referenced by applyOptions(), runLimit(), and runSignificance().