# Fit status

**URL:** <https://root-forum.cern.ch/t/fit-status/49838>\
**Category:** Newbie\
**Created:** [May 4, 2022, 7:57am UTC](https://root-forum.cern.ch/t/fit-status/49838 "2022-05-04T07:57:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzriu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mzriu](https://root-forum.cern.ch/u/mzriu)\
**Post date:** [May 4, 2022, 7:57am UTC](https://root-forum.cern.ch/t/fit-status/49838/1 "2022-05-04T07:57:09Z")

</div>

Hi,

I am looking for the right documentation about fit result but I can’t find it. I am using this code to fit some data :

```auto
TFitResultPtr r;
r = gr->Fit("fun_fit", "MS", "e1", 110, 1450);

```

This is basically using the Minuit algorithm with the MIGRAD technique. In my terminal it sometimes show above the fitted parameters result “STATUS = NOT POSDEF” or “STATUS=OK”. I understand both even though I do not find any references in ROOT documentation. What I would like to do is get the covariance matrix when the status is =OK which only happens when I force the fit multiple times using the fit panel and so it seems I can’t access this fit result informations. Can you help me on that ?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 4, 2022, 8:04am UTC](https://root-forum.cern.ch/t/fit-status/49838/2 "2022-05-04T08:04:50Z")

</div>

Maybe @moneta knows
