https://doi.org/10.1140/epjc/s10052-025-15108-7
Regular Article - Computing, Software and Data Science
Rapid event extraction and tensorial event adaption
Libraries for efficient access and generic reweighting of parton-level events and their implementation in the MadtRex module
1
CERN, Esplanade des Particules 1, 1211, Geneva, Switzerland
2
MBI (HEPHY), ÖAW, Dominikanerbastei 16, 1010, Vienna, Austria
a
This email address is being protected from spambots. You need JavaScript enabled to view it.
Received:
10
October
2025
Accepted:
21
November
2025
Published online:
21
December
2025
Abstract
We present Rex and teaRex, C++17 libraries for efficient management of parton-level hard scattering event information and completely generic reweighting of such events, respectively. Rex is primarily an interfacing and I/O library for Les Houches Event format files and provides an internal event format designed with data parallelism in mind, and teaRex extends this format to provide full parton-level reweighting functionality with minimal code needing to be written by the end user. These libraries serve as the foundation for the MadtRex reweighting module for MadGraph5_aMC@NLO, extending the functionality of the CUDACPP plugin to allow for data-parallel model-generic leading order parameter reweighting with on-CPU hardware acceleration and GPU offloading, speeding up reweighting by more than two orders of magnitude compared to MadGraph5_aMC@NLO running on the exact same hardware while providing trivial scalability to larger and distributed systems.
© The Author(s) 2025
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
Funded by SCOAP3.

