Pythonic mix-ins for ROOT classes.
This package is typically used as a dependency for uproot, to define methods on the classes that are automatically generated from ROOT files. This includes histograms (TH*) and physics objects like TLorentzVectors. The reason it's a separate library is so that we can add physics-specific functionality on a shorter timescale than we can update uproot itself, which is purely an I/O package.
Occasionally, this library is used without uproot, as a way to make arrays of TLorentzVectors.
Install uproot-methods like any other Python package:
pip install uproot-methods
or similar (use sudo
, --user
, virtualenv
, or pip-in-conda if you wish).
- Python (2.7+, 3.4+)
The following are installed automatically when you install uproot with pip:
- Numpy (1.13.1+)
- awkward-array (0.7.0+) to manipulate data from non-flat TTrees, such as jagged arrays (part of Scikit-HEP)
TBD.