# Log Book Entry No.10

 Created: 05 Sep 2013 22:16:19 Last Revised: 09 Sep 2013 18:18:03 PedroPaiva Minuit and iMinuit analysis

```    def meanPSF(self, radius = 20, fixAngle = False) :
image   = self.image
error   = self.errors
xmax, ymax      = (len(image[0]) - 1, len(image) - 1)
threshold       = self.mean() + 3*self.std()
labels, starNum = _ndimage.label(image > threshold, _numpy.ones((3,3)))
centers         = _ndimage.center_of_mass(image, labels, range(1, starNum+1))
x               = _numpy.array(centers)[:,0]
y               = _numpy.array(centers)[:,1]
slice( max(y[n] - radius, 0), min(y[n] + radius, ymax))] for n in range(starNum)]
m = []
im = []
i = 0
for limits in roiLimits:
print "\n\n - - - - roi", i," - - - -"
i += 1
roi = image[limits]
roiLabels, roiNum       = _ndimage.label( roi > threshold, _numpy.ones((3,3)) )
if (_numpy.size(roi) == (2*radius)**2) and (roiNum == 1):
success, mTemp      = _gfit.fitg(roi, error[limits], fixAngle = fixAngle)
print "\n **** Minuit **** ", success
if success:
print "fval =", mTemp.fval
print mTemp.values
m.append(mTemp)
isuccess, imTemp      = _gfit.ifitg(roi, error[limits], fixAngle = fixAngle)
print "\n **** iMinuit **** ", isuccess
if isuccess:
print "fval =", imTemp.fval
print imTemp.values
im.append(imTemp)
else:
print " **** Border and/or not single ****"

return m, im
```

