The Journal of Open Source SoftwareOpen accessComputer science

pylhe: A Lightweight Python interface to Les Houches Event files

Alexander Puck Neuwirth, Matthew Feickert, Lukas Heinrich, Eduardo Rodrigues

Istituto Nazionale di Fisica Nucleare, Sezione di Milano Bicocca · University of Wisconsin–Madison

Key points

From the paper's conclusion
  • Les Houches Event files are a standard format for Monte Carlo event generators in high-energy physics. pylhe is a lightweight pure-Python library for reading and writing LHE event data.

Abstract

pylhe is a lightweight Python library that provides a simple and efficient interface for reading and writing Les Houches Event (LHE) files, a standard format used by Monte Carlo event generators in high-energy physics (Alwall & others, 2007).The library enables memory-efficient streaming of events from XML format (.lhe, compressed .lhe.gz) and HDF5 format (.h5, .hdf5,lheh5) files through a pythonic iterator interface, allowing researchers to process arbitrarily large event files without loading all events into memory simultaneously.It is a standalone, event-generator-independent package, installable from PyPI and Conda.pylhe, part of the Scikit-HEP community project (Rodrigues & others, 2020; The Scikit-HEP Project, 2016), is well maintained and integrated within the broader scientific Python ecosystem.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers