#include <FitterAlgoBase.h>
Public Member Functions | |
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 () |
virtual void | applyOptions (const boost::program_options::variables_map &vm) |
LimitAlgo () | |
LimitAlgo (const char *desc) | |
virtual const std::string & | name () const =0 |
const boost::program_options::options_description & | options () const |
virtual void | setNToys (const int) |
virtual void | setToyNumber (const int) |
virtual | ~LimitAlgo () |
Protected Member Functions | |
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) |
virtual bool | runSpecific (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint)=0 |
Protected Attributes | |
std::auto_ptr< RooAbsReal > | nll |
Protected Attributes inherited from LimitAlgo | |
boost::program_options::options_description | options_ |
Static Protected Attributes | |
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 |
Do a ML fit of the data with background and signal+background hypothesis and print out diagnostics plots
Definition at line 20 of file FitterAlgoBase.h.
FitterAlgoBase::FitterAlgoBase | ( | const char * | title = "<FillMe> specific options" | ) |
Definition at line 53 of file FitterAlgoBase.cc.
References do95_, maxFailedSteps_, minimizerAlgo_, minimizerAlgoForMinos_, minimizerStrategy_, minimizerStrategyForMinos_, minimizerTolerance_, minimizerToleranceForMinos_, LimitAlgo::options_, preFitValue_, robustFit_, and stepSize_.
void FitterAlgoBase::applyOptionsBase | ( | const boost::program_options::variables_map & | vm | ) |
Definition at line 73 of file FitterAlgoBase.cc.
References keepFailures_, and saveNLL_.
Referenced by ChannelCompatibilityCheck::applyOptions(), MaxLikelihoodFit::applyOptions(), and MultiDimFit::applyOptions().
|
protected |
Fit data with pdf, with parameters of interest in r, and specified constraint If ndim = 1, errors on each parameter are from a 1-dim chisquare, as for a single parameter fit If ndim > 1, errors on each parameter are from a n-dim chisquare, as for a joint estimation of N parameters
Definition at line 90 of file FitterAlgoBase.cc.
Referenced by MultiDimFit::runSpecific(), MaxLikelihoodFit::runSpecific(), and ChannelCompatibilityCheck::runSpecific().
|
protected |
Definition at line 94 of file FitterAlgoBase.cc.
References CloseCoutSentry::clear(), CascadeMinimizer::Constrained, gather_cfg::cout, do95_, findCrossing(), i, CascadeMinimizer::improve(), edm::detail::isnan(), keepFailures_, max(), CascadeMinimizer::minimize(), CascadeMinimizer::minimizer(), minimizerStrategy_, minimizerStrategyForMinos_, n, nll, nllValue_, convertSQLiteXML::ok, alignCSCRings::r, run_regression::ret, robustFit_, CascadeMinimizer::save(), CascadeMinimizer::setErrorLevel(), CascadeMinimizer::setStrategy(), and CascadeMinimizer::Unconstrained.
|
protected |
Definition at line 179 of file FitterAlgoBase.cc.
References gather_cfg::cout, runtimedef::get(), CascadeMinimizer::improve(), max(), maxFailedSteps_, min, minimizerAlgoForMinos_, minimizerToleranceForMinos_, convertSQLiteXML::ok, CascadeMinimizer::save(), and stepSize_.
Referenced by MultiDimFit::doBox(), MultiDimFit::doContour2D(), and doFit().
|
virtual |
Implements LimitAlgo.
Definition at line 79 of file FitterAlgoBase.cc.
References Combine::addBranch(), minimizerAlgo_, minimizerTolerance_, nllValue_, runSpecific(), and saveNLL_.
|
protectedpure virtual |
Implemented in ChannelCompatibilityCheck, MaxLikelihoodFit, and MultiDimFit.
Referenced by run().
|
staticprotected |
Definition at line 36 of file FitterAlgoBase.h.
Referenced by doFit(), MultiDimFit::doSingles(), FitterAlgoBase(), MaxLikelihoodFit::runSpecific(), and ChannelCompatibilityCheck::runSpecific().
|
staticprotected |
Definition at line 40 of file FitterAlgoBase.h.
Referenced by applyOptionsBase(), doFit(), and MultiDimFit::runSpecific().
|
staticprotected |
Definition at line 38 of file FitterAlgoBase.h.
Referenced by findCrossing(), and FitterAlgoBase().
|
staticprotected |
Definition at line 30 of file FitterAlgoBase.h.
Referenced by FitterAlgoBase(), and run().
|
staticprotected |
Definition at line 30 of file FitterAlgoBase.h.
Referenced by findCrossing(), and FitterAlgoBase().
|
staticprotected |
Definition at line 32 of file FitterAlgoBase.h.
Referenced by MultiDimFit::doBox(), MultiDimFit::doContour2D(), doFit(), MultiDimFit::doGrid(), MultiDimFit::doRandomPoints(), FitterAlgoBase(), and MaxLikelihoodFit::runSpecific().
|
staticprotected |
Definition at line 32 of file FitterAlgoBase.h.
Referenced by doFit(), and FitterAlgoBase().
|
staticprotected |
Definition at line 31 of file FitterAlgoBase.h.
Referenced by FitterAlgoBase(), and run().
|
staticprotected |
Definition at line 31 of file FitterAlgoBase.h.
Referenced by findCrossing(), and FitterAlgoBase().
|
protected |
Definition at line 42 of file FitterAlgoBase.h.
Referenced by doFit(), MultiDimFit::runSpecific(), and MaxLikelihoodFit::runSpecific().
|
staticprotected |
Definition at line 41 of file FitterAlgoBase.h.
|
staticprotected |
Definition at line 34 of file FitterAlgoBase.h.
Referenced by FitterAlgoBase(), MaxLikelihoodFit::runSpecific(), and ChannelCompatibilityCheck::runSpecific().
|
staticprotected |
Definition at line 36 of file FitterAlgoBase.h.
Referenced by doFit(), and FitterAlgoBase().
|
staticprotected |
Definition at line 40 of file FitterAlgoBase.h.
Referenced by applyOptionsBase(), and run().
|
staticprotected |
Definition at line 37 of file FitterAlgoBase.h.
Referenced by findCrossing(), and FitterAlgoBase().