#include <MaxLikelihoodFit.h>
Public Member Functions | |
virtual void | applyOptions (const boost::program_options::variables_map &vm) |
MaxLikelihoodFit () | |
virtual const std::string & | name () const |
virtual void | setNToys (const int) |
virtual void | setToyNumber (const int) |
~MaxLikelihoodFit () | |
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 |
Protected Member Functions | |
void | createFitResultTrees (const RooStats::ModelConfig &) |
void | getNormalizations (RooAbsPdf *pdf, const RooArgSet &obs, RooArgSet &out) |
virtual bool | runSpecific (RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint) |
void | setFitResultTrees (const RooArgSet *, double *) |
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) |
Protected Attributes | |
int | currentToy_ |
std::auto_ptr< TFile > | fitOut |
int | fitStatus_ |
double * | globalObservables_ |
double | mu_ |
double | nll_bonly_ |
double | nll_nll0_ |
double | nll_sb_ |
int | nToys |
double * | nuisanceParameters_ |
int | numbadnll_ |
TTree * | t_fit_b_ |
TTree * | t_fit_sb_ |
Protected Attributes inherited from FitterAlgoBase | |
std::auto_ptr< RooAbsReal > | nll |
Protected Attributes inherited from LimitAlgo | |
boost::program_options::options_description | options_ |
Static Protected Attributes | |
static std::string | backgroundPdfNames_ = "shapeBkg*" |
static bool | justFit_ = false |
static bool | makePlots_ = false |
static std::string | minos_ = "poi" |
static std::string | name_ = "" |
static bool | noErrors_ = false |
static std::string | out_ = "." |
static float | rebinFactor_ = 1.0 |
static bool | reuseParams_ = false |
static bool | saveNormalizations_ = false |
static std::string | signalPdfNames_ = "shapeSig*" |
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 |
Do a ML fit of the data with background and signal+background hypothesis and print out diagnostics plots
Definition at line 13 of file MaxLikelihoodFit.h.
MaxLikelihoodFit::MaxLikelihoodFit | ( | ) |
Definition at line 43 of file MaxLikelihoodFit.cc.
References backgroundPdfNames_, fitStatus_, minos_, mu_, nll_bonly_, nll_nll0_, nll_sb_, nToys, numbadnll_, LimitAlgo::options_, out_, rebinFactor_, and signalPdfNames_.
MaxLikelihoodFit::~MaxLikelihoodFit | ( | ) |
Definition at line 63 of file MaxLikelihoodFit.cc.
References globalObservables_, and nuisanceParameters_.
|
virtual |
Reimplemented from LimitAlgo.
Definition at line 75 of file MaxLikelihoodFit.cc.
References FitterAlgoBase::applyOptionsBase(), justFit_, makePlots_, name_, noErrors_, out_, reuseParams_, and saveNormalizations_.
|
protected |
Definition at line 402 of file MaxLikelihoodFit.cc.
References a, prof2calltree::count, gather_cfg::cout, fitStatus_, globalObservables_, mu_, name(), nll_bonly_, nll_nll0_, nll_sb_, nuisanceParameters_, numbadnll_, t_fit_b_, and t_fit_sb_.
Referenced by runSpecific().
|
protected |
Definition at line 355 of file MaxLikelihoodFit.cc.
References Clusterizer1DCommons::add(), i, list(), n, and parseEventContent::prod.
Referenced by runSpecific().
|
inlinevirtual |
Implements LimitAlgo.
Definition at line 16 of file MaxLikelihoodFit.h.
Referenced by BeautifulSoup.Tag::_invert(), createFitResultTrees(), and setFitResultTrees().
|
protectedvirtual |
Implements FitterAlgoBase.
Definition at line 88 of file MaxLikelihoodFit.cc.
References backgroundPdfNames_, alignmentValidation::c1, Combine::commitPoint(), corr, gather_cfg::cout, createFitResultTrees(), currentToy_, data, FitterAlgoBase::do95_, FitterAlgoBase::doFit(), fitOut, fitStatus_, getNormalizations(), globalObservables_, justFit_, utils::makeNuisancePdf(), utils::makePlots(), makePlots_, FitterAlgoBase::minimizerStrategy_, minos_, mu_, name_, FitterAlgoBase::nll, nll_bonly_, nll_nll0_, nll_sb_, noErrors_, nToys, nuisanceParameters_, numbadnll_, out_, RecoTauValidation_cfi::plots, FitterAlgoBase::preFitValue_, alignCSCRings::r, rebinFactor_, reuseParams_, saveNormalizations_, setFitResultTrees(), signalPdfNames_, t_fit_b_, t_fit_sb_, utils::tdrStyle(), and withSystematics.
|
protected |
Definition at line 387 of file MaxLikelihoodFit.cc.
References a, prof2calltree::count, and name().
Referenced by runSpecific().
|
virtual |
|
virtual |
Reimplemented from LimitAlgo.
Definition at line 69 of file MaxLikelihoodFit.cc.
References currentToy_.
|
staticprotected |
Definition at line 36 of file MaxLikelihoodFit.h.
Referenced by MaxLikelihoodFit(), and runSpecific().
|
protected |
Definition at line 39 of file MaxLikelihoodFit.h.
Referenced by runSpecific(), and setToyNumber().
|
protected |
Definition at line 42 of file MaxLikelihoodFit.h.
Referenced by runSpecific().
|
protected |
Definition at line 40 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), MaxLikelihoodFit(), and runSpecific().
|
protected |
Definition at line 43 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), runSpecific(), and ~MaxLikelihoodFit().
|
staticprotected |
Definition at line 32 of file MaxLikelihoodFit.h.
Referenced by applyOptions(), and runSpecific().
|
staticprotected |
Definition at line 34 of file MaxLikelihoodFit.h.
Referenced by applyOptions(), and runSpecific().
|
staticprotected |
Definition at line 30 of file MaxLikelihoodFit.h.
Referenced by MaxLikelihoodFit(), and runSpecific().
|
protected |
Definition at line 41 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), MaxLikelihoodFit(), and runSpecific().
|
staticprotected |
Definition at line 28 of file MaxLikelihoodFit.h.
Referenced by applyOptions(), and runSpecific().
|
protected |
Definition at line 41 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), MaxLikelihoodFit(), and runSpecific().
|
protected |
Definition at line 41 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), MaxLikelihoodFit(), and runSpecific().
|
protected |
Definition at line 41 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), MaxLikelihoodFit(), and runSpecific().
|
staticprotected |
Definition at line 32 of file MaxLikelihoodFit.h.
Referenced by applyOptions(), and runSpecific().
|
protected |
Definition at line 39 of file MaxLikelihoodFit.h.
Referenced by MaxLikelihoodFit(), runSpecific(), and setNToys().
|
protected |
Definition at line 44 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), runSpecific(), and ~MaxLikelihoodFit().
|
protected |
Definition at line 40 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), MaxLikelihoodFit(), and runSpecific().
|
staticprotected |
Definition at line 33 of file MaxLikelihoodFit.h.
Referenced by applyOptions(), MaxLikelihoodFit(), and runSpecific().
|
staticprotected |
Definition at line 35 of file MaxLikelihoodFit.h.
Referenced by MaxLikelihoodFit(), and runSpecific().
|
staticprotected |
Definition at line 38 of file MaxLikelihoodFit.h.
Referenced by applyOptions(), and runSpecific().
|
staticprotected |
Definition at line 37 of file MaxLikelihoodFit.h.
Referenced by applyOptions(), and runSpecific().
|
staticprotected |
Definition at line 36 of file MaxLikelihoodFit.h.
Referenced by MaxLikelihoodFit(), and runSpecific().
|
protected |
Definition at line 46 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), and runSpecific().
|
protected |
Definition at line 46 of file MaxLikelihoodFit.h.
Referenced by createFitResultTrees(), and runSpecific().