9–12 May 2022
Virtual
US/Central timezone
Join us shape the future

ROOT as a Python Module

9 May 2022, 08:55
20m
One West (Virtual)

One West

Virtual

**This meeting is held virtually** Registered participants received the video conferencing link on Sunday, 8th May 2022.
Presentation Presentations by ROOT First Session

Speaker

Enric Tejedor Saavedra (CERN)

Description

ROOT can be used as a Python module thanks to PyROOT, the Python-C++ bindings provided by ROOT. With ROOT v6.22, a new PyROOT was released; it is now designed on top of the cppyy library, which provides support for modern C++.

This talk will mainly focus on the customizations or "pythonizations" for ROOT classes that have been recently implemented in the new PyROOT. This includes interoperability with NumPy for RDataFrame, the ability to just-in-time compile Python callables with Numba and use them in RDataFrame operations, and a context manager for TFile.

Furthermore, PyROOT now offers a @pythonization decorator that can be used to register pythonizations for C++ user classes, which are lazily executed only if the class is actually used from the user code.

Primary author

Enric Tejedor Saavedra (CERN)

Presentation materials