Re: [ROOTDEV] TMinuit - standalone ?

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Mon, 25 Sep 2006 09:37:37 +0200


Hi Christian,

  there a couple of errors in your program. In particular, the function to be passed to minuit (fcn) must be a global function and not a
member function of a class.

If you want to pass a class member function you can use Minuit2, which supports that.

Attached are the corrected programs (and Makefile) ,

Best Regards,

Lorenzo


On Sep 25, 2006, at 1:43 AM, Christian Hansen wrote:

>
> Hi Rooters,
>
> how can I use TMinuit in a standalone c++ program?
>
> minuitTest.C
> Attached is a tarball consisting of first a root-
> macro where I use TMinuit. It works.
>
> MinuitTest.C, MinuitTest.h and runMT.C
> But then I try the same simple example in a standalone
> c++ program, using a Makefile. I have tried many
> different ways but none wants to compile.
> Root version 5.10/00. gcc version 3.2.3
>
> Can somebody show me an example how TMinuit
> can be used "standalone"?
>
> Thanks alot!
> / Christian Hansen
>
> ================================================
> Dep. of Phys. Office : +1 250 721 7710
> Univ of Victoria Mobile : +1 250 588 0860
> PO Box 3055
> V8W 3P6 Victoria BC
> Canada
> ------------------------------------------------
> Home Page : http://particle.phys.uvic.ca/~hansen
> http://cern.ch/christian.hansen
>
> <minuitTest.tgz>
Received on Mon Sep 25 2006 - 09:40:30 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET