Tomasz, I forwarded your problem to Masa and he answered the following: > > I was looking at this problem. It is a problem of pointer to function. > Let me think how to solve it. I am thinking about re-engineering > pointer to function mechanism. I need to decide whether to use > new scheme in legacy code for fixing this. > > Thank you > Masa Goto > Rene Brun On Mon, 27 Sep 2004, Tomasz Bold wrote: > HI, > I do not know whether my mail was filtered as spam or whatever > but I submit the example of functions ptrs again. > > Regards, > Tomasz Bold > > > -------------------------------------- > Tomasz Bold > mail me: > bold@ftj.agh.edu.pl, > Tomasz.Bold@cern.ch > Tomasz.Bold@desy.de > or call: > +48 12 617 4729 (AGH) > +48 12 662 8023 (IFJ) > ------------------------------------- > > On Fri, 24 Sep 2004, Rene Brun wrote: > > > Tomasz, > > > > Could you send the shortest possible running script reproducing this problem? > > > > Rene brun > > > > Tomasz Bold wrote: > > > > > > Dear ROOTers, > > > I want to perform number of fits. The functions which are supposed > > > to be fitted are plain c coded. > > > I wanted to put pointers to this functions in the table and the > > > loop over this table and do following: > > > 1. create TF1 with function from table (double) (*)(double *, double *) > > > 2. fit TF1 > > > 3. go to 1 > > > > > > Unfotunelly I can't deal with table of pointers to plain C functions. > > > I have functions defined in the *.C file which I load with ACLIC. > > > > > > In the code there is table to functions > > > ... > > > functions defined > > > ... > > > typedef Double_t (*ff_t) ( Double_t *x, Double_t *par); > > > ff_t pileupscanfun[] = { pileupscanfun0, pileupscanfun1, pileupscanfun2} > > > > > > But when I type following then I can't understand the result. > > > > > > root [0] .L pileupscanfunAll.C++ > > > Info in <TUnixSystem::ACLiC>: creating shared library > > > /home/bold/dokt/thesis/root/DESY-07-2004/MC/nowe/ep27.5/./pileupscanfunAll_C.so > > > root [1] pileupscanfun0 > > > (const void*)0x4175a728 > > > root [2] pileupscanfun[0] > > > Error: Symbol pileupscanfun[0] is not defined in current scope > > > FILE:(tmpfile) LINE:1 > > > *** Interpreter error recovered *** > > > > > > Any idea how to deal with the problem? Or do fits in loop in other way? > > > > > > Regards, > > > Tomaks Bold > > > > > > -------------------------------------- > > > Tomasz Bold > > > mail me: > > > bold@ftj.agh.edu.pl, > > > Tomasz.Bold@cern.ch > > > Tomasz.Bold@desy.de > > > or call: > > > +48 12 617 4729 (AGH) > > > +48 12 662 8023 (IFJ) > > > ------------------------------------- > >
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET