Re: [ROOT] CINT - function pointers

From: WLavrijsen@lbl.gov
Date: Mon Sep 06 2004 - 00:51:13 MEST


Elias,

>   func->SetArg((long)i);
>   func->SetArg((long)j);
>   func->SetArg((long)k);

Based on the TF1 header file, the above should be double, double, long.

> elathan@velka:/opt/root> ./cf
> Function:fcn cannot be compiled

It appears that the wrong overload is selected.

> Any hints?

Assuming that you're trying to get TF1 to work with ruby native functions:
getting it to work with python functions was a little hellish. The current
PyROOT implementation is by no means pretty to look at, but you would do
yourself a favour to first look at pyroot/src/Pythonize.cxx (under the TF1
behaviour block), since it does work.

Best regards,
           Wim
-- 
Wim.Lavrijsen@cern.ch   --   WLavrijsen@lbl.gov   --   www.lavrijsen.net

"Stop making excuses for your software."    --first step towards quality



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET