#include <RootMinuit.h>
Public Member Functions | |
void | addParameter (const funct::Parameter &par, double err, double min, double max) |
void | addParameter (const std::string &name, std::shared_ptr< double > val, double err, double min, double max) |
void | fixParameter (const std::string &name) |
template<unsigned int N> | |
void | getErrorMatrix (ROOT::Math::SMatrix< double, N, N, ROOT::Math::MatRepSym< double, N > > &err) |
double | getParameter (const std::string &name) |
double | getParameter (const std::string &name, double &err) |
double | getParameterError (const std::string &name) |
double | getParameterError (const std::string &name, double &val) |
double | migrad () |
double | minimize () |
double | minValue () |
int | numberOfFreeParameters () |
int | numberOfParameters () |
void | printFitResults (std::ostream &cout=std::cout) |
void | printParameters (std::ostream &cout=std::cout) |
void | releaseParameter (const std::string &name) |
RootMinuit (const Function &f, bool verbose=false) | |
void | setParameter (const std::string &name, double val) |
void | setParameters () |
Private Member Functions | |
void | init () |
size_t | parameterIndex (const std::string &name) const |
Static Private Member Functions | |
static void | fcn_ (int &, double *, double &f, double *par, int) |
Private Attributes | |
bool | initialized_ |
std::unique_ptr< TMinuit > | minuit_ |
double | minValue_ |
std::map< std::string, size_t > | parIndices_ |
parameterVector_t | parMap_ |
std::vector< std::shared_ptr< double > > | pars_ |
bool | verbose_ |
Static Private Attributes | |
static Function | f_ |
static std::vector< std::shared_ptr< double > > * | fPars_ = nullptr |
Definition at line 21 of file RootMinuit.h.
|
inline |
Definition at line 23 of file RootMinuit.h.
References f, and fit::RootMinuit< Function >::f_.
|
inline |
Definition at line 41 of file RootMinuit.h.
References fit::RootMinuit< Function >::addParameter(), submitPVResolutionJobs::err, SiStripPI::max, min(), and funct::Parameter::name().
Referenced by metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), tauTools.AddTauCollection::__init__(), trackTools.MakeTrackCandidates::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.AddJetCollection::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.UpdateJetCollection::__init__(), jetTools.AddJetID::__init__(), and jetTools.SetTagInfos::__init__().
|
inline |
Definition at line 26 of file RootMinuit.h.
References edm::errors::Configuration, fit::parameter_t::err, submitPVResolutionJobs::err, Exception, fit::parameter_t::fixed, fit::RootMinuit< Function >::initialized_, fit::parameter_t::max, SiStripPI::max, fit::parameter_t::min, min(), Skims_PA_cff::name, fit::RootMinuit< Function >::parIndices_, fit::RootMinuit< Function >::parMap_, fit::RootMinuit< Function >::pars_, alignCSCRings::s, fit::parameter_t::val, and heppy_batch::val.
Referenced by metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), tauTools.AddTauCollection::__init__(), trackTools.MakeTrackCandidates::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.AddJetCollection::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.UpdateJetCollection::__init__(), jetTools.AddJetID::__init__(), jetTools.SetTagInfos::__init__(), fit::RootMinuitCommands< Function >::add(), and fit::RootMinuit< Function >::addParameter().
|
inlinestaticprivate |
Definition at line 192 of file RootMinuit.h.
References fit::RootMinuitFuncEvaluator< Function >::evaluate(), f, fit::RootMinuit< Function >::f_, fit::RootMinuit< Function >::fPars_, mps_fire::i, and findQualityFiles::size.
Referenced by fit::RootMinuit< Function >::init().
|
inline |
Definition at line 85 of file RootMinuit.h.
References mps_fire::i, fit::RootMinuit< Function >::initialized_, fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, fit::RootMinuit< Function >::parameterIndex(), and fit::RootMinuit< Function >::parMap_.
Referenced by fit::RootMinuitCommands< Function >::add(), and fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 69 of file RootMinuit.h.
References edm::errors::Configuration, MillePedeFileConverter_cfg::e, submitPVResolutionJobs::err, Exception, mps_fire::i, fit::RootMinuit< Function >::init(), dqmiolumiharvest::j, fit::RootMinuit< Function >::minuit_, N, fit::RootMinuit< Function >::numberOfParameters(), and fit::RootMinuit< Function >::setParameters().
|
inline |
Definition at line 50 of file RootMinuit.h.
References submitPVResolutionJobs::err, fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, fit::RootMinuit< Function >::parameterIndex(), and heppy_batch::val.
|
inline |
Definition at line 44 of file RootMinuit.h.
References submitPVResolutionJobs::err, fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, fit::RootMinuit< Function >::parameterIndex(), and heppy_batch::val.
|
inline |
Definition at line 62 of file RootMinuit.h.
References submitPVResolutionJobs::err, fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, fit::RootMinuit< Function >::parameterIndex(), and heppy_batch::val.
|
inline |
Definition at line 56 of file RootMinuit.h.
References submitPVResolutionJobs::err, fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, fit::RootMinuit< Function >::parameterIndex(), and heppy_batch::val.
Referenced by fit::RootMinuit< Function >::printParameters().
|
inlineprivate |
Definition at line 204 of file RootMinuit.h.
References edm::errors::Configuration, mps_fire::end, fit::parameter_t::err, Exception, fit::RootMinuit< Function >::fcn_(), fit::RootMinuit< Function >::fPars_, mps_fire::i, fit::RootMinuit< Function >::initialized_, fit::parameter_t::max, fit::parameter_t::min, fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, AlCaHLTBitMon_ParallelJobs::p, fit::RootMinuit< Function >::parMap_, fit::RootMinuit< Function >::pars_, AlCaHLTBitMon_QueryRunRegistry::string, fit::parameter_t::val, and fit::RootMinuit< Function >::verbose_.
Referenced by fit::RootMinuit< Function >::getErrorMatrix(), fit::RootMinuit< Function >::getParameter(), fit::RootMinuit< Function >::getParameterError(), fit::RootMinuit< Function >::migrad(), fit::RootMinuit< Function >::minimize(), fit::RootMinuit< Function >::minValue(), fit::RootMinuit< Function >::numberOfFreeParameters(), and fit::RootMinuit< Function >::numberOfParameters().
|
inline |
Definition at line 146 of file RootMinuit.h.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, fit::RootMinuit< Function >::init(), visualization-live-secondInstance_cfg::m, fit::RootMinuit< Function >::minuit_, fit::RootMinuit< Function >::minValue(), fit::RootMinuit< Function >::setParameters(), and fit::RootMinuit< Function >::verbose_.
Referenced by fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 129 of file RootMinuit.h.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, fit::RootMinuit< Function >::init(), visualization-live-secondInstance_cfg::m, fit::RootMinuit< Function >::minuit_, fit::RootMinuit< Function >::minValue(), fit::RootMinuit< Function >::setParameters(), and fit::RootMinuit< Function >::verbose_.
Referenced by fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 163 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, and fit::RootMinuit< Function >::minValue_.
Referenced by fit::RootMinuit< Function >::migrad(), fit::RootMinuit< Function >::minimize(), and fit::RootMinuit< Function >::printFitResults().
|
inline |
Definition at line 125 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), and fit::RootMinuit< Function >::minuit_.
Referenced by fit::RootMinuit< Function >::printFitResults().
|
inline |
Definition at line 121 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), and fit::RootMinuit< Function >::minuit_.
Referenced by fit::RootMinuit< Function >::getErrorMatrix().
|
inlineprivate |
Definition at line 198 of file RootMinuit.h.
References edm::errors::Configuration, Skims_PA_cff::name, AlCaHLTBitMon_ParallelJobs::p, and fit::RootMinuit< Function >::parIndices_.
Referenced by fit::RootMinuit< Function >::fixParameter(), fit::RootMinuit< Function >::getParameter(), fit::RootMinuit< Function >::getParameterError(), fit::RootMinuit< Function >::releaseParameter(), and fit::RootMinuit< Function >::setParameter().
|
inline |
Definition at line 177 of file RootMinuit.h.
References gather_cfg::cout, fit::RootMinuit< Function >::f_, fit::RootMinuit< Function >::minValue(), fit::RootMinuit< Function >::numberOfFreeParameters(), fit::RootMinuitResultPrinter< Function >::print(), and fit::RootMinuit< Function >::printParameters().
Referenced by fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 171 of file RootMinuit.h.
References gather_cfg::cout, mps_fire::end, fit::RootMinuit< Function >::getParameterError(), mps_fire::i, fit::RootMinuit< Function >::parIndices_, and fit::RootMinuit< Function >::pars_.
Referenced by fit::RootMinuit< Function >::printFitResults().
|
inline |
Definition at line 92 of file RootMinuit.h.
References mps_fire::i, fit::RootMinuit< Function >::initialized_, fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, fit::RootMinuit< Function >::parameterIndex(), and fit::RootMinuit< Function >::parMap_.
Referenced by fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 99 of file RootMinuit.h.
References edm::errors::Configuration, fit::parameter_t::err, Exception, mps_fire::i, fit::RootMinuit< Function >::initialized_, fit::parameter_t::max, fit::parameter_t::min, fit::RootMinuit< Function >::minuit_, Skims_PA_cff::name, fit::RootMinuit< Function >::parameterIndex(), fit::RootMinuit< Function >::parMap_, fit::parameter_t::val, and heppy_batch::val.
Referenced by coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), tauTools.AddTauCollection::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::jetConfiguration(), and fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 112 of file RootMinuit.h.
References mps_fire::end, submitPVResolutionJobs::err, mps_fire::i, fit::RootMinuit< Function >::minuit_, fit::RootMinuit< Function >::parIndices_, fit::RootMinuit< Function >::pars_, and heppy_batch::val.
Referenced by fit::RootMinuit< Function >::getErrorMatrix(), fit::RootMinuit< Function >::migrad(), and fit::RootMinuit< Function >::minimize().
|
staticprivate |
Definition at line 191 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::fcn_(), fit::RootMinuit< Function >::printFitResults(), and fit::RootMinuit< Function >::RootMinuit().
|
staticprivate |
Definition at line 189 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::fcn_(), and fit::RootMinuit< Function >::init().
|
private |
Definition at line 185 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::addParameter(), fit::RootMinuit< Function >::fixParameter(), fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::releaseParameter(), and fit::RootMinuit< Function >::setParameter().
|
private |
Definition at line 187 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::fixParameter(), fit::RootMinuit< Function >::getErrorMatrix(), fit::RootMinuit< Function >::getParameter(), fit::RootMinuit< Function >::getParameterError(), fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::migrad(), fit::RootMinuit< Function >::minimize(), fit::RootMinuit< Function >::minValue(), fit::RootMinuit< Function >::numberOfFreeParameters(), fit::RootMinuit< Function >::numberOfParameters(), fit::RootMinuit< Function >::releaseParameter(), fit::RootMinuit< Function >::setParameter(), and fit::RootMinuit< Function >::setParameters().
|
private |
Definition at line 186 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::minValue().
|
private |
Definition at line 184 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::addParameter(), fit::RootMinuit< Function >::parameterIndex(), fit::RootMinuit< Function >::printParameters(), and fit::RootMinuit< Function >::setParameters().
|
private |
Definition at line 183 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::addParameter(), fit::RootMinuit< Function >::fixParameter(), fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::releaseParameter(), and fit::RootMinuit< Function >::setParameter().
|
private |
Definition at line 188 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::addParameter(), fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::printParameters(), and fit::RootMinuit< Function >::setParameters().
|
private |
Definition at line 190 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::migrad(), and fit::RootMinuit< Function >::minimize().