Re: how to create a fit inside my own class?

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Tue, 17 May 2011 08:21:26 +0000


Hi Steve,

If you want to use a member function of a class for defining your objective function (i.e. the chi2 function), you can do it by using the ROOT::Math::Minimizer and ROOT::Math::Functor class. If you want to use the interpreter you need to call a special constructor of the ROOT::Math::Functor class. I attach below a modified version of the tutorial, NumericalMinimization.C, which works for a class member function

 Best Regards

 Lorenzo

Received on Tue May 17 2011 - 10:21:34 CEST

This archive was generated by hypermail 2.2.0 : Tue May 17 2011 - 17:50:01 CEST