#include <MultiDimFit.h>
Public Member Functions | |
virtual void | applyOptions (const boost::program_options::variables_map &vm) |
MultiDimFit () | |
virtual const std::string & | name () const |
Public Member Functions inherited from FitterAlgoBase | |
void | applyOptionsBase (const boost::program_options::variables_map &vm) |
FitterAlgoBase (const char *title="<FillMe> specific options") | |
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) |
Protected Types | |
enum | Algo { None, Singles, Cross, Grid, RandomPoints, Contour2D } |
Protected Member Functions | |
void | doBox (RooAbsReal &nll, double cl, const char *name="box", bool commitPoints=true) |
for each RooRealVar, set a range 'box' from the PL profiling all other parameters More... | |
void | doContour2D (RooAbsReal &nll) |
void | doGrid (RooAbsReal &nll) |
void | doRandomPoints (RooAbsReal &nll) |
void | doSingles (RooFitResult &res) |
void | initOnce (RooWorkspace *w, RooStats::ModelConfig *mc_s) |
virtual bool | runSpecific (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint) |
Protected Member Functions inherited from FitterAlgoBase | |
RooFitResult * | doFit (RooAbsPdf &pdf, RooAbsData &data, RooRealVar &r, const RooCmdArg &constrain, bool doHesse=true, int ndim=1, bool reuseNLL=false) |
RooFitResult * | doFit (RooAbsPdf &pdf, RooAbsData &data, const RooArgList &rs, const RooCmdArg &constrain, bool doHesse=true, int ndim=1, bool reuseNLL=false) |
double | findCrossing (CascadeMinimizer &minim, RooAbsReal &nll, RooRealVar &r, double level, double rStart, double rBound) |
Static Protected Attributes | |
static Algo | algo_ = None |
static float | deltaNLL_ = 0 |
static bool | fastScan_ = false |
static unsigned int | firstPoint_ = 0 |
static bool | floatOtherPOIs_ = false |
static unsigned int | lastPoint_ = std::numeric_limits<unsigned int>::max() |
static unsigned int | nOtherFloatingPoi_ = 0 |
static std::vector< std::string > | poi_ |
static RooArgList | poiList_ |
static unsigned int | points_ = 50 |
static std::vector< float > | poiVals_ |
static std::vector< RooRealVar * > | poiVars_ |
Static Protected Attributes inherited from FitterAlgoBase | |
static bool | do95_ = false |
static bool | keepFailures_ = false |
static int | maxFailedSteps_ = 5 |
static std::string | minimizerAlgo_ = "Minuit2" |
static std::string | minimizerAlgoForMinos_ = "Minuit2,simplex" |
static int | minimizerStrategy_ = 1 |
static int | minimizerStrategyForMinos_ = 0 |
static float | minimizerTolerance_ = 1e-2 |
static float | minimizerToleranceForMinos_ = 1e-4 |
static float | nllValue_ = std::numeric_limits<float>::quiet_NaN() |
static float | preFitValue_ = 1.0 |
static bool | robustFit_ = false |
static bool | saveNLL_ = false |
static float | stepSize_ = 0.1 |
Additional Inherited Members | |
Protected Attributes inherited from FitterAlgoBase | |
std::auto_ptr< RooAbsReal > | nll |
Protected Attributes inherited from LimitAlgo | |
boost::program_options::options_description | options_ |
Do a ML fit with multiple POI
Definition at line 15 of file MultiDimFit.h.
|
protected |
Enumerator | |
---|---|
None | |
Singles | |
Cross | |
Grid | |
RandomPoints | |
Contour2D |
Definition at line 27 of file MultiDimFit.h.
MultiDimFit::MultiDimFit | ( | ) |
Definition at line 39 of file MultiDimFit.cc.
References firstPoint_, floatOtherPOIs_, lastPoint_, LimitAlgo::options_, poi_, points_, and relativeConstraints::value.
|
virtual |
Reimplemented from LimitAlgo.
Definition at line 53 of file MultiDimFit.cc.
References algo, algo_, FitterAlgoBase::applyOptionsBase(), Contour2D, Cross, fastScan_, Grid, None, RandomPoints, and Singles.
|
protected |
for each RooRealVar, set a range 'box' from the PL profiling all other parameters
Definition at line 345 of file MultiDimFit.cc.
References Combine::commitPoint(), CascadeMinimizer::Constrained, gather_cfg::cout, FitterAlgoBase::findCrossing(), i, edm::detail::isnan(), j, FitterAlgoBase::minimizerStrategy_, n, nOtherFloatingPoi_, poi_, poiVals_, poiVars_, CascadeMinimizer::setStrategy(), and dtDQMClient_cfg::threshold.
Referenced by doContour2D(), and runSpecific().
|
protected |
Definition at line 297 of file MultiDimFit.cc.
References cl, Combine::commitPoint(), CascadeMinimizer::Constrained, funct::cos(), gather_cfg::cout, doBox(), FitterAlgoBase::findCrossing(), edm::detail::isnan(), j, M_PI, CascadeMinimizer::minimize(), FitterAlgoBase::minimizerStrategy_, nOtherFloatingPoi_, poi_, points_, poiVals_, poiVars_, CascadeMinimizer::setStrategy(), dtDQMClient_cfg::threshold, CascadeMinimizer::Unconstrained, x, and detailsBasic3DVector::y.
Referenced by runSpecific().
|
protected |
Definition at line 191 of file MultiDimFit.cc.
References Combine::commitPoint(), CascadeMinimizer::Constrained, gather_cfg::cout, deltaNLL_, fastScan_, firstPoint_, i, plotBeamSpotDB::ipoint, j, lastPoint_, CascadeMinimizer::minimize(), FitterAlgoBase::minimizerStrategy_, n, nOtherFloatingPoi_, convertSQLiteXML::ok, poi_, points_, poiVals_, poiVars_, CascadeMinimizer::setStrategy(), mathSSE::sqrt(), CloseCoutSentry::trueStdOut(), x, and detailsBasic3DVector::y.
Referenced by runSpecific().
|
protected |
Definition at line 269 of file MultiDimFit.cc.
References Combine::commitPoint(), CascadeMinimizer::Constrained, i, j, CascadeMinimizer::minimize(), FitterAlgoBase::minimizerStrategy_, n, nOtherFloatingPoi_, convertSQLiteXML::ok, poi_, points_, poiVals_, poiVars_, and CascadeMinimizer::setStrategy().
Referenced by runSpecific().
|
protected |
Definition at line 153 of file MultiDimFit.cc.
References Combine::commitPoint(), gather_cfg::cout, FitterAlgoBase::do95_, i, n, poi_, and poiVals_.
Referenced by runSpecific().
|
protected |
Definition at line 129 of file MultiDimFit.cc.
References a, Combine::addBranch(), deltaNLL_, i, n, poi_, poiList_, poiVals_, and poiVars_.
Referenced by runSpecific().
|
inlinevirtual |
Implements LimitAlgo.
Definition at line 18 of file MultiDimFit.h.
Referenced by BeautifulSoup.Tag::_invert().
|
protectedvirtual |
Implements FitterAlgoBase.
Definition at line 73 of file MultiDimFit.cc.
References a, algo_, dtNoiseDBValidation_cfg::cerr, cl, Combine::commitPoint(), Contour2D, gather_cfg::cout, Cross, doBox(), doContour2D(), FitterAlgoBase::doFit(), doGrid(), doRandomPoints(), doSingles(), floatOtherPOIs_, Grid, i, initOnce(), FitterAlgoBase::keepFailures_, n, FitterAlgoBase::nll, None, nOtherFloatingPoi_, poi_, poiList_, poiVals_, poiVars_, RandomPoints, Singles, and withSystematics.
|
staticprotected |
Definition at line 28 of file MultiDimFit.h.
Referenced by applyOptions(), and runSpecific().
|
staticprotected |
Definition at line 35 of file MultiDimFit.h.
Referenced by doGrid(), and initOnce().
|
staticprotected |
Definition at line 40 of file MultiDimFit.h.
Referenced by applyOptions(), and doGrid().
|
staticprotected |
Definition at line 38 of file MultiDimFit.h.
Referenced by doGrid(), and MultiDimFit().
|
staticprotected |
Definition at line 39 of file MultiDimFit.h.
Referenced by MultiDimFit(), and runSpecific().
|
staticprotected |
Definition at line 38 of file MultiDimFit.h.
Referenced by doGrid(), and MultiDimFit().
|
staticprotected |
Definition at line 34 of file MultiDimFit.h.
Referenced by doBox(), doContour2D(), doGrid(), doRandomPoints(), and runSpecific().
|
staticprotected |
Definition at line 30 of file MultiDimFit.h.
Referenced by doBox(), doContour2D(), doGrid(), doRandomPoints(), doSingles(), initOnce(), MultiDimFit(), and runSpecific().
|
staticprotected |
Definition at line 33 of file MultiDimFit.h.
Referenced by initOnce(), and runSpecific().
|
staticprotected |
Definition at line 38 of file MultiDimFit.h.
Referenced by doContour2D(), doGrid(), doRandomPoints(), and MultiDimFit().
|
staticprotected |
Definition at line 32 of file MultiDimFit.h.
Referenced by doBox(), doContour2D(), doGrid(), doRandomPoints(), doSingles(), initOnce(), and runSpecific().
|
staticprotected |
Definition at line 31 of file MultiDimFit.h.
Referenced by doBox(), doContour2D(), doGrid(), doRandomPoints(), initOnce(), and runSpecific().