A parallel algorithm for fast reconstruction of primary vertices on heterogeneous architectures

Agnieszka Dziurda, Maciej Artur Giza, V. V. Gligorov, W. Hulsbergen, Bogdan Kutsenko, S. Mariani, N. S. Nolte, Florian Reiss, P. Spradlin, Dorothea Vom Bruch, Tomasz WojtońThe European Physical Journal C 2025

Abstract The physics programme of the LHCb experiment at the Large Hadron Collider requires an efficient and precise reconstruction of the particle collision vertices. The LHCb Upgrade detector relies on a fully software-based trigger with an online reconstruction rate of 30 MHz, necessitating fast vertex finding algorithms. This paper describes a new approach to vertex reconstruction developed for this purpose. The algorithm is based on cluster finding within a histogram of the particle trajectory projections along the beamline and on an adaptive vertex fit. Its implementations and optimisations on x86 and GPU architectures and its performance on simulated samples are also discussed.

Introduction

In high-energy physics, "reconstruction" is the vital process of converting raw electronic signals from detectors into the physical trajectories of particles. A cornerstone of this process for the LHCb experiment is identifying the Primary Vertex (PV)—the precise spatial coordinate where proton-proton collisions occur.

With the "Run 3" upgrade of the Large Hadron Collider (LHC), the LHCb experiment faces a significant data challenge. The collision rate has increased fivefold, requiring the detector to process 30 million collisions per second (30 MHz). Traditional sequential vertex-finding algorithms, which often scale quadratically with particle density, are no longer sufficient. To meet this 30 MHz real-time requirement, researchers have developed a new parallel algorithm designed to exploit heterogeneous computing architectures, including both high-end GPUs and multi-core x86 CPUs.

Methodology

The proposed algorithm utilizes a five-step parallel pipeline optimized for the Vertex Locator (VELO) detector geometry. The VELO's design, featuring modules arranged along the beamline, informs the algorithm's approach to dimensionality reduction.

The VELO detector geometry, with modules depicted in blue. The x–z coordinate system is also shown.

The Reconstruction Pipeline

  1. Track Extrapolation: Charged particle trajectories (tracks) are projected to their Point of Closest Approach (POCA) relative to the beamline.
  2. 1D Histogramming: Recognizing that the interaction region is extremely narrow in the $x$ and $y$ planes but elongated along the $z$-axis (the beamline), the algorithm fills a one-dimensional histogram along $z$. This converts a complex 3D search into a high-speed 1D clustering problem.
  3. Peak Search: The algorithm identifies "proto-clusters" within the histogram. A specialized "dip search" is employed to split clusters that may represent two vertices in close proximity.
  4. Track Association: Tracks are linked to identified peaks. The implementation diverges here to suit specific hardware: the x86 version uses explicit association to optimize for cache hits, while the GPU version uses implicit weighted association to maximize thread-level parallelism.
  5. Adaptive Vertex Fit: A weighted least-squares fit refines the vertex position. It utilizes "Tukey’s bi-square" weights to automatically ignore "outlier" tracks that do not belong to the vertex, ensuring high spatial precision.

Performance and Results

The algorithm was evaluated using 2.5 million simulated events reflecting Run 3 conditions, including standard proton-proton ($pp$) collisions and fixed-target proton-gas ($p$-gas) interactions via the SMOG2 system.

Distributions of the number of visible PVs (left) and reconstructed VELO tracks (right) for Run 2 pp, Run 3 pp, and Run 3 p-gas simulations.

As shown in the simulation distributions, Run 3 conditions present a much higher occupancy (more tracks and vertices per event) than Run 2. Despite this increased complexity, the parallel algorithm achieved the following:

  • Efficiency: An overall reconstruction efficiency of 93.5%, representing a 2% improvement over previous "Run 2-like" sequential methods.
  • Resolution: Spatial resolution in the $x$ and $y$ coordinates improved by approximately 5%.
  • Throughput: The implementation successfully meets the 30 MHz trigger requirement. On high-end hardware like the NVIDIA RTX 3090, the throughput is sufficient to process the entire HLT1 trigger sequence in real-time.
  • Versatility: It is currently the only algorithm capable of simultaneously reconstructing standard $pp$ collisions and fixed-target $p$-gas collisions with high precision.

Conclusion and Future Work

The development of this parallel, hardware-aware algorithm is a critical enabler for the LHCb Upgrade. By moving from 3D combinatorial searches to 1D histogramming and adaptive fitting, the experiment can now process 4 TB/s of raw data in real-time.

Future work will address current limitations, such as resolution degradation in the gaps between VELO modules (specifically between $z = -150$ and $-100$ mm). Additionally, researchers aim to extend high-efficiency reconstruction further upstream into the gas-cell region to better support exotic fixed-target physics interactions.

Summary updated

BibTeX
@article{dziurda2025parallel,
  author = {Agnieszka Dziurda and Maciej Artur Giza and V. V. Gligorov and W. Hulsbergen and Bogdan Kutsenko and S. Mariani and N. S. Nolte and Florian Reiss and P. Spradlin and Dorothea Vom Bruch and Tomasz Wojtoń},
  title = {{A parallel algorithm for fast reconstruction of primary vertices on heterogeneous architectures}},
  journal = {The European Physical Journal C},
  year = {2025},
  doi = {10.1140/epjc/s10052-025-14225-7},
}
Figure