[ROOT] create and read global variables

From: Christian Doerr (cdoerr@physi.uni-heidelberg.de)
Date: Wed May 16 2001 - 12:18:33 MEST


Hello everybody,

I just started using root - and I'm also new to this mailing list -  so
maybe the solution to my problem is trivial.

I want to create a class object (class TMyList) in a
first macro  named TEvent.C  as global variable gList and then use/read
it again from a second macro:

root[1] .L TEvent.C
root[2] InitList();
root[3] .g

....
TEvent.C        294 0x868e360  TMyList gList , size=8
....

root[4]

How can I access gList again from another macro?

Thanks!

Christian Doerr


-----------------------------------------------------------------------
Christian Doerr				cdoerr@physi.uni-heidelberg.de
Physikalisches Institut 		www.christiandoerr.de
Universitaet Heidelberg
-----------------------------------------------------------------------



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:24 MEST