# RooFit MINUIT2

**URL:** <https://root-forum.cern.ch/t/roofit-minuit2/55457>\
**Category:** Newbie\
**Created:** [June 27, 2023, 7:12pm UTC](https://root-forum.cern.ch/t/roofit-minuit2/55457 "2023-06-27T19:12:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukroz](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/57b2e6/32.png) [@lukroz](https://root-forum.cern.ch/u/lukroz)\
**Post date:** [June 27, 2023, 7:12pm UTC](https://root-forum.cern.ch/t/roofit-minuit2/55457/1 "2023-06-27T19:12:03Z")

</div>

Hello.  
I have two problems with RooFit and MINUIT2, and despite extensive searching, I haven’t been able to find solutions. I would greatly appreciate any help or guidance on these issues.

1. The RooFitResult class in RooFit has a `status()` method that returns a MINUIT status code according to the ROOT Reference Guide. I would like to understand the meaning and interpretation of this status code. Could someone provide more information about that?

2. I have encountered several flags in the output from MINUIT, as shown in the example image below:  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/d/a/daf13c4d499a592334d63fb2593e61df055b5299.png)  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/9/9/9911bc3aeb51d4f1b6726262e4dafd5d1e94d8c1.png)

I have been unable to find detailed descriptions or explanations for these flags. I would greatly appreciate it if someone could provide me with the meanings or interpretations of these flags.

Thank you in advance.

_ROOT Version:_ 6.26  
_Platform:_ ubuntu 22.04  
_Compiler:_ gcc version 11.3.0

* * *

---

<div class="post-metadata">

**Author:** ![mczurylo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mczurylo/32/33269_2.png) [@mczurylo](https://root-forum.cern.ch/u/mczurylo)\
**Post date:** [June 28, 2023, 8:48am UTC](https://root-forum.cern.ch/t/roofit-minuit2/55457/2 "2023-06-28T08:48:49Z")

</div>

Hi @lukroz,

welcome back at the forum. Maybe @Jonas could give you a hand here?

Cheers,  
Marta

---

<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:** [June 28, 2023, 9:05am UTC](https://root-forum.cern.ch/t/roofit-minuit2/55457/3 "2023-06-28T09:05:55Z")

</div>

Hi,

The meaning of these values are:

- MINIMIZE: minimization status and the meaning is explained [here](https://root.cern.ch/doc/master/classROOT_1_1Minuit2_1_1Minuit2Minimizer.html#afc8d76a86981e855014a435a60f3fb84_)
- HESSE : covariance matrix status and more information is [here](https://root.cern.ch/doc/master/classROOT_1_1Minuit2_1_1Minuit2Minimizer.html#afc8d76a86981e855014a435a60f3fb84).

You can also increase the print level in the minimization to understand better what is happening. You can do this by adding `RooFit::PrintLevel(1)` to the `fitTo` command in RooFit.

Lorenzo
