Re: Question about TF1

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 02 Apr 2007 17:34:24 +0200


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
>

Received on Mon Apr 02 2007 - 17:34:36 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 04 2007 - 05:50:01 CEST