In the following, projects that work closely together with Scikit-HEP are described. They extend the Python ecosystem in HEP and remain, due to their size and scope, generally independent of Scikit-HEP.
zfit: Scalable Pythonic fitting
The zfit project brings together the different model fitting efforts in Python for HEP by providing a stable API and workflow. The implementation of the fitting library is based on TensorFlow, a deep learning framework built for high performance computing on modern architectures, which is mostly hidden to the user. While traditional functionalities such as loading ROOT-files or using the Minuit minimizer are integrated in zfit, the library is completely independent of the ROOT project and has no dependency on it thanks to Scikit-HEP packages.
zfit uses a class-based approach for every part in the workflow and contains convenient base classes that allow for simple customization. Moreover, zfit offers extensive model building, composition and customization capabilities.
The project consists of additional libraries extending the capabilities of the core package.
GooFit: GPU/OpenMP fitting in Python and C++.
GooFit is a powerful, fast fitting library designed to mimic the familiar syntax of ROOT’s RooFit. The code and installation instructions are available here, on GitHub, and a description of the fitting process and API is available on GitHub IO.
conda-forge ROOT: CERN’s ROOT on Conda-Forge.
CERN’s ROOT framework traditionally has been difficult to install – several hours on a single core, with many dependencies. The situation is better than it used to be, it is easier to build and available in more places, but Python was still a challenge; ROOT is linked to just one version of Python, and the one you get with pre-built ROOT can often be the wrong one. And, if you use the Conda Python distribution , which is a popular choice for Scikit-HEP users, the official ROOT team recommendation for building it on top of the Conda stack was: too hard, don’t do it. But now, the ROOT Conda-Forge package provides a fully featured ROOT binary package for macOS or Linux, Python 2.7 and 3.6–3.8, fully integrated into the Conda environment system!
The Conda-Forge ROOT project has been developed by Scikit-HEP admins and is used in the Continuous Integration (CI) system of several of our packages to ensure consistency and interoperability with ROOT. It is used or intended to be used in our ROOT-based packages, like
root_numpy. Analysts can create an environment with ROOT by the following trivial
environment.yml file, often used to create tutorials on binder:
name: uproot_and_root channels: - conda-forge dependencies: - python - jupyterlab # Interactive environment - root # Conda-Forge ROOT - uproot # Can be mixed with other Scikit-HEP packages