Re: Minuit in ROOT

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Fri, 29 May 2009 10:02:12 +0200


Hi Anil,

  The example code refers to a version using an old API (I need to update it). You need to replace

> #include "Minuit/FunctionMinimum.h"
> #include "Minuit/MnMigrad.h"

with

#include "Minuit2/FunctionMinimum.h"
#include "Minuit2/MnMigrad.h"

add the line
using namespace ROOT::Minuit2;

and use capital names for member functions.

You find also the updated examples in the directory

$ROOTSYS?math/minuit2/test/MnSim or

$ROOTSYS?math/minuit2/test/MnTutorial

and for example, the one referenced in the manual is

http://root.cern.ch/viewvc/trunk/math/minuit2/test/MnSim/DemoGaussSim.cxx?view=markup

  Best Regards

  Lorenzo

On May 29, 2009, at 9:41 AM, Anil Singh wrote:

>
> Hi All,
> I am trying to use Minuit from ROOT. Can somebody tell me
> how to get following code run in root (It comes from Miuit manual).
>
> #include "Minuit/FunctionMinimum.h"
> #include "Minuit/MnMigrad.h"
>
> ROOT complains about not being able to find these files.
> Any help is appreciated.
> Anil
>
Received on Fri May 29 2009 - 10:02:21 CEST

This archive was generated by hypermail 2.2.0 : Fri May 29 2009 - 17:50:02 CEST