arXiv Science⌕ Search

arXiv subjects

Mihály Novák

Publications and source records attributed to Mihály Novák.

3 recordsLinked to original sources

G4HepEm: A Geant4 Extension for Efficient Electromagnetic Shower Simulation in High-Energy Physics

Tracking electrons, positrons and photons dominates the CPU cost of detailed Geant4 detector simulation for the Large Hadron Collider (LHC) experiments. G4HepEm specialises this part of a Geant4 simulation with dedicated tracking loops and a compact, stateless electromagnetic physics library that can run on both CPU and GPU, while geometry and navigation remain native Geant4. Sensitive detectors and user actions are invoked through the standard Geant4 interfaces, allowing application code that relies on these interfaces to be used unchanged. Optional algorithmic performance optimisations, such as Woodcock tracking of photons and a combined multiple-scattering and transportation algorithm, provide further speedup. G4HepEm reproduces native Geant4 results in a sampling calorimeter and the CMS High-Granularity Calorimeter test beam while simulating electron showers at speedups of 2.1-2.2$\times$. In full-detector simulations of top-quark pair events, it reduces the simulation time by 14.1% (CMS Run 3), 21.0% (preliminary CMS Run 4) and 16.3% (ATLAS Run 3), while simulated CMS hit distributions and reconstructed ATLAS observables remain in close agreement with native Geant4. G4HepEm is open source and integrated into the CMS and ATLAS software frameworks, where it can contribute significantly to the experiments' efforts to cope with the computing challenges of the High-Luminosity LHC (HL-LHC) era.

physics.ins-det↗

Efficient Forward-Mode Algorithmic Derivatives of Geant4

We have applied an operator-overloading forward-mode algorithmic differentiation tool to the Monte-Carlo particle simulation toolkit Geant4. Our differentiated version of Geant4 allows computing mean pathwise derivatives of user-defined outputs of Geant4 applications with respect to user-defined inputs. This constitutes a major step towards enabling gradient-based optimization techniques in high-energy physics, as well as other application domains of Geant4. This is a preliminary report on the technical aspects of applying operator-overloading AD to Geant4, as well as a first analysis of some results obtained by our differentiated Geant4 prototype. We plan to follow up with a more refined analysis.

physics.comp-ph↗

Optimization Using Pathwise Algorithmic Derivatives of Electromagnetic Shower Simulations

Among the well-known methods to approximate derivatives of expectancies computed by Monte-Carlo simulations, averages of pathwise derivatives are often the easiest one to apply. Computing them via algorithmic differentiation typically does not require major manual analysis and rewriting of the code, even for very complex programs like simulations of particle-detector interactions in high-energy physics. However, the pathwise derivative estimator can be biased if there are discontinuities in the program, which may diminish its value for applications. This work integrates algorithmic differentiation into the electromagnetic shower simulation code HepEmShow based on G4HepEm, allowing us to study how well pathwise derivatives approximate derivatives of energy depositions in a sampling calorimeter with respect to parameters of the beam and geometry. We found that when multiple scattering is disabled in the simulation, means of pathwise derivatives converge quickly to their expected values, and these are close to the actual derivatives of the energy deposition. Additionally, we demonstrate the applicability of this novel gradient estimator for stochastic gradient-based optimization in a model example.

physics.comp-ph↗