Skip to content
Snippets Groups Projects
README.md 4.03 KiB

What is this tool?

Let's all be frank, root sucks and the root file format is horrible. It's among humanities worst pieces of software. With this small tool I hope to fix the damage that was done, at least a little, by converting root files into native Python formats.

It's using Numpy and a library called Uproot to read and process these damn root files. So far it is specialist for one task and I will have to work on it to make it actually viable for more use cases. That task is to extract PXD data from Belle 2 data files.

This tool is still in early development, which means that the source code is horrible and that not all features work properly or aren't even fully implemented. Right now only PXD is supported by this tool. In the future I plan to include more detectors.

How to use this?

This is a single class, that needs to be instantiated, it doesn't take any arguments. Just import it like this:

from rootable import Rootable

Then you can create an instance:

loadFromRoot = Rootable()

and load the root file and all the data: