Only static functions are accepted by the fitting functions.
In the CVS version an extension of TH1::Fit accepts fits with member
functions of classes
deriving from TF1 and redefining the function TF1::EvalPar. See an
example of use
in the attachment.
Rene Brun
Datao Gong wrote:
> hi,Rooters,
> I have a question about using TF1. I have to define a user-defined
> function to fit histogram. If i define this function as a class member
> function, it has to be a static member function. This requirement
> bring me some troubles to pass member data to configure this function.
> If i do not want to define the member data to be static type,
> is there any easy way to pass by this problem?
>
> Thanks a lot,
>
> Datao
>
This archive was generated by hypermail 2.2.0 : Wed Apr 04 2007 - 05:50:01 CEST