Datao Gong | 2 Apr 2007 17:39
Picon
Favicon

Re: [ROOT] Question about TF1

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
>> 
>
>
(Continue reading)


Gmane