Search arXiv⌕ Search

arXiv · 2607.24321

Static compilation of Julia packages for integration with existing HEP codebases: a case study with JetReconstruction.jl

Abstract

The Julia programming language is considered a strong contender as a future language for high-energy physics (HEP) computing. However, transitioning to the Julia ecosystem will be a long process and interoperability between Julia and C++ is required. So far several successful attempts have been made to wrap HEP C++ packages for use in Julia. It is also important to explore the reverse direction, allowing Julia code to be called from existing HEP codebases, written primarily in C++ and Python, which would significantly improve potential adoption of Julia code. With recent developments in Julia enabling it to produce statically compiled code, this approach is becoming increasingly feasible, and investigating this potential for the benefit of HEP community is the focus of this work. This work presents a case study of statically compiling the JetReconstruction.jl package - a highly performant, native Julia implementation of sequential jet reconstruction algorithms. Two different backends for Julia code compilation are compared: the existing PackageCompiler.jl and the new static compilation feature of Julia language, which is one of the major improvements in the Julia v1.12 release. The performance of the statically compiled JetReconstruction.jl is compared with both native Julia code and C++ FastJet.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Mateusz Jakub Fila, Graeme A Stewart. 2026-07-27. Static compilation of Julia packages for integration with existing HEP codebases: a case study with JetReconstruction.jl. https://arxiv.org/abs/2607.24321

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Feasibility Study of $e^+e^-\to η_cJ/ψ$ Production and Fully-Charmed Tetraquark Searches at STCF

The proposed high-luminosity Super Tau-Charm Facility (STCF) offers a clean experimental environment for threshold studies of exotic hadrons. In this Letter, we evaluate the expected significance for the fully-charmed vector tetraquark candidate $T_{4c}$ in the $e^+e^- \to η_c J/ψ$ channel at the STCF. Using Monte Carlo simulations of an energy scan from $\sqrt{s}=6.71$ to $6.79~\mathrm{GeV}$ with $100~\mathrm{fb}^{-1}$ per point, we adopt a high-efficiency single-tag (ST) reconstruction of $J/ψ$ leptonic decays as the primary strategy, with a double-tag (DT) reconstruction of $η_c \to K^+K^-π^0$ retained as an independent cross-check. Because the signal cross section is governed by the still-uncertain dielectron width $Γ_{ee}$, we consider three benchmark hypotheses, $Γ_{ee}=0.25, 0.5, 1~\mathrm{eV}$. The corresponding expected ST significances are $5.1\,σ$, $10.6\,σ$, and $20.5\,σ$, respectively. These results indicate that the STCF can provide meaningful sensitivity to fully-charmed tetraquark states near threshold.

hep-ex↗

From Hits to Tracks: A BERT-based Tracking Model for Track Reconstruction in Drift Chambers

Track reconstruction in drift chambers is essential for momentum measurement and particle identification at electron-positron colliders. While Transformer architectures have transformed many sequence-processing domains, their application to tracking in high energy physics is still being explored. We present a model that combines a BERT encoder with a Transformer decoder to perform hit-to-track association through autoregressive sorting. The model is evaluated on the DCTracks open dataset that provides realistic drift chamber simulations with varying particle types, momenta, track multiplicities, and noise conditions. Across single-track, two-track, and multi-track samples, the model achieves high hit and track efficiencies while keeping the rates of clones and fakes very low. It also works well in the reconstruction of displaced vertices. These results show BERT-based sequence-to-sequence models as a promising approach for track reconstruction in low-background, precision-oriented experiments.

hep-ex↗

Separating coherent and incoherent photoproduction at an Electron-Ion Collider: Comparing lead, gold and silver beams

Exclusive photoproduction is an important probe of nuclear parton distributions at low Bjorken-$x$. The Good-Walker paradigm relates coherent photoproduction to the average nuclear configuration, giving access to the transverse distribution of gluons in a target, while incoherent photoproduction is sensitive to fluctuations such as gluonic hotspots. Efficiently separating coherent and incoherent interactions is a key challenge for experiments at the future Electron-Ion Collider (EIC). In this article, we study nuclear de-excitation via photon emission, and see how the finite photon detection efficiency leads to misidentification of incoherent emission. We compare the detection efficiency for incoherent $J/ψ$ production using the BeAGLE event generator for Ag-107, Au-197, and Pb-208 targets, for two different forward photon energy thresholds: 50 MeV and 200 MeV. The shell structures of the three species exhibit different incoherent tagging efficiencies due to differences in the lifetimes and energy levels of their excited states. Some of the low-lying states live long enough so that they decay outside the EIC detectors. Especially for the lower photon energy threshold, lead allows a higher tagging efficiency than gold, due to its lack of low-lying and/or long-lived excited states.

hep-ex↗