PyROOT is a Python programming language extension module that allows the user to interact with any ROOT class from the Python interpreter.
The rootpy
and root_numpy
projects build on top of PyROOT
to make working with ROOT from Python more user-friendly and faster, they come with their own webpage, which contains links to tutorials and reference documentation.
PyROOT
does come with a manual and tutorial example scripts at tutorials/pyroot/*.py
(see online here).
Here we aim to provide additional PyROOT
tutorials and documentation that are supposed to
- make it easier to get started with
PyROOT
(check out the introduction IPython notebook) - learn some tricks that are important to know when using
PyROOT
(like what is fast and what isn't) - cover more ROOT functionality (e.g. RooStats, RooFit, TMVA) than the official
PyROOT
tutorials.
Any contribution is very welcome (via a pull request for the pyroot-tutorials repo on github), specifically we are looking for more
- Python scripts or IPython notebooks that showcase / explain some aspect of
ROOT
/PyROOT
in thetutorials
folder. - Tips and tricks on working with
PyROOT
(e.g. how ROOT library loading in the background works, tab completion in IPython, C++ to Python translation recipes, ...) in thedocs
folder, although in most cases an IPython notebook would probably work better and go in thetutorials
folder. - C++ to Python translations of official ROOT tutorials (html, code) (as of January 2013 there's 565
.C
files there and only 39.py
files) in theofficial
folder. - Links to other good
ROOT
/PyROOT
resources indocs/Resources.rst