pylhe: A Lightweight Python interface to Les Houches Event files
Alexander Puck Neuwirth, Matthew Feickert, Lukas Heinrich, Eduardo Rodrigues
Abstract
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. It supports .lhe and compressed .lhe.gz files, implements the widely used LHE 3.0 features including multiple event weights and generator metadata, and also supports the recent HDF5-based LHEH5 format. By exposing events through a pythonic iterator and shared data structures, pylhe enables memory-efficient processing of large event samples without loading entire files into memory. The library also supports format conversion and integration with modern analysis workflows, including columnar analysis with Awkward Array and downstream machine-learning applications.
Create a lesson
Related papers
Cosmological stasis and the coupled dark sector of the Dark Dimension
Alexander Stewart
Fast Surrogate for the Earth Matter Effect on Solar Neutrinos
Saeed Ansarifard
A Unitary Fixed Point Away from Threshold: Momentum-Surface EFT for Strong Mixing
Lorenzo De Ros, Javier Reig Navarro
Limitations of quantum tomography in Higgs-boson decays to four leptons
Morgan Del Gratta, Fabio Maltoni, Davide Pagani et al.
Bin-to-bin correlations in the extraction of proton's transverse structure
Laurent Favart, Francesco Hautmann, Aleksandra Lelek et al.
Cosmic Birefringence and Axiogenesis
Raymond T. Co, Lawrence J. Hall, Keisuke Harigaya et al.