```Pedros-MacBook-Pro:~ pekapa\$ ipython
Python 2.7.5 (default, Aug 27 2013, 11:06:12)

IPython 1.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: MacOSX

In [1]: cd Documents/Internship/new
/Users/pekapa/Documents/Internship/new

In [2]: import AstroPython as ap

In [4]: m, im = ap.psf('light')

- - - - roi 0  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 2.41748
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 468467 to diagonal of error matrix
eigenvalues:
-7.60519
1.00001
1.00002
9.60517
matrix forced pos-def by adding 7.6148 to diagonal
gdel: -630608
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.435964 requested: 1e-05
VariableMetricBuilder: Tolerance is not sufficient - edm is 2.44674 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 1.32781
negative or zero diagonal element 2 in covariance matrix
added 12.491 to diagonal of error matrix
eigenvalues:
-1.60623
0.297208
0.987216
4.3218
matrix forced pos-def by adding 1.61055 to diagonal
gdel: -4.60978
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 3378.59308005
{'A': 148065.77491357646
'bg': 572.3827252516722
'angle': -61.91430148618889
'muy': -8.716784396039797
'mux': -16.485752060172157
'sigy': 1.847472559732902
'sigx': 13.82756811415661}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 3378.59308005
{'A': 148065.77491357646
'bg': 572.3827252516722
'angle': -61.91430148618889
'muy': -8.716784396039797
'mux': -16.485752060172157
'sigy': 1.847472559732902
'sigx': 13.82756811415661}

- - - - roi 1  - - - -
eigenvalues:
-4.12525
0.792857
1.25942
6.07297
matrix forced pos-def by adding 4.13132 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 2.27975 requested 1e-05 continue the minimization
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2423.61433436
{'A': -1689302.7632115947
'bg': 585.9531959869913
'angle': 25.813492531895776
'muy': -13.423944301993608
'mux': -4.504492734579577
'sigy': 25122.810112512532
'sigx': 2.0492586927351626}

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.117189 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 2  - - - -
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2621.31010476
{'A': -7801603.7402832
'bg': 565.2894243102445
'angle': 77.34715405737066
'muy': 16.02349753811419
'mux': 27.94127875595934
'sigy': 52188.23219050946
'sigx': 5.368321266056039}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 2535.55500632
{'A': 77486.75875832487
'bg': 562.1384442511143
'angle': 54.79707404918241
'muy': 51.009931508035926
'mux': 16.362362275226417
'sigy': 8.96720420446321
'sigx': 4.950876482213082}

- - - - roi 3  - - - -
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00050981 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.00050981 requested: 1e-05
FunctionMinimum is invalid.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 6.92868e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** Minuit ****  False

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 6.92868e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 4  - - - -

**** Minuit ****  True
fval = 18518.6448802
{'A': 623566.7725842549
'bg': 609.5961996123447
'angle': -15.41095131751726
'muy': 20.3925970025792
'mux': 20.66268940748408
'sigy': 4.131982235159669
'sigx': 4.933146602350255}

**** iMinuit ****  True
fval = 18518.6448722
{'A': 623567.1999263188
'bg': 609.5961485797089
'angle': -15.411527948512415
'muy': 20.39258392808676
'mux': 20.662691735365026
'sigy': 4.131973085959172
'sigx': 4.933151038863691}

- - - - roi 5  - - - -

**** Minuit ****  True
fval = 8121.49521915
{'A': 299288.64674829907
'bg': 582.5445902567951
'angle': 1.1331914186329755
'muy': 20.44991495209858
'mux': 19.759599654212277
'sigy': 4.0625827956205045
'sigx': 4.7601946288987245}

**** iMinuit ****  True
fval = 8121.49521995
{'A': 299288.7100926881
'bg': 582.5446999143275
'angle': 1.1328993370255063
'muy': 20.449903147360263
'mux': 19.75959910126001
'sigy': 4.062583581715732
'sigx': 4.7601920177616}

- - - - roi 6  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.00181552
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 6.95237e+17 to diagonal of error matrix
eigenvalues:
nan
nan
nan
nan
matrix forced pos-def by adding nan to diagonal
gdel: nan
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 6983.43103961
{'A': -8756953.244731816
'bg': 567.1947388548588
'angle': 46.92096407674063
'muy': 21.14230508304217
'mux': 20.830279673077776
'sigy': 5.567315049734359
'sigx': 54447.86619203548}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 6955.0230036
{'A': 365509.23907745775
'bg': 563.4214190637549
'angle': 38.36013587526631
'muy': 108.57998839846091
'mux': 95.17800199712902
'sigy': 38.53978707406289
'sigx': 3.969993706388433}

- - - - roi 7  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.0192569
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 2.57021e+15 to diagonal of error matrix
eigenvalues:
-452840
1
1
452842
matrix forced pos-def by adding 453293 to diagonal
gdel: -4.13646e+17
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.000303618 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0942509 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0942509 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 8  - - - -
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.463833 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 17.7336
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 6.40993e+08 to diagonal of error matrix
eigenvalues:
-231.042
1
1
233.042
matrix forced pos-def by adding 231.275 to diagonal
gdel: -1.3855e+08
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 1.20305 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 3079.2565078
{'A': 124189.01527936573
'bg': 567.5158998998949
'angle': -18.183098579813944
'muy': 3.3437289634734535
'mux': -35.89335953230764
'sigy': 3.6148545826651546
'sigx': 19.67907563361348}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 3079.2565078
{'A': 124189.01527936573
'bg': 567.5158998998949
'angle': -18.183098579813944
'muy': 3.3437289634734535
'mux': -35.89335953230764
'sigy': 3.6148545826651546
'sigx': 19.67907563361348}

- - - - roi 9  - - - -
eigenvalues:
-4.63036
0.851662
1.16329
6.61541
matrix forced pos-def by adding 4.63698 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.37446 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 6.42005
negative or zero diagonal element 3 in covariance matrix
added 3.93169 to diagonal of error matrix
gdel: -0.881547
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 4.75908e-05
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 4.98094e+10 to diagonal of error matrix
eigenvalues:
-4014.77
1
1
4016.77
matrix forced pos-def by adding 4018.79 to diagonal
gdel: -4.71931e+10
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.0489603 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.384786 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 1.53914 requested: 1e-05
FunctionMinimum is invalid.

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.384786 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 1.53914 requested: 1e-05
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 10  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 6.67072
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 40.3857 to diagonal of error matrix
gdel: -529.136
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 53.7631
negative or zero diagonal element 2 in covariance matrix
added 0.56422 to diagonal of error matrix
eigenvalues:
-1.18697
0.995462
1.08397
3.10754
matrix forced pos-def by adding 1.19008 to diagonal
gdel: -3702.32
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00018984 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 14.5365 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
edm < 0
eigenvalues:
-3.90084e-05
0.00465713
0.0207856
0.437058
1.04656
2.17516
3.31582
matrix forced pos-def by adding 0.00335483 to diagonal
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** Minuit ****  False

VariableMetricBuilder: Tolerance is not sufficient - edm is 14.5365 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
edm < 0
eigenvalues:
-3.90084e-05
0.00465713
0.0207856
0.437058
1.04656
2.17516
3.31582
matrix forced pos-def by adding 0.00335483 to diagonal
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 11  - - - -
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0608865 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 1.71431e-05 requested 1e-05 continue the minimization
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2241.27588185
{'A': -64789.424921831946
'bg': 563.5845256995262
'angle': -4.755160035503593
'muy': 509.90028376518273
'mux': -6.161575102932611
'sigy': 286.73257957087094
'sigx': 1.5080630902914556}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 1.71431e-05 requested 1e-05 continue the minimization
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 2241.27588185
{'A': -64789.424921831946
'bg': 563.5845256995262
'angle': -4.755160035503593
'muy': 509.90028376518273
'mux': -6.161575102932611
'sigy': 286.73257957087094
'sigx': 1.5080630902914556}

- - - - roi 12  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 75.6381
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 1.0829e+06 to diagonal of error matrix
eigenvalues:
-7.79763
1
1.00001
9.79761
matrix forced pos-def by adding 7.80742 to diagonal
gdel: -6.85354e+08
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 361.308 requested: 1e-05
eigenvalues:
-5.80796
0.805735
1.13374
7.86848
matrix forced pos-def by adding 5.81583 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 673.933 requested 1e-05 continue the minimization

**** Minuit ****  True
fval = 3858.40551076
{'A': -6762.088958596599
'bg': 588.4291717223091
'angle': 55.09528025167285
'muy': 17.667571776975617
'mux': 15.333538688748039
'sigy': -5.765826983183968
'sigx': 3.5984939042514306}

MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 13  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.000541155
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
added 2.74984e+14 to diagonal of error matrix
eigenvalues:
-133644
1
1
133646
matrix forced pos-def by adding 133777 to diagonal
gdel: -2.56412e+14
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.000384816 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 1.20354e+08 requested: 1e-05
MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 4.13198e+07 requested 1e-05 continue the minimization
MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 1.20354e+08 requested: 1e-05
MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 4.13198e+07 requested 1e-05 continue the minimization
MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 14  - - - -
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0334721 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.00670766 requested: 1e-05
FunctionMinimum is invalid.
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0113724 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0113724 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 15  - - - -
eigenvalues:
-6.0201
0.948543
1.05472
8.01684
matrix forced pos-def by adding 6.02811 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 104.22 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 7364.42
eigenvalues:
-0.171581
0.810368
1.07027
2.29094
matrix forced pos-def by adding 0.173871 to diagonal
gdel: -1195.34
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 5154.31
negative or zero diagonal element 3 in covariance matrix
added 0.500003 to diagonal of error matrix
gdel: -1.32612e+10
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 38297.3 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.0197221
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
added 197.555 to diagonal of error matrix
eigenvalues:
-23.1973
0.999995
1
1.00005
1.10704
1.54428
24.5459
matrix forced pos-def by adding 23.2219 to diagonal
gdel: -1.85381
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.0118121 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 6.85671e-05 requested 1e-05 continue the minimization
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.27058e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.14537e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 2.3934e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 2.06855e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.000193428
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 38.1122 to diagonal of error matrix
eigenvalues:
-14.278
1
1.00166
1.03081
1.2464
1.60966
15.3894
matrix forced pos-def by adding 14.2934 to diagonal
gdel: -2.04524
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.00883185
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 146.278 to diagonal of error matrix
eigenvalues:
-4.04426
0.840813
0.997804
1
1.03288
1.19648
5.97628
matrix forced pos-def by adding 4.05024 to diagonal
gdel: -14.4359
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.00669061
negative or zero diagonal element 5 in covariance matrix
added 41.4528 to diagonal of error matrix
eigenvalues:
-33.9431
0.573433
0.938214
0.998629
1
1.7646
35.6682
matrix forced pos-def by adding 33.9788 to diagonal
gdel: -1.1574
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** Minuit ****  False

VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.0197221
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
added 197.555 to diagonal of error matrix
eigenvalues:
-23.1973
0.999995
1
1.00005
1.10704
1.54428
24.5459
matrix forced pos-def by adding 23.2219 to diagonal
gdel: -1.85381
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.0118121 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 6.85671e-05 requested 1e-05 continue the minimization
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.27058e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.14537e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 2.3934e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 2.06855e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.000193428
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 38.1122 to diagonal of error matrix
eigenvalues:
-14.278
1
1.00166
1.03081
1.2464
1.60966
15.3894
matrix forced pos-def by adding 14.2934 to diagonal
gdel: -2.04524
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.00883185
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 146.278 to diagonal of error matrix
eigenvalues:
-4.04426
0.840813
0.997804
1
1.03288
1.19648
5.97628
matrix forced pos-def by adding 4.05024 to diagonal
gdel: -14.4359
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.00669061
negative or zero diagonal element 5 in covariance matrix
added 41.4528 to diagonal of error matrix
eigenvalues:
-33.9431
0.573433
0.938214
0.998629
1
1.7646
35.6682
matrix forced pos-def by adding 33.9788 to diagonal
gdel: -1.1574
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 16  - - - -

**** Minuit ****  True
fval = 79401.1079512
{'A': 2280723.370917509
'bg': 696.6552058220949
'angle': -17.549555250077802
'muy': 20.721862561557515
'mux': 21.25101564813208
'sigy': 4.165314055626622
'sigx': 4.987261125363536}

**** iMinuit ****  True
fval = 79401.1079492
{'A': 2280723.2216387773
'bg': 696.6551709994527
'angle': -17.54971146587401
'muy': 20.721858082355272
'mux': 21.251014224626317
'sigy': 4.165313439830403
'sigx': 4.98726449309343}

- - - - roi 17  - - - -

**** Minuit ****  True
fval = 8265.04834761
{'A': 318460.6660450181
'bg': 584.8436751336843
'angle': 0.7205946567492845
'muy': 20.701559609319204
'mux': 20.47444321671409
'sigy': 3.9979386357959004
'sigx': 4.6529124791490055}

**** iMinuit ****  True
fval = 8265.04834986
{'A': 318460.6801322455
'bg': 584.8435888096394
'angle': 0.7209462116732794
'muy': 20.70156218034965
'mux': 20.474427952661088
'sigy': 3.9979452774711093
'sigx': 4.652917359691424}

- - - - roi 18  - - - -

**** Minuit ****  True
fval = 3246.11658959
{'A': 120769.86287339163
'bg': 587.7045500545522
'angle': 57.3005400521329
'muy': 19.940220643614698
'mux': 19.008156557811258
'sigy': 5.014290569209643
'sigx': 4.16288425188374}

**** iMinuit ****  True
fval = 3246.1165949
{'A': 120770.01194514554
'bg': 587.7051157276667
'angle': 57.29884741919943
'muy': 19.94022228209817
'mux': 19.008137658232293
'sigy': 5.014260392116431
'sigx': 4.1628811025415375}

- - - - roi 19  - - - -

**** Minuit ****  True
fval = 10650.2174752
{'A': 454917.38597829104
'bg': 611.0589058577422
'angle': -24.263068801984502
'muy': 20.608474933253397
'mux': 20.018131005923294
'sigy': 4.098961542052516
'sigx': 4.883202766309448}

**** iMinuit ****  True
fval = 10650.2174743
{'A': 454917.02672682033
'bg': 611.0591621248678
'angle': -24.262914713071837
'muy': 20.608473744078925
'mux': 20.0181281847428
'sigy': 4.098957468647641
'sigx': 4.883207350418244}

- - - - roi 20  - - - -

**** Minuit ****  True
fval = 42253.5062368
{'A': 1247740.29406449
'bg': 648.5195788289112
'angle': -31.775418513179076
'muy': 20.9273700132327
'mux': 20.61891841279177
'sigy': 4.332325134518958
'sigx': 5.290521845689175}

**** iMinuit ****  True
fval = 42253.5062376
{'A': 1247740.4289249901
'bg': 648.5194137481546
'angle': -31.775312043438007
'muy': 20.927369705775664
'mux': 20.618919306229234
'sigy': 4.332325465960032
'sigx': 5.290518069241512}

- - - - roi 21  - - - -

**** Minuit ****  True
fval = 7800.06134809
{'A': 339635.4256425956
'bg': 599.445381549316
'angle': -28.316344768643205
'muy': 20.418671753837884
'mux': 20.14162161272486
'sigy': 4.080722479609732
'sigx': 4.944232085345582}

**** iMinuit ****  True
fval = 7800.0613482
{'A': 339635.6316690559
'bg': 599.4454178466127
'angle': -28.31593725079665
'muy': 20.418674292654757
'mux': 20.14163411117907
'sigy': 4.080721308516051
'sigx': 4.944228809885553}

- - - - roi 22  - - - -

**** Minuit ****  True
fval = 2691.32143359
{'A': 11531.979063474304
'bg': 571.6804495460534
'angle': 17.753898625873845
'muy': 20.544546583514432
'mux': 25.248673568548273
'sigy': 4.562988664359767
'sigx': 5.1249257343406915}

VariableMetricBuilder: matrix not pos.def.
gdel > 0: 108.104
negative or zero diagonal element 6 in covariance matrix
added 1.20045 to diagonal of error matrix
gdel: -288.772

**** iMinuit ****  True
fval = 2691.32143244
{'A': 11531.618825405401
'bg': 571.6803722290349
'angle': 17.763403542972995
'muy': 20.54449291866988
'mux': 25.24866481054502
'sigy': 4.562888870011636
'sigx': 5.124959686954614}

- - - - roi 23  - - - -

**** Minuit ****  True
fval = 9121.895719
{'A': 384903.90541824716
'bg': 600.071553869503
'angle': -28.554169424319667
'muy': 20.116014838587393
'mux': 20.527557354100754
'sigy': 4.157478592503187
'sigx': 5.0602417469584}

**** iMinuit ****  True
fval = 9121.89571952
{'A': 384903.3192244213
'bg': 600.0707714951126
'angle': -28.555258327219654
'muy': 20.116017611253604
'mux': 20.527589315564626
'sigy': 4.157476975596071
'sigx': 5.06023364743324}

- - - - roi 24  - - - -
MnHesse: 2nd derivative zero for parameter 3
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 1.10878 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 1.10878 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 25  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.687204
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 92.5673 to diagonal of error matrix
eigenvalues:
-5.0691
0.969877
1.04912
7.05011
matrix forced pos-def by adding 5.07615 to diagonal
gdel: -1.76476
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.000398133
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
added 5.86902e+14 to diagonal of error matrix
eigenvalues:
-91469.7
1
1
91471.7
matrix forced pos-def by adding 91561.2 to diagonal
gdel: -5.06541e+14
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.0113409 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: call limit exceeded.
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.

**** iMinuit ****  False

- - - - roi 26  - - - -
**** Border and/or not single ****

- - - - roi 27  - - - -

**** Minuit ****  True
fval = 158635.492056
{'A': 4755186.972049388
'bg': 817.710091916564
'angle': -14.335336283339558
'muy': 20.702638747414024
'mux': 20.468195757583572
'sigy': 4.030161743320317
'sigx': 5.016437669674367}

**** iMinuit ****  True
fval = 158635.492056
{'A': 4755187.13309057
'bg': 817.710084278245
'angle': -14.335342088668952
'muy': 20.702638594781725
'mux': 20.468195534949217
'sigy': 4.030161855437403
'sigx': 5.016437504780601}

- - - - roi 28  - - - -
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0587282 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.0173212
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 2.72624e+15 to diagonal of error matrix
eigenvalues:
-620951
0.999998
1
620953
matrix forced pos-def by adding 621572 to diagonal
gdel: -8.23452e+15
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.000222646 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 29  - - - -
**** Border and/or not single ****

- - - - roi 30  - - - -
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.000193789 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 4730.28737714
{'A': 221648.16244415983
'bg': 565.5254987621598
'angle': -20.057313309873365
'muy': -24.619690830644288
'mux': 21.859940217961046
'sigy': 14.061872184162592
'sigx': 4.16667977659773}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 4730.28737714
{'A': 221648.16244415983
'bg': 565.5254987621598
'angle': -20.057313309873365
'muy': -24.619690830644288
'mux': 21.859940217961046
'sigy': 14.061872184162592
'sigx': 4.16667977659773}

- - - - roi 31  - - - -

**** Minuit ****  True
fval = 46791.7008351
{'A': 732627.1282683008
'bg': 697.5547581602436
'angle': -89.99999999999903
'muy': 20.56922514681664
'mux': 20.328924261179086
'sigy': 4.71064666922819
'sigx': 4.512853355049917}

**** iMinuit ****  True
fval = 46791.7008337
{'A': 732627.2267353914
'bg': 697.5546352952638
'angle': -89.99999999992897
'muy': 20.56922926843171
'mux': 20.32893120453606
'sigy': 4.7106414007324595
'sigx': 4.512853262308565}

- - - - roi 32  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.00113598
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 6.44345e+14 to diagonal of error matrix
eigenvalues:
-216353
1
1
216355
matrix forced pos-def by adding 216570 to diagonal
gdel: -7.45352e+15
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.00037814 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2702.20303182
{'A': 23692.66263572543
'bg': 577.3992575746125
'angle': -14.918186124736707
'muy': 5.398620091547762
'mux': 41.36462277632608
'sigy': 4.029794154091341
'sigx': 5.532377233259187}

**** iMinuit ****  True
fval = 2702.20303182
{'A': 23692.66263572543
'bg': 577.3992575746125
'angle': -14.918186124736707
'muy': 5.398620091547762
'mux': 41.36462277632608
'sigy': 4.029794154091341
'sigx': 5.532377233259187}

- - - - roi 33  - - - -

**** Minuit ****  True
fval = 9833.97893579
{'A': 491989.24580358044
'bg': 611.5441512128597
'angle': -26.72840609058195
'muy': 20.20607973606682
'mux': 20.260319149964648
'sigy': 3.9631044083838436
'sigx': 4.744638298182633}

**** iMinuit ****  True
fval = 9833.97893579
{'A': 491989.2792716845
'bg': 611.5442018814086
'angle': -26.72840189946622
'muy': 20.206078161078008
'mux': 20.260319267607027
'sigy': 3.963102774997116
'sigx': 4.744637461983109}

- - - - roi 34  - - - -

**** Minuit ****  True
fval = 6885.97347282
{'A': 356483.95987783314
'bg': 602.6648428923478
'angle': -14.116851841123932
'muy': 20.780109778854868
'mux': 20.49262447110312
'sigy': 3.780584773332204
'sigx': 4.422185650312604}

**** iMinuit ****  True
fval = 6885.97347279
{'A': 356484.0109419419
'bg': 602.664952950874
'angle': -14.11700575275718
'muy': 20.78011016920337
'mux': 20.492627522835953
'sigy': 3.7805839540956954
'sigx': 4.422182305279126}

- - - - roi 35  - - - -

**** Minuit ****  True
fval = 2013.28997399
{'A': 88375.08900330213
'bg': 588.2308451656055
'angle': 68.75886688374754
'muy': 19.08237599116255
'mux': 19.256862757787975
'sigy': 4.335477459164802
'sigx': 3.701475632446458}

**** iMinuit ****  True
fval = 2013.28997468
{'A': 88375.33608561366
'bg': 588.2306214945208
'angle': 68.75918466000323
'muy': 19.082382388024058
'mux': 19.25686709799509
'sigy': 4.335493165022152
'sigx': 3.70149316867755}

- - - - roi 36  - - - -
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.37822e-05 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2268.84391988
{'A': 73732.5548872796
'bg': 572.4338932045782
'angle': -0.8281937978807719
'muy': -5.804931067472619
'mux': 40.43279856055955
'sigy': 11.937550638969329
'sigx': 0.3934422678456985}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 2268.84391988
{'A': 73732.5548872796
'bg': 572.4338932045782
'angle': -0.8281937978807719
'muy': -5.804931067472619
'mux': 40.43279856055955
'sigy': 11.937550638969329
'sigx': 0.3934422678456985}

- - - - roi 37  - - - -
**** Border and/or not single ****

- - - - roi 38  - - - -
eigenvalues:
-1.61737
0.952238
1.07919
3.58595
matrix forced pos-def by adding 1.62096 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 7780.58 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 7780.58 requested: 1e-05
FunctionMinimum is invalid.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2855.2457798
{'A': 64722.48757131264
'bg': 559.9183382459357
'angle': 89.99999318802617
'muy': 6.364964587661999
'mux': -38.19419424409231
'sigy': 51.02161332523268
'sigx': 16.18952838497707}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 2855.2457798
{'A': 64722.48757131264
'bg': 559.9183382459357
'angle': 89.99999318802617
'muy': 6.364964587661999
'mux': -38.19419424409231
'sigy': 51.02161332523268
'sigx': 16.18952838497707}

- - - - roi 39  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 925.487
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 152591 to diagonal of error matrix
eigenvalues:
-2.37606
1
1
4.37605
matrix forced pos-def by adding 2.38043 to diagonal
gdel: -6.48514e+08
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 449.728 requested: 1e-05
VariableMetricBuilder: Tolerance is not sufficient - edm is 534.287 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 175.245
eigenvalues:
-0.0428278
0.980898
1.10565
1.95628
matrix forced pos-def by adding 0.0447841 to diagonal
gdel: -329.89

**** Minuit ****  True
fval = 2111.00646274
{'A': 27425.95155639346
'bg': 583.0661842458708
'angle': -45.510305630286354
'muy': 21.575805763536057
'mux': 16.682813182397368
'sigy': 5.7867174414620655
'sigx': 4.295691753412272}

VariableMetricBuilder: matrix not pos.def.
gdel > 0: 1747.23
negative or zero diagonal element 3 in covariance matrix
added 0.542759 to diagonal of error matrix
gdel: -30235.3

**** iMinuit ****  True
fval = 2111.00646729
{'A': 27425.75222830647
'bg': 583.0664040488831
'angle': 44.48453318210619
'muy': 21.575940206957434
'mux': 16.682858625977364
'sigy': 4.295595324623022
'sigx': 5.786724499724386}

- - - - roi 40  - - - -
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0713475 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.00027885 requested: 1e-05
FunctionMinimum is invalid.
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 106.787
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 4.58283 to diagonal of error matrix
eigenvalues:
-3.11914
0.996715
1.00167
1.00854
1.13025
1.66372
4.31824
matrix forced pos-def by adding 3.12346 to diagonal
gdel: -317.86
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 1.77268 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 2.83226
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 159.404 to diagonal of error matrix
eigenvalues:
-25.5464
1
1.00018
1.00045
1.01073
1.28847
27.2465
matrix forced pos-def by adding 25.5736 to diagonal
gdel: -2.49602e+07
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 4.62583 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.

**** Minuit ****  False

VariableMetricBuilder: matrix not pos.def.
gdel > 0: 106.787
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 4.58283 to diagonal of error matrix
eigenvalues:
-3.11914
0.996715
1.00167
1.00854
1.13025
1.66372
4.31824
matrix forced pos-def by adding 3.12346 to diagonal
gdel: -317.86
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 1.77268 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 2.83226
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
negative or zero diagonal element 6 in covariance matrix
added 159.404 to diagonal of error matrix
eigenvalues:
-25.5464
1
1.00018
1.00045
1.01073
1.28847
27.2465
matrix forced pos-def by adding 25.5736 to diagonal
gdel: -2.49602e+07
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 4.62583 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.

**** iMinuit ****  False

- - - - roi 41  - - - -

**** Minuit ****  True
fval = 2337.77365552
{'A': 94957.43740917309
'bg': 580.4064559928429
'angle': 79.03580381596512
'muy': 20.830148289444985
'mux': 20.046954361231574
'sigy': 4.053973256330512
'sigx': 3.550648047066906}

**** iMinuit ****  True
fval = 2337.7736565
{'A': 94957.44988412253
'bg': 580.4064023360836
'angle': 79.03557723996062
'muy': 20.8301560574187
'mux': 20.046971592204713
'sigy': 4.053969309512219
'sigx': 3.550660328478897}

- - - - roi 42  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 404.17
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.683865 to diagonal of error matrix
gdel: -151.538

**** Minuit ****  True
fval = 2504.57152591
{'A': 10272.737434459603
'bg': 567.0091697550785
'angle': -67.25500054246871
'muy': 17.798070870164405
'mux': 23.622121254283364
'sigy': 4.088761143456511
'sigx': 3.54771194038689}

**** iMinuit ****  True
fval = 2504.57152426
{'A': 10272.855236881902
'bg': 567.0095673345189
'angle': -67.2630978749066
'muy': 17.798199961327295
'mux': 23.622115176640907
'sigy': 4.08873792780044
'sigx': 3.5477995711581687}

- - - - roi 43  - - - -
**** Border and/or not single ****

- - - - roi 44  - - - -
**** Border and/or not single ****

- - - - roi 45  - - - -

**** Minuit ****  True
fval = 2294.02926966
{'A': 116526.34285249427
'bg': 590.433936411766
'angle': 73.17301385436005
'muy': 20.726632673767654
'mux': 19.839375327836393
'sigy': 4.235515388108135
'sigx': 3.564823560678305}

**** iMinuit ****  True
fval = 2294.02926952
{'A': 116526.57605195667
'bg': 590.4335825446319
'angle': 73.17227242719983
'muy': 20.726628457743693
'mux': 19.839379402120407
'sigy': 4.235537300404976
'sigx': 3.564815882379967}

- - - - roi 46  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.925316
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 3.05171e+06 to diagonal of error matrix
eigenvalues:
-22.7804
1
1.00003
24.7804
matrix forced pos-def by adding 22.8052 to diagonal
gdel: -352664
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
eigenvalues:
-0.223689
1.0043
1.04061
2.17878
matrix forced pos-def by adding 0.225868 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 79674.5 requested 1e-05 continue the minimization
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 79674.5 requested: 1e-05
FunctionMinimum is invalid.
MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 47  - - - -
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00887866 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 4.21282e-05
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 4.4388e+12 to diagonal of error matrix
eigenvalues:
-22131.7
1
1
22133.7
matrix forced pos-def by adding 22153.8 to diagonal
gdel: -2.90495e+10
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.0011655 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 4.13753e-05 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 4.13753e-05 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 48  - - - -

**** Minuit ****  True
fval = 19966.8353575
{'A': 679286.8732433093
'bg': 629.2652094419865
'angle': -89.99999999999015
'muy': 20.40807822018856
'mux': 20.31592291902525
'sigy': 4.362162577010625
'sigx': 4.111471992859492}

**** iMinuit ****  True
fval = 19966.8353562
{'A': 679285.9768514354
'bg': 629.2657871476657
'angle': -89.99999999994024
'muy': 20.408091714859992
'mux': 20.315918923920602
'sigy': 4.362177872610793
'sigx': 4.11147450652823}

- - - - roi 49  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 18.7624
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 4.079e+07 to diagonal of error matrix
eigenvalues:
-130.98
1
1.00008
132.98
matrix forced pos-def by adding 131.113 to diagonal
gdel: -1.33942e+08
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.355584 requested: 1e-05
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.25595 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.00038854
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 3.25223e+14 to diagonal of error matrix
eigenvalues:
-382895
1
1
382897
matrix forced pos-def by adding 383278 to diagonal
gdel: -9.51429e+14
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: machine accuracy limits further improvement.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2157.56344307
{'A': -447029.1600018435
'bg': 592.0877001234893
'angle': 80.5096407877173
'muy': -2.5777628040728784
'mux': -127.61348825960064
'sigy': 185.56545105774
'sigx': 26.859019217144457}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 2149.97592331
{'A': 63370.960399583266
'bg': 582.1255944524843
'angle': -58.54106234206651
'muy': -33.206071496625604
'mux': 91.63672897658864
'sigy': 28.673781285362946
'sigx': 1.6162604192102121}

- - - - roi 50  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.000209102
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 5.02405e+14 to diagonal of error matrix
eigenvalues:
-189296
1
1
189298
matrix forced pos-def by adding 189486 to diagonal
gdel: -1.37665e+15
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.000791748 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 3414.52400202
{'A': 149567.4591222262
'bg': 582.6092707551805
'angle': 3.3394501897008695
'muy': 13.117873260436346
'mux': -19.526151197506664
'sigy': 3.7209561701434013
'sigx': 9.446896017054396}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 3414.52400202
{'A': 149567.4591222262
'bg': 582.6092707551805
'angle': 3.3394501897008695
'muy': 13.117873260436346
'mux': -19.526151197506664
'sigy': 3.7209561701434013
'sigx': 9.446896017054396}

- - - - roi 51  - - - -

**** Minuit ****  True
fval = 6955.52891449
{'A': 417098.16608775116
'bg': 600.4752917208237
'angle': -4.16171120703693
'muy': 20.3910682809323
'mux': 20.47557624908281
'sigy': 3.5350525336010077
'sigx': 3.982835263434713}

**** iMinuit ****  True
fval = 6955.52891399
{'A': 417098.3873601022
'bg': 600.4752058811624
'angle': -4.162013825825085
'muy': 20.391069580378378
'mux': 20.475578879097156
'sigy': 3.535054931780533
'sigx': 3.98283412267473}

- - - - roi 52  - - - -
VariableMetricBuilder: Tolerance is not sufficient - edm is 28.6035 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
edm < 0
negative or zero diagonal element 1 in covariance matrix
added 49.9424 to diagonal of error matrix
eigenvalues:
-1.53488
0.999999
1.0003
3.53458
matrix forced pos-def by adding 1.53841 to diagonal
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 7.95835
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 0.503424 to diagonal of error matrix
gdel: -6471.05
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 358.619
eigenvalues:
-0.0714838
0.220381
1.77866
2.07244
matrix forced pos-def by adding 0.0735562 to diagonal
gdel: -17.0612
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 48.6209
eigenvalues:
-4.75457
0.256538
1.44333
7.0547
matrix forced pos-def by adding 4.76162 to diagonal
gdel: -60.2868
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 2804.08
eigenvalues:
-0.285676
0.00447759
0.14291
4.13829
matrix forced pos-def by adding 0.289814 to diagonal
gdel: -616.789
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 75.8585
negative or zero diagonal element 3 in covariance matrix
added 0.500001 to diagonal of error matrix
gdel: -1.05952e+06
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 18456.2
eigenvalues:
-0.0518601
0.740076
0.906189
2.40559
matrix forced pos-def by adding 0.0542657 to diagonal
gdel: -2567.14
eigenvalues:
-0.0012669
-0.0002236
0.000815965
4.00067
matrix forced pos-def by adding 0.00526757 to diagonal
eigenvalues:
-0.0106792
-0.00109795
-0.000192757
0.00090429
0.0135243
0.999958
5.99758
matrix forced pos-def by adding 0.0166768 to diagonal
eigenvalues:
-0.0106789
-0.00109811
-0.000192757
0.000904217
0.0135247
0.999958
5.99758
matrix forced pos-def by adding 0.0166765 to diagonal

**** Minuit ****  True
fval = 1449.24038795
{'A': 309.51503314810816
'bg': 590.3265201996733
'angle': -43.3268187537511
'muy': 19.51089884461597
'mux': 19.48017602282
'sigy': 0.002991666963970564
'sigx': 0.4471068237148437}

VariableMetricBuilder: matrix not pos.def.
gdel > 0: 1.16173
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
added 24.2043 to diagonal of error matrix
eigenvalues:
-18.5028
0.999887
1
1.01599
1.17886
3.86444
17.4436
matrix forced pos-def by adding 18.5202 to diagonal
gdel: -3.0978e+06
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 1303.21 requested: 1e-05
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
eigenvalues:
-0.0152565
0.0710178
0.175337
0.994724
1
1.16697
3.6072
matrix forced pos-def by adding 0.0188637 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.215171 requested 1e-05 continue the minimization
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 10748.8701963
{'A': 619443.5353143102
'bg': 590.6236867305064
'angle': -9.410132797414064
'muy': 21.125580115423677
'mux': 42.185855541492025
'sigy': 4.303226138704186
'sigx': 0.35920318930680056}

- - - - roi 53  - - - -

**** Minuit ****  True
fval = 4272.0939862
{'A': 277938.8098818659
'bg': 595.9706635365912
'angle': -10.737680354039597
'muy': 20.393664626418406
'mux': 20.456086285479902
'sigy': 3.4541235248671773
'sigx': 3.924186953514024}

**** iMinuit ****  True
fval = 4272.09398639
{'A': 277938.7511786992
'bg': 595.9704370194719
'angle': -10.737735838171048
'muy': 20.393663603633044
'mux': 20.45609123315205
'sigy': 3.4541235038618705
'sigx': 3.9241865484882306}

- - - - roi 54  - - - -
MnHesse: 2nd derivative zero for parameter 3
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00982522 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00982522 requested 1e-05 continue the minimization
VariableMetricBuilder: call limit exceeded.
FunctionMinimum is invalid.

**** iMinuit ****  False

- - - - roi 55  - - - -
**** Border and/or not single ****

- - - - roi 56  - - - -
**** Border and/or not single ****

- - - - roi 57  - - - -
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
eigenvalues:
-0.00376204
0.271451
0.367155
0.783927
0.992271
1.30027
3.28869
matrix forced pos-def by adding 0.00705073 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0364927 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.0662037
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
added 4.34724e+08 to diagonal of error matrix
eigenvalues:
-50.0297
1
1
1
1
1
52.0297
matrix forced pos-def by adding 50.0818 to diagonal
gdel: -417739
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.698024 requested: 1e-05
FunctionMinimum is invalid.
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.5759e-05 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 3.5759e-05 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 58  - - - -
MnHesse: 2nd derivative zero for parameter 3
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.0639029
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
added 4.44232 to diagonal of error matrix
eigenvalues:
-5.51831
0.999986
1
1.00097
1.26728
1.70337
6.5467
matrix forced pos-def by adding 5.52486 to diagonal
gdel: -0.112388
MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.0639029
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
negative or zero diagonal element 4 in covariance matrix
negative or zero diagonal element 5 in covariance matrix
added 4.44232 to diagonal of error matrix
eigenvalues:
-5.51831
0.999986
1
1.00097
1.26728
1.70337
6.5467
matrix forced pos-def by adding 5.52486 to diagonal
gdel: -0.112388
MnHesse: 2nd derivative zero for parameter 0
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 59  - - - -

**** Minuit ****  True
fval = 4418.04473129
{'A': 164681.39447219475
'bg': 596.9978973726122
'angle': -17.139428958270983
'muy': 20.95876182698452
'mux': 19.85543708988008
'sigy': 3.362686643959178
'sigx': 3.8397169861984675}

**** iMinuit ****  True
fval = 4418.04473092
{'A': 164681.70264208983
'bg': 596.9983092338543
'angle': -17.139283027085767
'muy': 20.95874990297424
'mux': 19.85543354503498
'sigy': 3.362700863885353
'sigx': 3.8397229801429376}

- - - - roi 60  - - - -

**** Minuit ****  True
fval = 4610.60039396
{'A': 319708.85994253994
'bg': 613.5327931782713
'angle': -43.899247300098914
'muy': 20.56405919731121
'mux': 20.2286201106887
'sigy': 3.863725657398556
'sigx': 4.590393234638932}

**** iMinuit ****  True
fval = 4610.60039242
{'A': 319709.0369339089
'bg': 613.5326856086838
'angle': -43.8986229767998
'muy': 20.564062096726804
'mux': 20.22862210475931
'sigy': 3.8637277441432594
'sigx': 4.590389932093664}

- - - - roi 61  - - - -

**** Minuit ****  True
fval = 2752.10117909
{'A': 182631.2835645885
'bg': 591.2215407590191
'angle': 70.25893214037794
'muy': 20.300980003176942
'mux': 20.249409688492452
'sigy': 3.7858562204114055
'sigx': 3.343284269671578}

**** iMinuit ****  True
fval = 2752.10117912
{'A': 182631.32074782145
'bg': 591.221275708658
'angle': 70.258827267302
'muy': 20.300980749551663
'mux': 20.249413195195743
'sigy': 3.785856605699093
'sigx': 3.3432813895505653}

- - - - roi 62  - - - -
**** Border and/or not single ****

- - - - roi 63  - - - -
**** Border and/or not single ****

- - - - roi 64  - - - -

**** Minuit ****  True
fval = 6106.741426
{'A': 368886.4848467257
'bg': 631.222423488026
'angle': -47.332371930793755
'muy': 20.674651524614607
'mux': 20.378782564706572
'sigy': 3.8978757331995237
'sigx': 4.628509655256464}

**** iMinuit ****  True
fval = 6106.74142659
{'A': 368886.7104259557
'bg': 631.2220920896762
'angle': -47.33223696099
'muy': 20.674649657979227
'mux': 20.378781445996854
'sigy': 3.8978820585150316
'sigx': 4.628511308329306}

- - - - roi 65  - - - -

**** Minuit ****  True
fval = 2840.3448445
{'A': 178891.51949023912
'bg': 592.3312884104407
'angle': 69.62310155761756
'muy': 20.066563304120553
'mux': 20.44847811272047
'sigy': 3.718498789711013
'sigx': 3.3066960525350986}

**** iMinuit ****  True
fval = 2840.34484316
{'A': 178891.52944500942
'bg': 592.3309767525319
'angle': 69.62197711498797
'muy': 20.066558132030742
'mux': 20.448474294446438
'sigy': 3.7184972776412057
'sigx': 3.3066906793071618}

- - - - roi 66  - - - -

**** Minuit ****  True
fval = 2720.21432915
{'A': 62735.0146568316
'bg': 586.6536904849952
'angle': 69.07744733692374
'muy': 19.90920939981935
'mux': 20.42074852699166
'sigy': 3.5139394282350884
'sigx': 3.181286853701267}

**** iMinuit ****  True
fval = 2720.21432915
{'A': 62735.04727157366
'bg': 586.6537272044337
'angle': 69.07737862566472
'muy': 19.909209290961513
'mux': 20.4207456324564
'sigy': 3.5139402000949835
'sigx': 3.1812892894597713}

- - - - roi 67  - - - -
eigenvalues:
-15.7829
0.923043
1.10779
17.7521
matrix forced pos-def by adding 15.8007 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 39.754 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 281.287
negative or zero diagonal element 2 in covariance matrix
added 1.83302 to diagonal of error matrix
gdel: -266.03
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 646.314
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 0.50153 to diagonal of error matrix
gdel: -207968
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 67.2487
eigenvalues:
-0.0333301
0.00739362
1.17964
2.8463
matrix forced pos-def by adding 0.0361764 to diagonal
gdel: -464.455
eigenvalues:
-0.000110948
0.00116973
0.00344816
3.99549
matrix forced pos-def by adding 0.00410644 to diagonal
eigenvalues:
-0.0148312
-0.000347168
0.00086605
0.00316104
0.00609621
0.999896
6.00516
matrix forced pos-def by adding 0.0208363 to diagonal
eigenvalues:
-0.0148309
-0.000347178
0.000866037
0.00316116
0.00609681
0.999896
6.00516
matrix forced pos-def by adding 0.0208361 to diagonal

**** Minuit ****  True
fval = 1425.16396008
{'A': 284.46911576243605
'bg': 585.5122090328953
'angle': -43.084958274948534
'muy': 19.51559938866986
'mux': 19.48514938830806
'sigy': 0.008321423268200276
'sigx': 1.2265775936045302}

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00661935 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 68  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.575423
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 451055 to diagonal of error matrix
eigenvalues:
-16.8109
1
1.00008
18.8109
matrix forced pos-def by adding 16.8298 to diagonal
gdel: -57882.9
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.00422526 requested: 1e-05
VariableMetricBuilder: Tolerance is not sufficient - edm is 41.2776 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
edm < 0
negative or zero diagonal element 1 in covariance matrix
added 24.9121 to diagonal of error matrix
eigenvalues:
-3.21677
0.234205
1.20459
5.77798
matrix forced pos-def by adding 3.22255 to diagonal
eigenvalues:
-0.027278
0.735094
1.01058
2.2816
matrix forced pos-def by adding 0.0295596 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0369106 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 0.000945888
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 9.72459e+13 to diagonal of error matrix
eigenvalues:
-180913
1
1
180915
matrix forced pos-def by adding 181094 to diagonal
gdel: -6.70014e+15
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 0.000217248 requested: 1e-05
FunctionMinimum is invalid.
MnGlobalCorrelationCoeff: inversion of matrix fails.
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 2819.87433342
{'A': 71930.52867544629
'bg': 569.7278298993738
'angle': 67.11438535628906
'muy': 53.464930984669095
'mux': 20.241651513975683
'sigy': 2.688899600194102
'sigx': 8.150937814609495}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix

**** iMinuit ****  True
fval = 2819.87433342
{'A': 71930.52867544629
'bg': 569.7278298993738
'angle': 67.11438535628906
'muy': 53.464930984669095
'mux': 20.241651513975683
'sigy': 2.688899600194102
'sigx': 8.150937814609495}

- - - - roi 69  - - - -
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 324.59
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
negative or zero diagonal element 3 in covariance matrix
added 7.13804e+06 to diagonal of error matrix
eigenvalues:
-2.27869
1
1
4.27869
matrix forced pos-def by adding 2.28297 to diagonal
gdel: -9.50821e+09
VariableMetricBuilder: warning: no improvement in line search
VariableMetricBuilder: finishes without convergence.
VariableMetricBuilder: edm= 55.8413 requested: 1e-05
eigenvalues:
-1.63948
0.0848538
1.55198
4.00265
matrix forced pos-def by adding 1.64348 to diagonal
VariableMetricBuilder: Tolerance is not sufficient - edm is 2119.12 requested 1e-05 continue the minimization
VariableMetricBuilder: matrix not pos.def.
gdel > 0: 17.5534
negative or zero diagonal element 1 in covariance matrix
added 4.42414 to diagonal of error matrix
eigenvalues:
-0.693174
1.00058
1.34015
2.35244
matrix forced pos-def by adding 0.695526 to diagonal
gdel: -5121.93
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** Minuit ****  True
fval = 2836.12587412
{'A': 22466.299254350273
'bg': 580.2194181831599
'angle': -46.246931857035875
'muy': 36.47658732160413
'mux': 28.66750901349609
'sigy': 3.2569428964990705
'sigx': 4.009772406205779}

**** iMinuit ****  True
fval = 2836.12587412
{'A': 22466.299254350273
'bg': 580.2194181831599
'angle': -46.246931857035875
'muy': 36.47658732160413
'mux': 28.66750901349609
'sigy': 3.2569428964990705
'sigx': 4.009772406205779}

- - - - roi 70  - - - -

**** Minuit ****  True
fval = 44468.3064189
{'A': 1734183.5298197176
'bg': 674.403344625776
'angle': -2.8281925002770976
'muy': 20.515877704627304
'mux': 20.272017303721714
'sigy': 3.4083138464589795
'sigx': 3.690128478218381}

**** iMinuit ****  True
fval = 44468.3064189
{'A': 1734183.462712506
'bg': 674.4030654466023
'angle': -2.828108145916488
'muy': 20.515876983732056
'mux': 20.272016656907443
'sigy': 3.4083134988883392
'sigx': 3.69012771112927}

- - - - roi 71  - - - -
MnHesse: 2nd derivative zero for parameter 3
MnHesse fails and will return diagonal matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
eigenvalues:
-0.0206035
0.0380868
0.0466243
0.715138
0.999217
1
4.22154
matrix forced pos-def by adding 0.024825 to diagonal
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
eigenvalues:
-0.0206701
0.0381956
0.0467053
0.715153
0.999217
1
4.2214
matrix forced pos-def by adding 0.0248915 to diagonal

**** Minuit ****  True
fval = 3179.47849754
{'A': 114277.94811849804
'bg': 571.1639721160285
'angle': 29.765867143661524
'muy': -1.5572919095303352
'mux': 39.113353708695975
'sigy': 5.385604774893013
'sigx': -0.2554914264279753}

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
eigenvalues:
-0.0206035
0.0380868
0.0466243
0.715138
0.999217
1
4.22154
matrix forced pos-def by adding 0.024825 to diagonal
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
eigenvalues:
-0.0206701
0.0381956
0.0467053
0.715153
0.999217
1
4.2214
matrix forced pos-def by adding 0.0248915 to diagonal

**** iMinuit ****  True
fval = 3179.47849754
{'A': 114277.94811849804
'bg': 571.1639721160285
'angle': 29.765867143661524
'muy': -1.5572919095303352
'mux': 39.113353708695975
'sigy': 5.385604774893013
'sigx': -0.2554914264279753}

- - - - roi 72  - - - -
**** Border and/or not single ****

- - - - roi 73  - - - -
**** Border and/or not single ****

- - - - roi 74  - - - -

**** Minuit ****  True
fval = 1732.10676118
{'A': 93537.18505703179
'bg': 586.6083313562021
'angle': 54.81841411571105
'muy': 20.547959159788054
'mux': 20.310717549063604
'sigy': 3.861048381504733
'sigx': 3.33456207604897}

**** iMinuit ****  True
fval = 1732.1067618
{'A': 93537.0877499103
'bg': 586.6085107374079
'angle': 54.8187339732178
'muy': 20.547957646384514
'mux': 20.31072545483871
'sigy': 3.861047060659338
'sigx': 3.33456902607316}

- - - - roi 75  - - - -
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0574589 requested 1e-05 continue the minimization
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 1 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix
negative or zero diagonal element 0 in covariance matrix
negative or zero diagonal element 2 in covariance matrix
added 0.500001 to diagonal of error matrix

**** Minuit ****  True
fval = 3108.32833166
{'A': -2421536.2915422926
'bg': 576.1104140928438
'angle': -31.67448182109741
'muy': 12.927188258162724
'mux': 25.768624643445065
'sigy': 2.9345194281568263
'sigx': 26311.212292698896}

VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.0290736 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 76  - - - -
VariableMetricBuilder: call limit exceeded.
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 4.7724e-05 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix
negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00160079 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** Minuit ****  False

negative or zero diagonal element 0 in covariance matrix
added 0.500001 to diagonal of error matrix
VariableMetricBuilder: Tolerance is not sufficient - edm is 0.00160079 requested 1e-05 continue the minimization
MnHesse: maximum number of allowed function calls exhausted.
MnHesse fails and will return diagonal matrix

**** iMinuit ****  False

- - - - roi 77  - - - -
**** Border and/or not single ****

- - - - roi 78  - - - -
**** Border and/or not single ****

- - - - roi 79  - - - -
**** Border and/or not single ****

- - - - roi 80  - - - -
**** Border and/or not single ****

- - - - roi 81  - - - -
**** Border and/or not single ****

```

 roi number PyMinuit Fisical Result? iMinuit Fisical Result? HotPixel? 0 `fval = 3378.59308005 {'A': 148065.77491357646 'bg': 572.3827252516722 'angle': -61.91430148618889 'muy': -8.716784396039797 'mux': -16.485752060172157 'sigy': 1.847472559732902 'sigx': 13.82756811415661}` No `fval = 3378.59308005 {'A': 148065.77491357646 'bg': 572.3827252516722 'angle': -61.91430148618889 'muy': -8.716784396039797 'mux': -16.485752060172157 'sigy': 1.847472559732902 'sigx': 13.82756811415661}` No Yes 1 `fval = 2423.61433436 {'A': -1689302.7632115947 'bg': 585.9531959869913 'angle': 25.813492531895776 'muy': -13.423944301993608 'mux': -4.504492734579577 'sigy': 25122.810112512532 'sigx': 2.0492586927351626}` No `False` - Yes 2 `fval = 2621.31010476 {'A': -7801603.7402832 'bg': 565.2894243102445 'angle': 77.34715405737066 'muy': 16.02349753811419 'mux': 27.94127875595934 'sigy': 52188.23219050946 'sigx': 5.368321266056039}` No `fval = 2535.55500632 {'A': 77486.75875832487 'bg': 562.1384442511143 'angle': 54.79707404918241 'muy': 51.009931508035926 'mux': 16.362362275226417 'sigy': 8.96720420446321 'sigx': 4.950876482213082}` No Yes 3 `False` - `False` - Yes 4 `fval = 18518.6448802 {'A': 623566.7725842549 'bg': 609.5961996123447 'angle': -15.41095131751726 'muy': 20.3925970025792 'mux': 20.66268940748408 'sigy': 4.131982235159669 'sigx': 4.933146602350255}` Yes `fval = 18518.6448722 {'A': 623567.1999263188 'bg': 609.5961485797089 'angle': -15.411527948512415 'muy': 20.39258392808676 'mux': 20.662691735365026 'sigy': 4.131973085959172 'sigx': 4.933151038863691}` Yes No 5 `fval = 8121.49521915 {'A': 299288.64674829907 'bg': 582.5445902567951 'angle': 1.1331914186329755 'muy': 20.44991495209858 'mux': 19.759599654212277 'sigy': 4.0625827956205045 'sigx': 4.7601946288987245}` Yes `fval = 8121.49521995 {'A': 299288.7100926881 'bg': 582.5446999143275 'angle': 1.1328993370255063 'muy': 20.449903147360263 'mux': 19.75959910126001 'sigy': 4.062583581715732 'sigx': 4.7601920177616}` Yes No 6 `fval = 6983.43103961 {'A': -8756953.244731816 'bg': 567.1947388548588 'angle': 46.92096407674063 'muy': 21.14230508304217 'mux': 20.830279673077776 'sigy': 5.567315049734359 'sigx': 54447.86619203548}` No ` fval = 6955.0230036 {'A': 365509.23907745775 'bg': 563.4214190637549 'angle': 38.36013587526631 'muy': 108.57998839846091 'mux': 95.17800199712902 'sigy': 38.53978707406289 'sigx': 3.969993706388433}` No Yes 7 `False` - `False` - Yes 8 ` fval = 3079.2565078 {'A': 124189.01527936573 'bg': 567.5158998998949 'angle': -18.183098579813944 'muy': 3.3437289634734535 'mux': -35.89335953230764 'sigy': 3.6148545826651546 'sigx': 19.67907563361348}` No `fval = 3079.2565078 {'A': 124189.01527936573 'bg': 567.5158998998949 'angle': -18.183098579813944 'muy': 3.3437289634734535 'mux': -35.89335953230764 'sigy': 3.6148545826651546 'sigx': 19.67907563361348}` No Yes 9 `False` - `False` - Yes 10 `False` - `False` - Yes 11 `fval = 2241.27588185 {'A': -64789.424921831946 'bg': 563.5845256995262 'angle': -4.755160035503593 'muy': 509.90028376518273 'mux': -6.161575102932611 'sigy': 286.73257957087094 'sigx': 1.5080630902914556}` No `fval = 2241.27588185 {'A': -64789.424921831946 'bg': 563.5845256995262 'angle': -4.755160035503593 'muy': 509.90028376518273 'mux': -6.161575102932611 'sigy': 286.73257957087094 'sigx': 1.5080630902914556}` No Yes 12 ` fval = 3858.40551076 {'A': -6762.088958596599 'bg': 588.4291717223091 'angle': 55.09528025167285 'muy': 17.667571776975617 'mux': 15.333538688748039 'sigy': -5.765826983183968 'sigx': 3.5984939042514306} ` No `False` No Yes 13 `False` - `False` - Yes 14 `False` - `False` - Yes 15 `False` - `False` - Yes 16 `fval = 79401.1079512 {'A': 2280723.370917509 'bg': 696.6552058220949 'angle': -17.549555250077802 'muy': 20.721862561557515 'mux': 21.25101564813208 'sigy': 4.165314055626622 'sigx': 4.987261125363536}` Yes `fval = 79401.1079492 {'A': 2280723.2216387773 'bg': 696.6551709994527 'angle': -17.54971146587401 'muy': 20.721858082355272 'mux': 21.251014224626317 'sigy': 4.165313439830403 'sigx': 4.98726449309343}` Yes No 17 `fval = 8265.04834761 {'A': 318460.6660450181 'bg': 584.8436751336843 'angle': 0.7205946567492845 'muy': 20.701559609319204 'mux': 20.47444321671409 'sigy': 3.9979386357959004 'sigx': 4.6529124791490055}` Yes `fval = 8265.04834986 {'A': 318460.6801322455 'bg': 584.8435888096394 'angle': 0.7209462116732794 'muy': 20.70156218034965 'mux': 20.474427952661088 'sigy': 3.9979452774711093 'sigx': 4.652917359691424}` Yes No 18 `fval = 3246.11658959 {'A': 120769.86287339163 'bg': 587.7045500545522 'angle': 57.3005400521329 'muy': 19.940220643614698 'mux': 19.008156557811258 'sigy': 5.014290569209643 'sigx': 4.16288425188374}` Yes `fval = 3246.1165949 {'A': 120770.01194514554 'bg': 587.7051157276667 'angle': 57.29884741919943 'muy': 19.94022228209817 'mux': 19.008137658232293 'sigy': 5.014260392116431 'sigx': 4.1628811025415375}` Yes No 19 `fval = 10650.2174752 {'A': 454917.38597829104 'bg': 611.0589058577422 'angle': -24.263068801984502 'muy': 20.608474933253397 'mux': 20.018131005923294 'sigy': 4.098961542052516 'sigx': 4.883202766309448}` Yes `fval = 10650.2174743 {'A': 454917.02672682033 'bg': 611.0591621248678 'angle': -24.262914713071837 'muy': 20.608473744078925 'mux': 20.0181281847428 'sigy': 4.098957468647641 'sigx': 4.883207350418244}` Yes No 20 `fval = 42253.5062368 {'A': 1247740.29406449 'bg': 648.5195788289112 'angle': -31.775418513179076 'muy': 20.9273700132327 'mux': 20.61891841279177 'sigy': 4.332325134518958 'sigx': 5.290521845689175}` Yes `fval = 42253.5062376 {'A': 1247740.4289249901 'bg': 648.5194137481546 'angle': -31.775312043438007 'muy': 20.927369705775664 'mux': 20.618919306229234 'sigy': 4.332325465960032 'sigx': 5.290518069241512}` Yes No 21 `fval = 7800.06134809 {'A': 339635.4256425956 'bg': 599.445381549316 'angle': -28.316344768643205 'muy': 20.418671753837884 'mux': 20.14162161272486 'sigy': 4.080722479609732 'sigx': 4.944232085345582}` Yes `fval = 7800.0613482 {'A': 339635.6316690559 'bg': 599.4454178466127 'angle': -28.31593725079665 'muy': 20.418674292654757 'mux': 20.14163411117907 'sigy': 4.080721308516051 'sigx': 4.944228809885553}` Yes No 22 `fval = 2691.32143359 {'A': 11531.979063474304 'bg': 571.6804495460534 'angle': 17.753898625873845 'muy': 20.544546583514432 'mux': 25.248673568548273 'sigy': 4.562988664359767 'sigx': 5.1249257343406915}` Yes `fval = 2691.32143244 {'A': 11531.618825405401 'bg': 571.6803722290349 'angle': 17.763403542972995 'muy': 20.54449291866988 'mux': 25.24866481054502 'sigy': 4.562888870011636 'sigx': 5.124959686954614}` Yes Maybe* 23 `fval = 9121.895719 {'A': 384903.90541824716 'bg': 600.071553869503 'angle': -28.554169424319667 'muy': 20.116014838587393 'mux': 20.527557354100754 'sigy': 4.157478592503187 'sigx': 5.0602417469584}` Yes `fval = 9121.89571952 {'A': 384903.3192244213 'bg': 600.0707714951126 'angle': -28.555258327219654 'muy': 20.116017611253604 'mux': 20.527589315564626 'sigy': 4.157476975596071 'sigx': 5.06023364743324}` Yes No 24 `False` - `False` - Yes 25 `False` - `False` - Yes 26 `N/A` - `N/A` - Border 27 `fval = 158635.492056 {'A': 4755186.972049388 'bg': 817.710091916564 'angle': -14.335336283339558 'muy': 20.702638747414024 'mux': 20.468195757583572 'sigy': 4.030161743320317 'sigx': 5.016437669674367}` Yes `fval = 158635.492056 {'A': 4755187.13309057 'bg': 817.710084278245 'angle': -14.335342088668952 'muy': 20.702638594781725 'mux': 20.468195534949217 'sigy': 4.030161855437403 'sigx': 5.016437504780601}` Yes No 28 `False` - `False` - Yes 29 `N/A` - `N/A` - Yes (Border) 30 `fval = 4730.28737714 {'A': 221648.16244415983 'bg': 565.5254987621598 'angle': -20.057313309873365 'muy': -24.619690830644288 'mux': 21.859940217961046 'sigy': 14.061872184162592 'sigx': 4.16667977659773}` No `fval = 4730.28737714 {'A': 221648.16244415983 'bg': 565.5254987621598 'angle': -20.057313309873365 'muy': -24.619690830644288 'mux': 21.859940217961046 'sigy': 14.061872184162592 'sigx': 4.16667977659773}` No Yes 31 ` fval = 46791.7008351 {'A': 732627.1282683008 'bg': 697.5547581602436 'angle': -89.99999999999903 'muy': 20.56922514681664 'mux': 20.328924261179086 'sigy': 4.71064666922819 'sigx': 4.512853355049917}` Yes `fval = 46791.7008337 {'A': 732627.2267353914 'bg': 697.5546352952638 'angle': -89.99999999992897 'muy': 20.56922926843171 'mux': 20.32893120453606 'sigy': 4.7106414007324595 'sigx': 4.512853262308565}` Yes No 32 `fval = 2702.20303182 {'A': 23692.66263572543 'bg': 577.3992575746125 'angle': -14.918186124736707 'muy': 5.398620091547762 'mux': 41.36462277632608 'sigy': 4.029794154091341 'sigx': 5.532377233259187}` Yes `fval = 2702.20303182 {'A': 23692.66263572543 'bg': 577.3992575746125 'angle': -14.918186124736707 'muy': 5.398620091547762 'mux': 41.36462277632608 'sigy': 4.029794154091341 'sigx': 5.532377233259187}` Yes Maybe* 33 ` fval = 9833.97893579 {'A': 491989.24580358044 'bg': 611.5441512128597 'angle': -26.72840609058195 'muy': 20.20607973606682 'mux': 20.260319149964648 'sigy': 3.9631044083838436 'sigx': 4.744638298182633}` Yes `fval = 9833.97893579 {'A': 491989.2792716845 'bg': 611.5442018814086 'angle': -26.72840189946622 'muy': 20.206078161078008 'mux': 20.260319267607027 'sigy': 3.963102774997116 'sigx': 4.744637461983109}` Yes No 34 `fval = 6885.97347282 {'A': 356483.95987783314 'bg': 602.6648428923478 'angle': -14.116851841123932 'muy': 20.780109778854868 'mux': 20.49262447110312 'sigy': 3.780584773332204 'sigx': 4.422185650312604}` Yes `fval = 6885.97347279 {'A': 356484.0109419419 'bg': 602.664952950874 'angle': -14.11700575275718 'muy': 20.78011016920337 'mux': 20.492627522835953 'sigy': 3.7805839540956954 'sigx': 4.422182305279126}` Yes No 35 `fval = 2013.28997399 {'A': 88375.08900330213 'bg': 588.2308451656055 'angle': 68.75886688374754 'muy': 19.08237599116255 'mux': 19.256862757787975 'sigy': 4.335477459164802 'sigx': 3.701475632446458}` Yes `fval = 2013.28997468 {'A': 88375.33608561366 'bg': 588.2306214945208 'angle': 68.75918466000323 'muy': 19.082382388024058 'mux': 19.25686709799509 'sigy': 4.335493165022152 'sigx': 3.70149316867755}` Yes No 36 ` fval = 2268.84391988 {'A': 73732.5548872796 'bg': 572.4338932045782 'angle': -0.8281937978807719 'muy': -5.804931067472619 'mux': 40.43279856055955 'sigy': 11.937550638969329 'sigx': 0.3934422678456985}` No `fval = 2268.84391988 {'A': 73732.5548872796 'bg': 572.4338932045782 'angle': -0.8281937978807719 'muy': -5.804931067472619 'mux': 40.43279856055955 'sigy': 11.937550638969329 'sigx': 0.3934422678456985}` No Yes 37 `N/A` - `N/A` - Yes (Border) 38 `fval = 2855.2457798 {'A': 64722.48757131264 'bg': 559.9183382459357 'angle': 89.99999318802617 'muy': 6.364964587661999 'mux': -38.19419424409231 'sigy': 51.02161332523268 'sigx': 16.18952838497707}` No `fval = 2855.2457798 {'A': 64722.48757131264 'bg': 559.9183382459357 'angle': 89.99999318802617 'muy': 6.364964587661999 'mux': -38.19419424409231 'sigy': 51.02161332523268 'sigx': 16.18952838497707}` No Yes 39 `fval = 2111.00646274 {'A': 27425.95155639346 'bg': 583.0661842458708 'angle': -45.510305630286354 'muy': 21.575805763536057 'mux': 16.682813182397368 'sigy': 5.7867174414620655 'sigx': 4.295691753412272}` Yes `fval = 2111.00646729 {'A': 27425.75222830647 'bg': 583.0664040488831 'angle': 44.48453318210619 'muy': 21.575940206957434 'mux': 16.682858625977364 'sigy': 4.295595324623022 'sigx': 5.786724499724386}` Yes Maybe* 40 `False` - `False` - Yes 41 `fval = 2337.77365552 {'A': 94957.43740917309 'bg': 580.4064559928429 'angle': 79.03580381596512 'muy': 20.830148289444985 'mux': 20.046954361231574 'sigy': 4.053973256330512 'sigx': 3.550648047066906}` Yes `fval = 2337.7736565 {'A': 94957.44988412253 'bg': 580.4064023360836 'angle': 79.03557723996062 'muy': 20.8301560574187 'mux': 20.046971592204713 'sigy': 4.053969309512219 'sigx': 3.550660328478897}` Yes No 42 `fval = 2504.57152591 {'A': 10272.737434459603 'bg': 567.0091697550785 'angle': -67.25500054246871 'muy': 17.798070870164405 'mux': 23.622121254283364 'sigy': 4.088761143456511 'sigx': 3.54771194038689}` Yes `fval = 2504.57152426 {'A': 10272.855236881902 'bg': 567.0095673345189 'angle': -67.2630978749066 'muy': 17.798199961327295 'mux': 23.622115176640907 'sigy': 4.08873792780044 'sigx': 3.5477995711581687}` Yes Maybe* 43 `N/A` - `N/A` - Double 44 `N/A` - `N/A` - Double 45 `fval = 2294.02926966 {'A': 116526.34285249427 'bg': 590.433936411766 'angle': 73.17301385436005 'muy': 20.726632673767654 'mux': 19.839375327836393 'sigy': 4.235515388108135 'sigx': 3.564823560678305}` Yes `fval = 2294.02926952 {'A': 116526.57605195667 'bg': 590.4335825446319 'angle': 73.17227242719983 'muy': 20.726628457743693 'mux': 19.839379402120407 'sigy': 4.235537300404976 'sigx': 3.564815882379967}` Yes No 46 `False` - `False` - Yes 47 `False` - `False` - Yes 48 `fval = 19966.8353575 {'A': 679286.8732433093 'bg': 629.2652094419865 'angle': -89.99999999999015 'muy': 20.40807822018856 'mux': 20.31592291902525 'sigy': 4.362162577010625 'sigx': 4.111471992859492}` Yes `fval = 19966.8353562 {'A': 679285.9768514354 'bg': 629.2657871476657 'angle': -89.99999999994024 'muy': 20.408091714859992 'mux': 20.315918923920602 'sigy': 4.362177872610793 'sigx': 4.11147450652823}` Yes No 49 `fval = 2157.56344307 {'A': -447029.1600018435 'bg': 592.0877001234893 'angle': 80.5096407877173 'muy': -2.5777628040728784 'mux': -127.61348825960064 'sigy': 185.56545105774 'sigx': 26.859019217144457}` No `fval = 2149.97592331 {'A': 63370.960399583266 'bg': 582.1255944524843 'angle': -58.54106234206651 'muy': -33.206071496625604 'mux': 91.63672897658864 'sigy': 28.673781285362946 'sigx': 1.6162604192102121}` No Yes 50 `fval = 3414.52400202 {'A': 149567.4591222262 'bg': 582.6092707551805 'angle': 3.3394501897008695 'muy': 13.117873260436346 'mux': -19.526151197506664 'sigy': 3.7209561701434013 'sigx': 9.446896017054396}` No `fval = 3414.52400202 {'A': 149567.4591222262 'bg': 582.6092707551805 'angle': 3.3394501897008695 'muy': 13.117873260436346 'mux': -19.526151197506664 'sigy': 3.7209561701434013 'sigx': 9.446896017054396}` No Yes 51 ` fval = 6955.52891449 {'A': 417098.16608775116 'bg': 600.4752917208237 'angle': -4.16171120703693 'muy': 20.3910682809323 'mux': 20.47557624908281 'sigy': 3.5350525336010077 'sigx': 3.982835263434713}` Yes `fval = 6955.52891399 {'A': 417098.3873601022 'bg': 600.4752058811624 'angle': -4.162013825825085 'muy': 20.391069580378378 'mux': 20.475578879097156 'sigy': 3.535054931780533 'sigx': 3.98283412267473}` Yes No 52 `fval = 1449.24038795 {'A': 309.51503314810816 'bg': 590.3265201996733 'angle': -43.3268187537511 'muy': 19.51089884461597 'mux': 19.48017602282 'sigy': 0.002991666963970564 'sigx': 0.4471068237148437}` No `fval = 10748.8701963 {'A': 619443.5353143102 'bg': 590.6236867305064 'angle': -9.410132797414064 'muy': 21.125580115423677 'mux': 42.185855541492025 'sigy': 4.303226138704186 'sigx': 0.35920318930680056}` No Yes 53 `fval = 4272.0939862 {'A': 277938.8098818659 'bg': 595.9706635365912 'angle': -10.737680354039597 'muy': 20.393664626418406 'mux': 20.456086285479902 'sigy': 3.4541235248671773 'sigx': 3.924186953514024}` Yes `fval = 4272.09398639 {'A': 277938.7511786992 'bg': 595.9704370194719 'angle': -10.737735838171048 'muy': 20.393663603633044 'mux': 20.45609123315205 'sigy': 3.4541235038618705 'sigx': 3.9241865484882306}` Yes No 54 `False` - `False` - Yes 55 `N/A` - `N/A` - Maybe* 56 `N/A` - `N/A` - Maybe* 57 `False` - `False` - Yes 58 `False` - `False` - Yes 59 `fval = 4418.04473129 {'A': 164681.39447219475 'bg': 596.9978973726122 'angle': -17.139428958270983 'muy': 20.95876182698452 'mux': 19.85543708988008 'sigy': 3.362686643959178 'sigx': 3.8397169861984675}` Yes `fval = 4418.04473092 {'A': 164681.70264208983 'bg': 596.9983092338543 'angle': -17.139283027085767 'muy': 20.95874990297424 'mux': 19.85543354503498 'sigy': 3.362700863885353 'sigx': 3.8397229801429376}` Yes No 60 `fval = 4610.60039396 {'A': 319708.85994253994 'bg': 613.5327931782713 'angle': -43.899247300098914 'muy': 20.56405919731121 'mux': 20.2286201106887 'sigy': 3.863725657398556 'sigx': 4.590393234638932}` Yes `fval = 4610.60039242 {'A': 319709.0369339089 'bg': 613.5326856086838 'angle': -43.8986229767998 'muy': 20.564062096726804 'mux': 20.22862210475931 'sigy': 3.8637277441432594 'sigx': 4.590389932093664}` Yes No 61 `fval = 2752.10117909 {'A': 182631.2835645885 'bg': 591.2215407590191 'angle': 70.25893214037794 'muy': 20.300980003176942 'mux': 20.249409688492452 'sigy': 3.7858562204114055 'sigx': 3.343284269671578}` Yes `fval = 2752.10117912 {'A': 182631.32074782145 'bg': 591.221275708658 'angle': 70.258827267302 'muy': 20.300980749551663 'mux': 20.249413195195743 'sigy': 3.785856605699093 'sigx': 3.3432813895505653}` Yes No 62 `N/A` - `N/A` - Maybe* 63 `N/A` - `N/A` - Maybe* 64 `fval = 6106.741426 {'A': 368886.4848467257 'bg': 631.222423488026 'angle': -47.332371930793755 'muy': 20.674651524614607 'mux': 20.378782564706572 'sigy': 3.8978757331995237 'sigx': 4.628509655256464}` Yes `fval = 6106.74142659 {'A': 368886.7104259557 'bg': 631.2220920896762 'angle': -47.33223696099 'muy': 20.674649657979227 'mux': 20.378781445996854 'sigy': 3.8978820585150316 'sigx': 4.628511308329306}` Yes No 65 `fval = 2840.3448445 {'A': 178891.51949023912 'bg': 592.3312884104407 'angle': 69.62310155761756 'muy': 20.066563304120553 'mux': 20.44847811272047 'sigy': 3.718498789711013 'sigx': 3.3066960525350986}` Yes ` fval = 2840.34484316 {'A': 178891.52944500942 'bg': 592.3309767525319 'angle': 69.62197711498797 'muy': 20.066558132030742 'mux': 20.448474294446438 'sigy': 3.7184972776412057 'sigx': 3.3066906793071618} ` Yes No 66 `fval = 2720.21432915 {'A': 62735.0146568316 'bg': 586.6536904849952 'angle': 69.07744733692374 'muy': 19.90920939981935 'mux': 20.42074852699166 'sigy': 3.5139394282350884 'sigx': 3.181286853701267}` Yes `fval = 2720.21432915 {'A': 62735.04727157366 'bg': 586.6537272044337 'angle': 69.07737862566472 'muy': 19.909209290961513 'mux': 20.4207456324564 'sigy': 3.5139402000949835 'sigx': 3.1812892894597713}` Yes No 67 `fval = 1425.16396008 {'A': 284.46911576243605 'bg': 585.5122090328953 'angle': -43.084958274948534 'muy': 19.51559938866986 'mux': 19.48514938830806 'sigy': 0.008321423268200276 'sigx': 1.2265775936045302}` No `False` - Yes 68 `fval = 2819.87433342 {'A': 71930.52867544629 'bg': 569.7278298993738 'angle': 67.11438535628906 'muy': 53.464930984669095 'mux': 20.241651513975683 'sigy': 2.688899600194102 'sigx': 8.150937814609495}` No `fval = 2819.87433342 {'A': 71930.52867544629 'bg': 569.7278298993738 'angle': 67.11438535628906 'muy': 53.464930984669095 'mux': 20.241651513975683 'sigy': 2.688899600194102 'sigx': 8.150937814609495}` No Yes 69 `fval = 2836.12587412 {'A': 22466.299254350273 'bg': 580.2194181831599 'angle': -46.246931857035875 'muy': 36.47658732160413 'mux': 28.66750901349609 'sigy': 3.2569428964990705 'sigx': 4.009772406205779}` Yes `fval = 2836.12587412 {'A': 22466.299254350273 'bg': 580.2194181831599 'angle': -46.246931857035875 'muy': 36.47658732160413 'mux': 28.66750901349609 'sigy': 3.2569428964990705 'sigx': 4.009772406205779}` Yes Maybe* 70 `fval = 44468.3064189 {'A': 1734183.5298197176 'bg': 674.403344625776 'angle': -2.8281925002770976 'muy': 20.515877704627304 'mux': 20.272017303721714 'sigy': 3.4083138464589795 'sigx': 3.690128478218381}` Yes `fval = 44468.3064189 {'A': 1734183.462712506 'bg': 674.4030654466023 'angle': -2.828108145916488 'muy': 20.515876983732056 'mux': 20.272016656907443 'sigy': 3.4083134988883392 'sigx': 3.69012771112927}` Yes No 71 `fval = 3179.47849754 {'A': 114277.94811849804 'bg': 571.1639721160285 'angle': 29.765867143661524 'muy': -1.5572919095303352 'mux': 39.113353708695975 'sigy': 5.385604774893013 'sigx': -0.2554914264279753}` No `fval = 3179.47849754 {'A': 114277.94811849804 'bg': 571.1639721160285 'angle': 29.765867143661524 'muy': -1.5572919095303352 'mux': 39.113353708695975 'sigy': 5.385604774893013 'sigx': -0.2554914264279753}` No Yes 72 `N/A` - `N/A` - Maybe* 73 `N/A` - `N/A` - Maybe* 74 `fval = 1732.10676118 {'A': 93537.18505703179 'bg': 586.6083313562021 'angle': 54.81841411571105 'muy': 20.547959159788054 'mux': 20.310717549063604 'sigy': 3.861048381504733 'sigx': 3.33456207604897}` Yes `fval = 1732.1067618 {'A': 93537.0877499103 'bg': 586.6085107374079 'angle': 54.8187339732178 'muy': 20.547957646384514 'mux': 20.31072545483871 'sigy': 3.861047060659338 'sigx': 3.33456902607316}` Yes No 75 ` fval = 3108.32833166 {'A': -2421536.2915422926 'bg': 576.1104140928438 'angle': -31.67448182109741 'muy': 12.927188258162724 'mux': 25.768624643445065 'sigy': 2.9345194281568263 'sigx': 26311.212292698896}` No `False` - Yes 76 `False` - `False` - Yes 77 `N/A` - `N/A` - Yes (Border) 78 `N/A` - `N/A` - Yes (Border) 79 `N/A` - `N/A` - Yes (Border) 80 `N/A` - `N/A` - Border 81 `N/A` - `N/A` - Border Totals 49/66 (Success/PyMinuit Totals) 32/32 (Physical/Stars) 45/66 (Success/iMinuit Totals) 32/32 (Physical/Stars) 32/66 (Starts/Minuit Totals)

