Re: Question about TF1

From: Datao Gong <dtgong_at_physics.umn.edu>
Date: Mon, 2 Apr 2007 10:39:36 -0500 (CDT)


Thanks Rene! It is what i want.:)

Datao

On Mon, 2 Apr 2007, Rene Brun wrote:

> 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:39:42 CEST

This archive was generated by hypermail 2.2.0 : Mon Apr 02 2007 - 23:50:01 CEST