ComPWA
Common Partial-Wave-Analysis Framework
MinuitIF.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013, 2017 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
5 #ifndef OPTIMIZER_MINUIT2_MINUITIF_HPP
6 #define OPTIMIZER_MINUIT2_MINUITIF_HPP
7 
8 #include "Core/FitParameter.hpp"
10 #include "Optimizer/Optimizer.hpp"
11 
12 namespace ComPWA {
13 namespace Optimizer {
14 namespace Minuit2 {
15 
23 class MinuitIF : public Optimizer<MinuitResult> {
24 public:
25  MinuitIF() { setStrategy("medium"); }
27  ComPWA::FitParameterList InitialParameters);
28 
29  bool UseHesse = 1;
30  bool UseMinos = 0;
31 
36  void setStrategy(std::string strategy);
37 
38  // Minuit2 configuration variables
39  unsigned int GradientNCycles;
42  unsigned int HessianNCycles;
43  unsigned int HessianGradientNCycles;
46 
47 private:
49  std::string checkStrategy();
50 };
51 
52 } // namespace Minuit2
53 } // namespace Optimizer
54 } // namespace ComPWA
55 
56 #endif
Wrapper of the Minuit2 Optimizer library.
Definition: MinuitIF.hpp:23
MinuitResult optimize(ComPWA::Estimator::Estimator< double > &Estimator, ComPWA::FitParameterList InitialParameters)
Finds the optimal value of the Estimator, by varying its parameters.
Definition: MinuitIF.cpp:139
std::vector< FitParameter< double > > FitParameterList
std::string checkStrategy()
Check if a pre-defined strategy is set or if custom settings are used.
Definition: MinuitIF.cpp:103
void setStrategy(std::string strategy)
Minuit strategy (low, medium(default), high) See https://root.cern.ch/root/htmldoc/guides/minuit2/Min...
Definition: MinuitIF.cpp:82
This class template provides the interface to optimization libraries.
Definition: Optimizer.hpp:22