Obs. Hot Pixels section was filled by inspection
Obs2. Fisical Results are those where the star center (mux muy) lay inside the frame [0,41]**2 and sigmas lay in the range [1,7] (optimum focus should produce sigma close to 2)
* Maybe indicates stars with a hotpixel or faintstars with a hotpixel close to the object.

 Feature Seal Minuit iMinuit Function Minimum Structure isValidfvaledmnfcn All MnContours MnContoursoperatorcontour Equivalent mncontourcontour MnEigen MnEigenoperator MnHesse MnHesseoperator equivalent hesse MnMachinePrecision MnMachinePrecisionsetPrecision MnMigrad MnMigradoperatorVariableMetricMinimizerminimize equivalent migrad MnMinimize MnMinimize No Simplex MnMinos MnMinosoperatorminos equivalent minos MnScan scanScanMinimizer similar mnprofile _no ScanMinimizer _ MnSimplex MnSimplexoperatorSimplexMinimizerminimize No Simplex MnStrategy MnStrategyset___Strategy strategyset_strategy MnUserCovariance MnUserCovarianceoperator _no UserCovariance _ MnUserParameters addsetValuesetErrorfixreleasesetLimitssetUpperLimitsetLowerLimitremoveLimitsvalueerrorindexname equivalent valueserrorsis_fixedhas_limitsnumbername MnUserParameterState MnUserParameterStateparameterscovarianceglobalCC equivalent parameterscovariancegcc MnPrint operator not needed

APIs:

Performance (measured with Python %timeit() magic function):

• PyMinuit: best of 3: 13.9 s per loop

• iMinuit: best of 3: 11 s per loop
Conclusions:
• iMinuit is easier to install than PyMinuit
• iMinuit is faster than PyMinuit
• iMinuit have more features than minuit (e.g. export to LaTeX and fake functions)
• Both detected and successfully minimized a 2D Gaussian on all the stars with same parameters
• PyMinuit "accidentely" fitted more Hot Pixels than iMinuit
• PyMinuit includes Simplex and Scan methods, which are not available on iMinuit
• PyMinuit is more stable - annoing bug in latest version cause segfault it limits, steps, ... are not set
Keep PyMinuit for now.

Back to: LogBookAstronomy

LogBookForm
Subject Minuit and iMinuit analysis
Status choice-no

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r5 - 09 Sep 2013 - PedroPaiva

Copyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback