#include <RootMinuit.h>
Public Member Functions | |
void | addParameter (const std::string &name, boost::shared_ptr< double > val, double err, double min, double max) |
void | addParameter (const funct::Parameter &par, 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 &err) |
double | getParameter (const std::string &name) |
double | getParameterError (const std::string &name, double &val) |
double | getParameterError (const std::string &name) |
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::auto_ptr< TMinuit > | minuit_ |
double | minValue_ |
std::map< std::string, size_t > | parIndices_ |
parameterVector_t | parMap_ |
std::vector< boost::shared_ptr < double > > | pars_ |
bool | verbose_ |
Static Private Attributes | |
static Function | f_ |
static std::vector < boost::shared_ptr< double > > * | fPars_ = 0 |
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 27 of file RootMinuit.h.
References edm::errors::Configuration, fit::parameter_t::err, edm::hlt::Exception, fit::parameter_t::fixed, fit::RootMinuit< Function >::initialized_, fit::parameter_t::max, bookConverter::max, fit::parameter_t::min, min(), mergeVDriftHistosByStation::name, fit::RootMinuit< Function >::parIndices_, fit::RootMinuit< Function >::parMap_, fit::RootMinuit< Function >::pars_, alignCSCRings::s, and fit::parameter_t::val.
Referenced by editorTools.UserCodeTool::__init__(), metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), HiCoreTools.RestrictInputToAOD::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runType1CaloMEtUncertainties.RunType1CaloMEtUncertainties::__init__(), jmeUncertaintyTools.JetMEtUncertaintyTools::__init__(), runMVAMEtUncertainties.RunMVAMEtUncertainties::__init__(), runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties::__init__(), runType1PFMEtUncertainties.RunType1PFMEtUncertainties::__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool::__init__(), jetTools.AddJetCollection::__init__(), editorTools.ChangeSource::__init__(), HiCoreTools.RemoveMCMatching::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), HiCoreTools.RemoveAllPATObjectsBut::__init__(), HiCoreTools.RemoveSpecificPATObjects::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), trackTools.MakeTrackCandidates::__init__(), tauTools.AddTauCollection::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), HiCoreTools.RemoveCleaning::__init__(), HiCoreTools.AddCleaning::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.AddJetID::__init__(), jetTools.SetTagInfos::__init__(), fit::RootMinuitCommands< Function >::add(), and fit::RootMinuit< Function >::addParameter().
|
inline |
Definition at line 43 of file RootMinuit.h.
References fit::RootMinuit< Function >::addParameter(), bookConverter::max, min(), and funct::Parameter::name().
Referenced by editorTools.UserCodeTool::__init__(), metTools.AddMETCollection::__init__(), trackTools.MakeAODTrackCandidates::__init__(), coreTools.RunOnData::__init__(), HiCoreTools.RestrictInputToAOD::__init__(), runJetUncertainties.RunJetUncertainties::__init__(), runType1CaloMEtUncertainties.RunType1CaloMEtUncertainties::__init__(), jmeUncertaintyTools.JetMEtUncertaintyTools::__init__(), runMVAMEtUncertainties.RunMVAMEtUncertainties::__init__(), runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties::__init__(), runType1PFMEtUncertainties.RunType1PFMEtUncertainties::__init__(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool::__init__(), jetTools.AddJetCollection::__init__(), editorTools.ChangeSource::__init__(), HiCoreTools.RemoveMCMatching::__init__(), cmsswVersionTools.PickRelValInputFiles::__init__(), coreTools.RemoveMCMatching::__init__(), trackTools.MakePATTrackCandidates::__init__(), trigTools.SwitchOnTrigger::__init__(), HiCoreTools.RemoveAllPATObjectsBut::__init__(), HiCoreTools.RemoveSpecificPATObjects::__init__(), trigTools.SwitchOnTriggerStandAlone::__init__(), trackTools.MakeTrackCandidates::__init__(), tauTools.AddTauCollection::__init__(), trigTools.SwitchOnTriggerMatching::__init__(), HiCoreTools.RemoveCleaning::__init__(), HiCoreTools.AddCleaning::__init__(), trigTools.SwitchOnTriggerMatchingStandAlone::__init__(), trigTools.SwitchOnTriggerMatchEmbedding::__init__(), jetTools.SwitchJetCollection::__init__(), jetTools.AddJetID::__init__(), and jetTools.SetTagInfos::__init__().
|
inlinestaticprivate |
Definition at line 189 of file RootMinuit.h.
References fit::RootMinuitFuncEvaluator< Function >::evaluate(), fit::RootMinuit< Function >::f_, fit::RootMinuit< Function >::fPars_, i, and findQualityFiles::size.
Referenced by fit::RootMinuit< Function >::init().
|
inline |
Definition at line 87 of file RootMinuit.h.
References i, fit::RootMinuit< Function >::initialized_, fit::RootMinuit< Function >::minuit_, fit::RootMinuit< Function >::parameterIndex(), and fit::RootMinuit< Function >::parMap_.
Referenced by fit::RootMinuitCommands< Function >::add(), and fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 71 of file RootMinuit.h.
References edm::errors::Configuration, alignCSCRings::e, edm::hlt::Exception, i, fit::RootMinuit< Function >::init(), j, fit::RootMinuit< Function >::minuit_, N, fit::RootMinuit< Function >::numberOfParameters(), and fit::RootMinuit< Function >::setParameters().
|
inline |
Definition at line 46 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, and fit::RootMinuit< Function >::parameterIndex().
|
inline |
Definition at line 52 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, and fit::RootMinuit< Function >::parameterIndex().
|
inline |
Definition at line 58 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, and fit::RootMinuit< Function >::parameterIndex().
Referenced by fit::RootMinuit< Function >::printParameters().
|
inline |
Definition at line 64 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::minuit_, and fit::RootMinuit< Function >::parameterIndex().
|
inlineprivate |
Definition at line 202 of file RootMinuit.h.
References fitWZ::arglist, edm::errors::Configuration, end, fit::parameter_t::err, edm::hlt::Exception, fit::RootMinuit< Function >::fcn_(), fit::RootMinuit< Function >::fPars_, i, fit::RootMinuit< Function >::initialized_, fit::parameter_t::max, fit::parameter_t::min, fit::RootMinuit< Function >::minuit_, mergeVDriftHistosByStation::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 fitWZ::arglist, dtNoiseDBValidation_cfg::cerr, fit::RootMinuit< Function >::init(), 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 132 of file RootMinuit.h.
References fitWZ::arglist, dtNoiseDBValidation_cfg::cerr, fit::RootMinuit< Function >::init(), 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 160 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 128 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), and fit::RootMinuit< Function >::minuit_.
Referenced by fit::RootMinuit< Function >::printFitResults().
|
inline |
Definition at line 124 of file RootMinuit.h.
References fit::RootMinuit< Function >::init(), and fit::RootMinuit< Function >::minuit_.
Referenced by fit::RootMinuit< Function >::getErrorMatrix().
|
inlineprivate |
Definition at line 195 of file RootMinuit.h.
References edm::errors::Configuration, 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 175 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 168 of file RootMinuit.h.
References gather_cfg::cout, end, fit::RootMinuit< Function >::getParameterError(), i, fit::RootMinuit< Function >::parIndices_, and fit::RootMinuit< Function >::pars_.
Referenced by fit::RootMinuit< Function >::printFitResults().
|
inline |
Definition at line 94 of file RootMinuit.h.
References i, fit::RootMinuit< Function >::initialized_, fit::RootMinuit< Function >::minuit_, fit::RootMinuit< Function >::parameterIndex(), and fit::RootMinuit< Function >::parMap_.
Referenced by fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 101 of file RootMinuit.h.
References edm::errors::Configuration, fit::parameter_t::err, edm::hlt::Exception, i, fit::RootMinuit< Function >::initialized_, fit::parameter_t::max, fit::parameter_t::min, fit::RootMinuit< Function >::minuit_, fit::RootMinuit< Function >::parameterIndex(), fit::RootMinuit< Function >::parMap_, and fit::parameter_t::val.
Referenced by editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), editorTools.ChangeSource::__call__(), HiCoreTools.RemoveMCMatching::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), jetTools.AddJetCollection::__call__(), trigTools.SwitchOnTrigger::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), runType1CaloMEtUncertainties.RunType1CaloMEtUncertainties::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), runMVAMEtUncertainties.RunMVAMEtUncertainties::__call__(), tauTools.AddTauCollection::__call__(), jmeUncertaintyTools.JetMEtUncertaintyTools::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), runType1PFMEtUncertainties.RunType1PFMEtUncertainties::__call__(), HiCoreTools.AddCleaning::__call__(), runNoPileUpMEtUncertainties.RunNoPileUpMEtUncertainties::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), and fit::RootMinuitCommands< Function >::run().
|
inline |
Definition at line 115 of file RootMinuit.h.
References end, i, cmsHarvester::index, fit::RootMinuit< Function >::minuit_, fit::RootMinuit< Function >::parIndices_, and fit::RootMinuit< Function >::pars_.
Referenced by fit::RootMinuit< Function >::getErrorMatrix(), fit::RootMinuit< Function >::migrad(), and fit::RootMinuit< Function >::minimize().
|
staticprivate |
Definition at line 188 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::fcn_(), fit::RootMinuit< Function >::printFitResults(), and fit::RootMinuit< Function >::RootMinuit().
|
staticprivate |
Definition at line 186 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::fcn_(), and fit::RootMinuit< Function >::init().
|
private |
Definition at line 182 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 184 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 183 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::minValue().
|
private |
Definition at line 181 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 180 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 185 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 187 of file RootMinuit.h.
Referenced by fit::RootMinuit< Function >::init(), fit::RootMinuit< Function >::migrad(), and fit::RootMinuit< Function >::minimize().