Re: Loading a user-defined function in ROOT

From: Tomasz Bold <bold_at_fatcat.ftj.agh.edu.pl>
Date: Wed, 19 Jan 2005 18:30:27 +0100

>
>> root [4] gROOT->LoadMacro("simplef.C")
>> (Int_t)0
>> root [5] simplef()
>> (double)1.00000000000000000e+01
>>
>> The reult is different and correct. So I guess you should simple
>> recall LoadMacro
>
> This is what I have done.
>
>> Probablu the method ls() called on list yields in crash. Indded
>> having look ath the TList class methods
>> http://root.cern.ch/root/html/TList.html and this class pedecessors
>> there is no method ls().
>
>
> GetListOfGlobalFunctions return a TSeqCollection that inherits ls()
> from TCollection.
> Maybe the problem is somewhere else, program crashes often.

True. I have overlooked. Try maybe Print() method. Anyway why do you want to call it?

calling '.function' shows the loaded functions also. Received on Wed Jan 19 2005 - 18:32:28 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET