27 fFCN(fcn), fState(state), fStrategy(stra), fNumCall(nfcn), fUseGrad(
false)
32 fFCN(fcn), fState(state), fStrategy(stra), fNumCall(nfcn), fUseGrad(true)
42 if(maxfcn == 0) maxfcn = 200 + 100*npar + 5*npar*npar;
63 std::cout <<
"State resulting from Migrad. Total Function calls " <<
fNumCall <<
fState << std::endl;
64 const std::vector<ROOT::Minuit2::MinimumState>& iterationStates = min.
States();
65 std::cout <<
"Number of iterations " << iterationStates.size() << std::endl;
66 for (
unsigned int i = 0; i < iterationStates.size(); ++i) {
69 std::cout <<
"----------> Iteration " << i << std::endl;
70 int pr = std::cout.precision(18);
71 std::cout <<
" FVAL = " << st.
Fval()
72 <<
" Edm = " << st.
Edm() <<
" Nfcn = " << st.
NFcn() << std::endl;
73 std::cout.precision(pr);
74 std::cout <<
" Error matrix change = " << st.
Error().
Dcovar()
76 std::cout <<
" Internal parameters : ";
77 for (
int j = 0; j < st.
size() ; ++j)
78 std::cout <<
" p" << j <<
" = " << st.
Vec()(j);
79 std::cout << std::endl;
unsigned int Index(const char *) const
void Release(unsigned int)
unsigned int Index(const std::string &) const
void SetError(unsigned int, double)
virtual const FCNBase & Fcnbase() const
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
const std::vector< ROOT::Minuit2::MinuitParameter > & MinuitParameters() const
facade: forward interface of MnUserParameters and MnUserTransformation
double Value(unsigned int) const
Namespace for new ROOT classes and functions.
unsigned int VariableParameters() const
const MinuitParameter & Parameter(unsigned int i) const
const std::vector< ROOT::Minuit2::MinuitParameter > & MinuitParameters() const
std::vector< double > Params() const
const MnUserParameterState & UserState() const
void Add(const std::string &name, double val, double err)
class for the individual Minuit Parameter with Name and number; contains the input numbers for the mi...
ClassImp(TIterator) Bool_t TIterator return false
Compare two iterator objects.
double Ext2int(unsigned int, double) const
std::vector< double > Params() const
void SetPrecision(double eps)
const char * Name(unsigned int) const
unsigned int IntOfExt(unsigned int) const
const MinimumError & Error() const
void SetLimits(unsigned int, double, double)
Extension of the FCNBase for providing the analytical Gradient of the function.
double Int2ext(unsigned int, double) const
class holding the full result of the minimization; both internal and external (MnUserParameterState) ...
MnUserParameterState fState
unsigned int ExtOfInt(unsigned int) const
Interface (abstract class) defining the function to be minimized, which has to be implemented by the ...
const MnAlgebraicVector & Vec() const
const std::vector< ROOT::Minuit2::MinimumState > & States() const
virtual FunctionMinimum Minimize(const FCNBase &, const std::vector< double > &, const std::vector< double > &, unsigned int stra=1, unsigned int maxfcn=0, double toler=0.1) const
void Add(const char *Name, double val, double err)
void SetValue(unsigned int, double)
class which holds the external user and/or internal Minuit representation of the parameters and error...
const char * Name(unsigned int) const
void RemoveLimits(unsigned int)
void SetLimits(unsigned int, double, double)
MnApplication(const FCNBase &fcn, const MnUserParameterState &state, const MnStrategy &stra, unsigned int nfcn=0)
constructor from non-gradient functions
unsigned int ExtOfInt(unsigned int) const
const MinuitParameter & Parameter(unsigned int i) const
void SetError(unsigned int, double)
std::vector< double > Errors() const
double Value(unsigned int) const
void Release(unsigned int)
unsigned int IntOfExt(unsigned int) const
double Ext2int(unsigned int, double) const
void SetPrecision(double)
void SetValue(unsigned int, double)
double Error(unsigned int) const
virtual FunctionMinimum operator()(unsigned int maxfcn=0, double tolerance=0.1)
Minimize the function.
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
virtual const ModularFunctionMinimizer & Minimizer() const =0
unsigned int VariableParameters() const
double Int2ext(unsigned int, double) const
API class for defining three levels of strategies: low (0), medium (1), high (>=2); acts on: Migrad (...
std::vector< double > Errors() const
void RemoveLimits(unsigned int)
double Error(unsigned int) const