Hi,
I just seeked for that one and unfortunatelly it seems not possible.
A search for 'TF1 member class' gave me some useful informations, see:
http://root.cern.ch/root/Search.phtml.
There are some workaround suggestions, but all of this is quite ugly ;)
I just finished by having a simple C function calling my class member
methdo through a global variable (not the nicest...).
I also would have enjoy seing member calls working...
Yannick
On Tue, 8 May 2001, Maksim A. Nikulin wrote:
> Hi,
>
> Is it possible to create TF1 with a class method?
> Something like
>
> ClassTest c;
> TF1 *f = new TF1("Test", c.function, 0, 1, 0);
>
> where
> Double_t ClassTest::function(Double_t *x, Double_t *p)
> {
> // ...
> }
>
> M.A.Nikulin
>
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:44 MET