#include <Asymptotic.h>
Public Member Functions | |
virtual void | applyDefaultOptions () |
virtual void | applyOptions (const boost::program_options::variables_map &vm) |
Asymptotic () | |
float | findExpectedLimitFromCrossing (RooAbsReal &nll, RooRealVar *r, double rMin, double rMax, double nll0, double quantile) |
virtual const std::string & | name () const |
virtual bool | run (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint) |
virtual bool | runLimit (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint) |
std::vector< std::pair< float, float > > | runLimitExpected (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 | |
LimitAlgo () | |
LimitAlgo (const char *desc) | |
const boost::program_options::options_description & | options () const |
virtual void | setNToys (const int) |
virtual void | setToyNumber (const int) |
Private Member Functions | |
RooAbsData * | asimovDataset (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data) |
double | getCLs (RooRealVar &r, double rVal, bool getAlsoExpected=false, double *limit=0, double *limitErr=0) |
Private Attributes | |
utils::CheapValueSnapshot | fitFixA_ |
utils::CheapValueSnapshot | fitFixD_ |
utils::CheapValueSnapshot | fitFreeA_ |
utils::CheapValueSnapshot | fitFreeD_ |
bool | hasFloatParams_ |
double | minNllA_ |
double | minNllD_ |
std::auto_ptr< RooAbsReal > | nllA_ |
std::auto_ptr< RooAbsReal > | nllD_ |
std::auto_ptr< RooArgSet > | params_ |
RooArgSet | snapGlobalObsAsimov |
RooArgSet | snapGlobalObsData |
Static Private Attributes | |
static std::string | minimizerAlgo_ = "Minuit2" |
static int | minimizerStrategy_ = 0 |
static float | minimizerTolerance_ = 0.01 |
static std::string | minosAlgo_ = "stepping" |
static bool | newExpected_ = false |
static bool | noFitAsimov_ = false |
static bool | picky_ = false |
static bool | qtilde_ = true |
static double | rAbsAccuracy_ = 0.0005 |
static double | rRelAccuracy_ = 0.005 |
static double | rValue_ = 1.0 |
static std::string | what_ = "both" |
Additional Inherited Members | |
Protected Attributes inherited from LimitAlgo | |
boost::program_options::options_description | options_ |
CLs asymptotic limits
Definition at line 19 of file Asymptotic.h.
Asymptotic::Asymptotic | ( | ) |
Definition at line 37 of file Asymptotic.cc.
References minimizerAlgo_, minimizerStrategy_, minimizerTolerance_, minosAlgo_, LimitAlgo::options_, qtilde_, rAbsAccuracy_, rRelAccuracy_, rValue_, and what_.
|
virtual |
Reimplemented from LimitAlgo.
Definition at line 70 of file Asymptotic.cc.
References noFitAsimov_, and what_.
|
virtual |
Reimplemented from LimitAlgo.
Definition at line 55 of file Asymptotic.cc.
References gather_cfg::cout, newExpected_, noFitAsimov_, picky_, and what_.
|
private |
Definition at line 542 of file Asymptotic.cc.
References asimovutils::asimovDatasetNominal(), asimovutils::asimovDatasetWithFit(), noFitAsimov_, utils::setAllConstant(), snapGlobalObsAsimov, snapGlobalObsData, and withSystematics.
Referenced by runLimit(), and runLimitExpected().
float Asymptotic::findExpectedLimitFromCrossing | ( | RooAbsReal & | nll, |
RooRealVar * | r, | ||
double | rMin, | ||
double | rMax, | ||
double | nll0, | ||
double | quantile | ||
) |
Definition at line 349 of file Asymptotic.cc.
References cl, CloseCoutSentry::clear(), CascadeMinimizer::Constrained, CascadeMinimizer::improve(), max(), min, CascadeMinimizer::minimize(), CascadeMinimizer::minimizer(), minimizerAlgo_, minimizerStrategy_, minimizerTolerance_, minosAlgo_, N, convertSQLiteXML::ok, picky_, funct::pow(), rAbsAccuracy_, rRelAccuracy_, CascadeMinimizer::setErrorLevel(), CascadeMinimizer::setStrategy(), dtDQMClient_cfg::threshold, CascadeMinimizer::Unconstrained, and detailsBasic3DVector::y.
Referenced by runLimitExpected().
|
private |
Definition at line 203 of file Asymptotic.cc.
References CloseCoutSentry::clear(), Combine::commitPoint(), CascadeMinimizer::Constrained, utils::CheapValueSnapshot::empty(), fitFixA_, fitFixD_, fitFreeA_, fitFreeD_, hasFloatParams_, CascadeMinimizer::improve(), minimizerStrategy_, minNllA_, minNllD_, N, nllA_, nllD_, params_, picky_, utils::CheapValueSnapshot::Print(), qtilde_, utils::CheapValueSnapshot::readFrom(), CascadeMinimizer::setStrategy(), snapGlobalObsAsimov, snapGlobalObsData, and mathSSE::sqrt().
Referenced by runLimit().
|
inlinevirtual |
Implements LimitAlgo.
Definition at line 31 of file Asymptotic.h.
Referenced by BeautifulSoup.Tag::_invert().
|
virtual |
Implements LimitAlgo.
Definition at line 74 of file Asymptotic.cc.
References gather_cfg::cout, DEBUG, minimizerAlgo_, minimizerStrategy_, minimizerTolerance_, run_regression::ret, runLimit(), runLimitExpected(), rValue_, dqm::qstatus::WARNING, and what_.
|
virtual |
Definition at line 103 of file Asymptotic.cc.
References a, asimovDataset(), dtNoiseDBValidation_cfg::cerr, cl, createBeamHaloJobs::constraints, gather_cfg::cout, funct::false, fitFreeA_, fitFreeD_, getCLs(), hasFloatParams_, MessageLogger_cff::limit, create_public_lumi_plots::log, max(), CascadeMinimizer::minimize(), minimizerStrategy_, minNllA_, minNllD_, nllA_, nllD_, params_, utils::CheapValueSnapshot::Print(), qtilde_, alignCSCRings::r, rAbsAccuracy_, utils::CheapValueSnapshot::readFrom(), rRelAccuracy_, rValue_, CascadeMinimizer::setStrategy(), snapGlobalObsAsimov, snapGlobalObsData, CascadeMinimizer::Unconstrained, what_, withSystematics, and utils::CheapValueSnapshot::writeTo().
Referenced by run().
std::vector< std::pair< float, float > > Asymptotic::runLimitExpected | ( | RooWorkspace * | w, |
RooStats::ModelConfig * | mc_s, | ||
RooStats::ModelConfig * | mc_b, | ||
RooAbsData & | data, | ||
double & | limit, | ||
double & | limitErr, | ||
const double * | hint | ||
) |
Definition at line 263 of file Asymptotic.cc.
References alpha, asimovDataset(), cl, CloseCoutSentry::clear(), Combine::commitPoint(), gather_cfg::cout, alignCSCRings::e, findExpectedLimitFromCrossing(), edm::detail::isnan(), minimizerStrategy_, minosAlgo_, N, newExpected_, params_, funct::pow(), qtilde_, alignCSCRings::r, snapGlobalObsAsimov, and CascadeMinimizer::Unconstrained.
Referenced by run().
|
private |
Definition at line 51 of file Asymptotic.h.
Referenced by getCLs().
|
private |
Definition at line 51 of file Asymptotic.h.
Referenced by getCLs().
|
private |
Definition at line 51 of file Asymptotic.h.
Referenced by getCLs(), and runLimit().
|
private |
Definition at line 51 of file Asymptotic.h.
Referenced by getCLs(), and runLimit().
|
private |
Definition at line 46 of file Asymptotic.h.
Referenced by getCLs(), and runLimit().
|
staticprivate |
Definition at line 40 of file Asymptotic.h.
Referenced by Asymptotic(), findExpectedLimitFromCrossing(), and run().
|
staticprivate |
Definition at line 42 of file Asymptotic.h.
Referenced by Asymptotic(), findExpectedLimitFromCrossing(), getCLs(), run(), runLimit(), and runLimitExpected().
|
staticprivate |
Definition at line 41 of file Asymptotic.h.
Referenced by Asymptotic(), findExpectedLimitFromCrossing(), and run().
|
mutableprivate |
Definition at line 53 of file Asymptotic.h.
Referenced by getCLs(), and runLimit().
|
mutableprivate |
Definition at line 53 of file Asymptotic.h.
Referenced by getCLs(), and runLimit().
|
staticprivate |
Definition at line 39 of file Asymptotic.h.
Referenced by Asymptotic(), findExpectedLimitFromCrossing(), and runLimitExpected().
|
staticprivate |
Definition at line 38 of file Asymptotic.h.
Referenced by applyOptions(), and runLimitExpected().
|
mutableprivate |
Definition at line 48 of file Asymptotic.h.
Referenced by getCLs(), and runLimit().
|
mutableprivate |
Definition at line 48 of file Asymptotic.h.
Referenced by getCLs(), and runLimit().
|
staticprivate |
Definition at line 37 of file Asymptotic.h.
Referenced by applyDefaultOptions(), applyOptions(), and asimovDataset().
|
mutableprivate |
Definition at line 47 of file Asymptotic.h.
Referenced by getCLs(), runLimit(), and runLimitExpected().
|
staticprivate |
Definition at line 36 of file Asymptotic.h.
Referenced by applyOptions(), findExpectedLimitFromCrossing(), and getCLs().
|
staticprivate |
Definition at line 35 of file Asymptotic.h.
Referenced by Asymptotic(), getCLs(), runLimit(), and runLimitExpected().
|
staticprivate |
Definition at line 33 of file Asymptotic.h.
Referenced by Asymptotic(), findExpectedLimitFromCrossing(), and runLimit().
|
staticprivate |
Definition at line 33 of file Asymptotic.h.
Referenced by Asymptotic(), findExpectedLimitFromCrossing(), and runLimit().
|
staticprivate |
Definition at line 44 of file Asymptotic.h.
Referenced by Asymptotic(), run(), and runLimit().
|
mutableprivate |
Definition at line 54 of file Asymptotic.h.
Referenced by asimovDataset(), getCLs(), runLimit(), and runLimitExpected().
|
mutableprivate |
Definition at line 54 of file Asymptotic.h.
Referenced by asimovDataset(), getCLs(), and runLimit().
|
staticprivate |
Definition at line 34 of file Asymptotic.h.
Referenced by applyDefaultOptions(), applyOptions(), Asymptotic(), run(), and runLimit().