Re: Loading a user-defined function in ROOT

From: Germano Percossi <germano.percossi_at_roma2.infn.it>
Date: Wed, 19 Jan 2005 17:29:34 +0100


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

-- 
     \ | /
     (@ @)
-o00-(_)-00o------------
------------------------------------------------------------
Germano Percossi
University of Rome "Tor Vergata" and INFN Roma2
Via della Ricerca Scientifica 1
I-00133 Rome Italy
Phone     : 06 7259 4824
Room      : c0 28b
------------------------------------------------------------
Received on Wed Jan 19 2005 - 17:34:01 MET

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