An eightfold equivalence-preserving speedup of the JUNO OMILREC vertex and energy reconstruction
Guangbao Sun, Qishan Liu, Wenjie Wu, Jun Cao, Xuefeng Ding, Wenxing Fang, Wuming Luo, Liangjian Wen, Zeyuan Yu, Xiang Zhou
Abstract
The Jiangmen Underground Neutrino Observatory (JUNO) reconstructs each event's vertex and energy with OMILREC, a maximum-likelihood fit that scans all 17,612 large photomultiplier tubes (LPMTs) in every Minuit function evaluation, about 470 times per event. This inner loop dominates the reconstruction CPU cost. Profiling shows that the production algorithm is latency-bound, sustaining only 9.9% of scalar floating-point peak because of virtual-function dispatch, ROOT-histogram pointer chasing, and repeated computation. We apply staged equivalence-preserving optimizations: flattened data layouts, vectorizable geometry, hoisting of Minuit-invariant work, per-event precomputation, fit-phase loop splitting and indexing, and reduced-precision fast paths. Each stage is checked against a frozen reference from the unmodified code. The optimized implementation achieves single-thread speedups of 8.06× (1524.8 → 189.2~ms/event) on an Intel Xeon Platinum~8358P and 5.22× (705.1 → 134.9~ms/event) on an AMD~EPYC~9654, increasing to 8.6× (177.7~ms/event) after further optimization. The likelihood remains bit-identical through the first seven releases and later agrees within a relative drift of 1.3×10-14, below the 10-13 contract. For typical events, reconstructed vertex and energy agree with the baseline within 4~mm and 7~keV; a few boundary cases reach different valid minima owing to an improved minimizer seed. An eight-metric physics-acceptance test also passes on about 861,000 68Ge calibration events. Developed with assistance from an AI coding agent operating under these verification gates, this workflow offers a transferable template for accelerating likelihood-based reconstruction in large neutrino and collider detectors without changing physics output.
Create a lesson
Related papers
Design and performance of the Fast Beam Condition Monitor for luminosity and background measurement at the CMS Experiment in LHC Run 3
The CMS BRIL Collaboration, Eliana Acurio, Ying An et al.
AlGaN/GaN Hall-Effect Sensor for In-Situ Magnetic Field Monitoring of the HSX Stellarator
Yiming Zhao, Wayne Goodman, Thomas Gallenberger et al.
Measuring and Modelling Lag in Amorphous Silicon Flat-Panel X-ray Detectors
Yiyue Huang, Benjamin Young, Andrew Kingston et al.
Signal formation and induction-gap optimization in a THGEM coupled to a resistive plate anode
Arpan Maity, Luca Moleri, Maryna Borysova et al.
Development and Commissioning of the Cryogenic Target Detectors for the Technical Run of the NUCLEUS Experiment
N. Schermer, H. Abele, G. Angloher et al.
Aliased noise characterization and mitigation in BICEP Array 150, 220 and 270 GHz time-division multiplexed detectors
S. Fatigoni, P. A. R. Ade, Z. Ahmed et al.