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:
parent
0ae8adc013
commit
5787cf0544
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user