Dear Rooters,
I am trying to create a program that has a class which allows me to update Histograms. I would like to access this class from the command line via a global variable like gPad.
Please see the attachment for an example. Here I create an instance of the class which I assign to a global variable. But when I want to access this global variable I get the following:
[code] *******************************************
-
*
-
W E L C O M E to R O O T *
-
*
- Version 5.28/00 14 December 2010 *
-
*
- You are welcome to visit our Web site *
-
http://root.cern.ch *
-
*
ROOT 5.28/00 (trunk@37585, Dec 14 2010, 15:20:27 on linuxx8664gcc)
CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] gHistUpdater
Error: Symbol gHistUpdater is not defined in current scope (tmpfile):1:
*** Interpreter error recovered ***
[/code]
what do I need to do to be able to access the global variable?
Thank you,
Lutz
exampleForRoot.tar.gz (15.3 KB)