Hi Christian,
On Saturday 24 October 2009 20:46:00 Christian Holm Christensen wrote:
> On Sat, 2009-10-24 at 16:04 +0200, Frank S. Thomas wrote:
> > The header files that were included in root-plugin-minuit2/5.18.00 in the
> > directory /usr/include/root/Minuit2/ are not included in the new
> > root-plugin- math-minuit2 anymore.
> There's a good reason for that. All the packages at that are named
> `root-plugin-.*' are - well - plug-ins. That means, that it is up to
> ROOT's internal loading mechanism to load the right library. That also
> means, that you should not use the concrete interface provided by these
> packages, but instead use the virtual interface provided in the core.
>
> For Minuit2, you should do
>
> TVirtualFitter* fitter = TVirtualFitter::Fitter(0, 0);
>
> and have
>
> Root.Fitter: Minuit2
>
> in your .rootrc file.
I guess I should explain how I use Minuit2. I'm developing a C++ program with
a Fcn class that is derived from ROOT::Minuit2::FCNBase. A method of this
class computes some number that I want to minimize. In the simpliest form this
is achieved by using the class ROOT::Minuit2::MnMinimize together with my Fcn,
but I want to be able to use other minimizing strategies and to vary/fix the
parameters of my function. The classes in the ROOT::Minuit2 namespace are of
course all declared in the Minuit2 headers (that were included in the old
package). So my C++ source files only #include the required Minuit2 headers,
and nothing else from ROOT, and my program is only linked against
libMinuit2.so, and also nothing else from ROOT. I want to use Minuit2 directly
in my program and don't need another abstraction layer.
So basically I'm using Minuit2 just as a standalone library and therefore need
its header files.
> If, however, you (and others) can convince me, that you _must_ use the
> TMinuit2 class directly, then perhaps I can be persuaded to make
> root-plugin-math-minuit2 into the two packages
> libroot-math-minuit2{5.xx,-dev}.
From my current point of view I would very much like to have a libroot-math-
minuit2-dev package.
> Perhaps you want to consider joining the debian-science mailing list?
> It's for users, maintainers, and developers a-like.
I'm lurking on debian-science but currently don't have enough free time for
valuable contributions.
Thanks and cheers
Frank
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]