#include <CascadeMinimizer.h>
Classes | |
struct | Algo |
compact information about an algorithm More... | |
Public Types | |
enum | Mode { Constrained, Unconstrained } |
Public Member Functions | |
CascadeMinimizer (RooAbsReal &nll, Mode mode, RooRealVar *poi=0, int initialStrategy=0) | |
bool | improve (int verbose=0, bool cascade=true) |
bool | minimize (int verbose=0, bool cascade=true) |
RooMinimizerOpt & | minimizer () |
RooFitResult * | save () |
void | setErrorLevel (float errorLevel) |
void | setStrategy (int strategy) |
void | trivialMinimize (const RooAbsReal &nll, RooRealVar &r, int points=100) const |
Static Public Member Functions | |
static void | applyOptions (const boost::program_options::variables_map &vm) |
static void | initOptions () |
static const boost::program_options::options_description & | options () |
Protected Member Functions | |
bool | improveOnce (int verbose) |
Protected Attributes | |
RooMinimizerOpt | minimizer_ |
Mode | mode_ |
RooAbsReal & | nll_ |
RooRealVar * | poi_ |
int | strategy_ |
Static Protected Attributes | |
static std::vector< Algo > | fallbacks_ |
list of algorithms to run if the default one fails More... | |
static bool | oldFallback_ = true |
don't do old fallback using robustMinimize More... | |
static boost::program_options::options_description | options_ |
options configured from command line More... | |
static bool | poiOnlyFit_ |
do first a fit of only the POI More... | |
static bool | preScan_ |
do a pre-scan More... | |
static bool | setZeroPoint_ = true |
do first a fit of only the POI More... | |
static bool | singleNuisFit_ |
do first a minimization of each nuisance individually More... | |
Definition at line 11 of file CascadeMinimizer.h.
CascadeMinimizer::CascadeMinimizer | ( | RooAbsReal & | nll, |
Mode | mode, | ||
RooRealVar * | poi = 0 , |
||
int | initialStrategy = 0 |
||
) |
Definition at line 20 of file CascadeMinimizer.cc.
|
static |
Definition at line 118 of file CascadeMinimizer.cc.
References algo, gather_cfg::cout, CascadeMinimizer::Algo::default_strategy(), CascadeMinimizer::Algo::default_tolerance(), fallbacks_, min, poiOnlyFit_, preScan_, setZeroPoint_, and singleNuisFit_.
bool CascadeMinimizer::improve | ( | int | verbose = 0 , |
bool | cascade = true |
||
) |
Definition at line 29 of file CascadeMinimizer.cc.
References dtNoiseDBValidation_cfg::cerr, cacheutils::CachingSimNLL::clearZeroPoint(), CascadeMinimizer::Algo::default_strategy(), CascadeMinimizer::Algo::default_tolerance(), fallbacks_, improveOnce(), minimizer_, nll_, setZeroPoint_, and strategy_.
Referenced by FitterAlgoBase::doFit(), FitterAlgoBase::findCrossing(), Asymptotic::findExpectedLimitFromCrossing(), Asymptotic::getCLs(), minimize(), ProfileLikelihood::significanceBruteForce(), and ProfileLikelihood::significanceFromScan().
|
protected |
Definition at line 61 of file CascadeMinimizer.cc.
References cacheutils::CachingSimNLL::clearZeroPoint(), minimizer_, nll_, oldFallback_, nllutils::robustMinimize(), cacheutils::CachingSimNLL::setZeroPoint(), setZeroPoint_, and ntuplemaker::status.
Referenced by improve().
|
static |
Definition at line 98 of file CascadeMinimizer.cc.
References oldFallback_, options_, setZeroPoint_, and relativeConstraints::value.
bool CascadeMinimizer::minimize | ( | int | verbose = 0 , |
bool | cascade = true |
||
) |
Definition at line 85 of file CascadeMinimizer.cc.
References improve(), minimizer_, mode_, nll_, poi_, poiOnlyFit_, preScan_, strategy_, trivialMinimize(), and Unconstrained.
Referenced by MultiDimFit::doContour2D(), FitterAlgoBase::doFit(), MultiDimFit::doGrid(), MultiDimFit::doRandomPoints(), Asymptotic::findExpectedLimitFromCrossing(), BestFitSigmaTestStat::minNLL(), ProfiledLikelihoodTestStatOpt::minNLL(), Asymptotic::runLimit(), ProfileLikelihood::significanceBruteForce(), and ProfileLikelihood::significanceFromScan().
|
inline |
Definition at line 19 of file CascadeMinimizer.h.
References minimizer_.
Referenced by FitterAlgoBase::doFit(), Asymptotic::findExpectedLimitFromCrossing(), and save().
|
inlinestatic |
Definition at line 25 of file CascadeMinimizer.h.
References options_.
Referenced by betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::checkInput(), DOTExport.DotExport::export(), and DOTExport.DotExport::write_output().
|
inline |
Definition at line 20 of file CascadeMinimizer.h.
References minimizer().
Referenced by FitterAlgoBase::doFit(), FitterAlgoBase::findCrossing(), ProfileLikelihood::significanceBruteForce(), and ProfileLikelihood::significanceFromScan().
|
inline |
Definition at line 22 of file CascadeMinimizer.h.
References minimizer_.
Referenced by FitterAlgoBase::doFit(), and Asymptotic::findExpectedLimitFromCrossing().
|
inline |
Definition at line 21 of file CascadeMinimizer.h.
References strategy_.
Referenced by MultiDimFit::doBox(), MultiDimFit::doContour2D(), FitterAlgoBase::doFit(), MultiDimFit::doGrid(), MultiDimFit::doRandomPoints(), Asymptotic::findExpectedLimitFromCrossing(), Asymptotic::getCLs(), Asymptotic::runLimit(), ProfileLikelihood::significanceBruteForce(), and ProfileLikelihood::significanceFromScan().
void CascadeMinimizer::trivialMinimize | ( | const RooAbsReal & | nll, |
RooRealVar & | r, | ||
int | points = 100 |
||
) | const |
Definition at line 183 of file CascadeMinimizer.cc.
References i, vdt::x, and detailsBasic3DVector::y.
Referenced by minimize().
|
staticprotected |
list of algorithms to run if the default one fails
Definition at line 47 of file CascadeMinimizer.h.
Referenced by applyOptions(), and improve().
|
protected |
Definition at line 29 of file CascadeMinimizer.h.
Referenced by improve(), improveOnce(), minimize(), minimizer(), and setErrorLevel().
|
protected |
Definition at line 30 of file CascadeMinimizer.h.
Referenced by minimize().
|
protected |
Definition at line 28 of file CascadeMinimizer.h.
Referenced by improve(), improveOnce(), and minimize().
|
staticprotected |
don't do old fallback using robustMinimize
Definition at line 57 of file CascadeMinimizer.h.
Referenced by improveOnce(), and initOptions().
|
staticprotected |
options configured from command line
Definition at line 37 of file CascadeMinimizer.h.
Referenced by initOptions(), options(), and valtools.webpage::parseArgs().
|
protected |
Definition at line 32 of file CascadeMinimizer.h.
Referenced by minimize().
|
staticprotected |
do first a fit of only the POI
Definition at line 51 of file CascadeMinimizer.h.
Referenced by applyOptions(), and minimize().
|
staticprotected |
do a pre-scan
Definition at line 49 of file CascadeMinimizer.h.
Referenced by applyOptions(), and minimize().
|
staticprotected |
do first a fit of only the POI
Definition at line 55 of file CascadeMinimizer.h.
Referenced by applyOptions(), improve(), improveOnce(), and initOptions().
|
staticprotected |
do first a minimization of each nuisance individually
Definition at line 53 of file CascadeMinimizer.h.
Referenced by applyOptions().
|
protected |
Definition at line 31 of file CascadeMinimizer.h.
Referenced by improve(), minimize(), and setStrategy().