# What should I do if Fit reaches CALL LIMIT and behaves strangely for some dataset I feed?

**URL:** <https://root-forum.cern.ch/t/what-should-i-do-if-fit-reaches-call-limit-and-behaves-strangely-for-some-dataset-i-feed/35177>\
**Category:** ROOT\
**Created:** [July 13, 2019, 5:02pm UTC](https://root-forum.cern.ch/t/what-should-i-do-if-fit-reaches-call-limit-and-behaves-strangely-for-some-dataset-i-feed/35177 "2019-07-13T17:02:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shonlin](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@Shonlin](https://root-forum.cern.ch/u/Shonlin)\
**Post date:** [July 13, 2019, 5:02pm UTC](https://root-forum.cern.ch/t/what-should-i-do-if-fit-reaches-call-limit-and-behaves-strangely-for-some-dataset-i-feed/35177/1 "2019-07-13T17:02:13Z")

</div>

* * *

\_ROOT Version: root\_v5.34.36

* * *

Hi:  
I’m fitting pion yield w.r.t transverse momentum, but the covariance matrix that I got is identically 0 matrix (7-by-7, for 7 parameters). Then I added the fit option “V”, verbose mode. It tells me call reaches limit:

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/a/1/a1ff16b1223fd43677be0a235c25ec6c81079872.png)  
And right below that, we can see the EXTERNAL ERROR MATRIX is the covariance matrix I wanted, but when I print it again, it still gives me 0-matrix:  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/1/d/1dc00b191a5eb07e4ecd6f535b2408c3142701aa.png)

So under such circumstance, would it be promising by just increase the limit of the call (how?)? By the way, some other datasets works just fine.

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [July 15, 2019, 10:07am UTC](https://root-forum.cern.ch/t/what-should-i-do-if-fit-reaches-call-limit-and-behaves-strangely-for-some-dataset-i-feed/35177/2 "2019-07-15T10:07:34Z")

</div>

Hi @Shonlin,

I answered in your previous post:

> [@Why do I keep getting a zero matrix from TFitResult for some dataset while not the others?](https://root-forum.cern.ch/t/why-do-i-keep-getting-a-zero-matrix-from-tfitresult-for-some-dataset-while-not-the-others/35107/5):
>
> Dear StephanH @StephanH : Thanks. Good news: after using the verbose mode “V”, it returns to me some EXTERNAL ERROR MATRIX, which seems to be the covariance matrix that I always want (see the terminal report below). But still the MIGRAD thing didn’t converge, I’m not sure how that happened when everything “seems” to be fine (the fit result seems to agree with my data; and it actually get some reasonable covariance matrix, and just doesn’t want to share it with me, when I print it.). Now I’m…

Let me know if this works.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 29, 2019, 10:14am UTC](https://root-forum.cern.ch/t/what-should-i-do-if-fit-reaches-call-limit-and-behaves-strangely-for-some-dataset-i-feed/35177/3 "2019-07-29T10:14:58Z")

</div>

Closed on July 29, 2019, 10:14am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
