1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

Minuit message for invalid minimisation

This commit is contained in:
Antonin Portelli 2014-04-03 10:04:59 +02:00
parent 0ae8adc013
commit 5787cf0544

View File

@ -96,6 +96,10 @@ const DVec & MinuitMinimizer::operator()(const DoubleFunction &f)
MnMigrad migrad2(minuitF, parameters, 2);
min = migrad2();
if (!min.IsValid())
{
LATAN_WARNING("MINUIT library reported that minimization result is not valid");
}
for (unsigned int i = 0; i < x.size(); ++i)
{
x(i) = min.UserParameters().Value(i);