Re: Re: Using Minuit(2) with objects and member methods

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Thu, 11 Feb 2010 16:13:50 +0100


Hi,

  you can use Minuit2 directly, and an example is provided in the math/minuit2/test/MnSim directory, see fro example DemoGaussSim.cxx http://root.cern.ch/viewvc/trunk/math/minuit2/test/MnSim/DemoGaussSim.cxx?view=markup

or, recommended, is to use the ROOT::Math::Minimizer interface. Example of minimization using the interface are provided in

 http://root.cern.ch/drupal/content/numerical-minimization#multidim_minim

If your function is provided as a member function you can either re-implement the right interface or wrap it using the ROOT::Math::Functor class . See http://root.cern.ch/drupal/content/how-implement-mathematical-function-inside-framework

 Best Regards

  Lorenzo

On Feb 11, 2010, at 1:48 PM, Robert Riemann wrote:

> Is there really nobody, who have worked with TMinuit2 already?
> 
> 2010/2/4 Robert Riemann <robert.riemann_at_desy.de>:

>> Hi Rooters,
>>
>> I would like to integrate minuit with my object.
>>
>> When creating a TMinuit I get an error: no matching function for call
>> to `TMinuit::SetFCN(<unresolved overloaded function type>)'.
>>
>> I read that there is a Minuit2 which allows the usage in objects, but
>> I cannot find an example. Can someone send me a short piece of code
>> with Minuit2?
>>
>>
>> Best regards,
>> Robert
>>

> Received on Thu Feb 11 2010 - 16:13:54 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 11 2010 - 17:50:01 CET