Re: Loading a user-defined function in ROOT

From: Rene BRUN <rene.brun_at_cern.ch>
Date: Wed, 19 Jan 2005 18:49:20 +0100


Germano,

Could you send the shortest possible (but RUNNING) version of your script that gives a problem?

Rene Brun

Germano Percossi wrote:
> Tomasz Bold wrote:
>

>> Hi,
>> Consider an example which works for me:
>> I have function simplef() defined in simplef.C
>> double simplef ()

>
> [cut]
>
>> 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.
>
>> Good luck,
>> tb
>>

>
> Thank you
>
Received on Wed Jan 19 2005 - 18:49:55 MET

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