An Online Data Analysis Framework for Small-Scale Physics Experiments
Hayden Ramm, Pascal Simon, Paraskevi Alexaki, Christopher Arran, Robert Bingham, Alice Goillot, Jon Tomas Gudmundsson, Jonathan Halliday, Bryn Lloyd, Eva Los, Vasiliki Stergiou, Sifei Zhang, Gianluca Gregori, Nikolaos Charitonidis
TL;DR
The paper introduces an online data-analysis framework tailored for small-scale physics experiments, demonstrated during HRMT-68 at CERN's HiRadMat facility. Built in Python with a JSON-configurable, modular architecture, the framework enables real-time data extraction, visualization, and feature identification across diverse diagnostics while adapting to new devices. It addresses practical challenges such as timestamp tagging and data synchronization by implementing dual central logs and leveraging CERN storage services, and it evaluates performance across multiple devices to quantify runtime and memory overhead. The work offers a reusable, adaptable solution that enhances experimental agility and fault diagnosis for collaborations with limited resources.
Abstract
A robust and flexible architecture capable of providing real-time analysis on diagnostic data is of crucial importance to physics experiments. In this paper, we present such an online framework, used in June 2025 as part of the HRMT-68 experiment, performed at the HiRadMat facility at CERN, using the Super Proton Synchrotron (SPS) beam line. HRMT-68 was a fixed-target laboratory astrophysics experiment aiming to identify plasma instabilities generated by a relativistic electron-positron beam during traversal of an argon plasma. This framework was essential for experimental data acquisition and analysis, and can be adapted for a broad range of experiments with a variety of experimental diagnostics. The framework's modular and customizable design enabled us to rapidly observe and extract emergent features from a diverse range of diagnostic data. Simultaneously, it allowed for both the introduction of new diagnostic devices and the modification of our analysis as features of interest were identified. As a result, we were able to effectively diagnose equipment malfunction, and infer the beam's response to varying bunch duration, beam intensity, and the plasma state without resorting to offline analysis, at which time adjustment or improvement would have been impossible. We present the features of this agile framework, whose codebase we have made publicly available, which can be adapted for future experiments with minimal modification.
