# Meaning of values returned by RooFitResult::status(..)?

**URL:** <https://root-forum.cern.ch/t/meaning-of-values-returned-by-roofitresult-status/16355>\
**Category:** Roofit and RooStats\
**Created:** [July 10, 2013, 7:31am UTC](https://root-forum.cern.ch/t/meaning-of-values-returned-by-roofitresult-status/16355 "2013-07-10T07:31:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![holzner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@holzner](https://root-forum.cern.ch/u/holzner)\
**Post date:** [July 10, 2013, 7:31am UTC](https://root-forum.cern.ch/t/meaning-of-values-returned-by-roofitresult-status/16355/1 "2013-07-10T07:31:41Z")

</div>

Good morning,

is the meaning of the different values returned by `RooFitResult::status(..)` documented somewhere ?

I see for example non-zero values like 3, 300, 302 and 303 but it’s not clear to me what they mean in detail.

best regards,

Andre

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 14, 2013, 4:04pm UTC](https://root-forum.cern.ch/t/meaning-of-values-returned-by-roofitresult-status/16355/2 "2013-08-14T16:04:11Z")

</div>

Hi,  
This values depends on the Minimizer used for fitting. For example if you are using Minuit2, you will have:

```
  status = 0 : OK
  status = 1 : Covariance was mad epos defined
   status = 2 : Hesse is invalid
   status = 3 : Edm is above max
   status = 4 : Reached call limit
   status = 5 : Any other failure

```

(see [root.cern.ch/root/htmldoc/ROOT\_\_ … r:Minimize](http://root.cern.ch/root/htmldoc/ROOT __Minuit2__ Minuit2Minimizer.html#ROOT __Minuit2__ Minuit2Minimizer:Minimize))

If you run also Hesse and/or Minos the status will be updated. See  
[root.cern.ch/root/htmldoc/ROOT\_\_ … izer:Hesse](http://root.cern.ch/root/htmldoc/ROOT __Minuit2__ Minuit2Minimizer.html#ROOT __Minuit2__ Minuit2Minimizer:Hesse)

[root.cern.ch/root/htmldoc/ROOT\_\_ … MinosError](http://root.cern.ch/root/htmldoc/ROOT __Minuit2__ Minuit2Minimizer.html#ROOT __Minuit2__ Minuit2Minimizer:GetMinosError)

Best Regards  
Lorenzo

---

<div class="post-metadata">

**Author:** ![holzner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@holzner](https://root-forum.cern.ch/u/holzner)\
**Post date:** [August 15, 2013, 7:35am UTC](https://root-forum.cern.ch/t/meaning-of-values-returned-by-roofitresult-status/16355/3 "2013-08-15T07:35:17Z")

</div>

Hello Lorenzo,

thanks a lot for the reply ! In fact, I’m mostly using Minuit2 for the minimzation.

So what I see from your links is that in summary the status is (for Minuit2):

```auto

```

thanks a lot,

Andre

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 15, 2013, 8:09am UTC](https://root-forum.cern.ch/t/meaning-of-values-returned-by-roofitresult-status/16355/4 "2013-08-15T08:09:53Z")

</div>

Yes, this is correct !

Best Regards

Lorenzo
