Hi,
sorry for my late replay, You can have the same behavior now by passing a dummy functor object, i.e. by doing:
tfbuf->SetFunction( ROOT::Math::ParamFunctor() );
You would need to compile the macro, because that instantiation of TF1::SetFunction is not yet in the dictionary.
Best Regards
Lorenzo
On Aug 28, 2008, at 3:32 PM, Pierre-Luc Drouin wrote:
> Hi,
>
> to force a TF1 object to evaluate using an array of points instead
> of calling a C function, I used to do the following with the old TF1
> interface:
>
> //Store the array of (x,y) points in the internal member variables
> of the TF1 object
> tfbuf->Save(xmin,xmax,0,0,0,0);
> //Deallocate the function pointer
> tfbuf->SetFunction(NULL);
>
> Is there a way to do the same thing with the new interface?
>
> Thank you!
> Pierre-Luc Drouin
>
Received on Fri Sep 12 2008 - 12:09:04 CEST
This archive was generated by hypermail 2.2.0 : Fri Sep 12 2008 - 23:50:01 CEST