[ROOT] Python Interface to root, global variables

From: Rüdiger Berlich (ruediger@ep1.ruhr-uni-bochum.de)
Date: Thu Mar 27 2003 - 13:50:28 MET


Hi all,

you might remember that I had a problem to embed multiple instances of root
into a multithreaded application due to the use of global variables (see
http://root.cern.ch/root/roottalk/roottalk03/1003.html). I have now created
a workaround by embedding Perl into my application, (embedded) Perl
scripts have access to some of the data of my applications and can return
a value to it. The idea is to call either PAW or root from a wrapper script,
which - given the advanced Regexp-features of Perl - also helps with automatic
generation of kumac or root scripts. In any case I believe this path to be
more flexible than just calling root or PAW in batch mode via the system() 
call from C/C++.

Still, being able to embed root directly into my application would be the 
preferred option. I've learned from 
http://root.cern.ch/root/roottalk/roottalk03/0331.html that there exists a 
Python interface to root. Before I start to embed Python into my application:
does anybody know whether this Python interface would solve my problem
with global variables in root and Posix threads ?

Thanks in advance,
Ruediger Berlich



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET