ArticlePDF Available

Geant4 electromagnetic physics for Run3 and Phase2 LHC

Authors:

Abstract

For the new Geant4 series 11.X, the electromagnetic (EM) physics sub-libraries were revised and reorganized in view of requirements for simulation of Phase-2 LHC experiments. EM physics simulation takes a significant fraction of the available CPU during massive production of Monte Carlo events for LHC experiments. We present the recent evolution of Geant4 EM sublibraries for the simulation of gamma, electron, and positron transport. Updates of other components of EM physics are also discussed. These developments are included in the new Geant4 version 11.1 (December 2022). The most important modifications concern the reorganization of the initialization of EM physics and the introduction of alternative tracking software. These modifications affect the CPU efficiency of any simulation, and CPU savings depend on geometry and physics configuration for the concrete experimental setup. We will discuss several methods: gamma general process, Woodcock tracking, transportation with multiple scattering process, alternative tracking manager, and the new G4HepEm library. These developments provide a basis for the implementation of EM particle transport on co-processors and GPU. We also will present very recent updates in physics processes and in configuration of EM physics.
Geant4 electromagnetic physics for Run3 and Phase2 LHC
Jonas Hahnfeld1,Vladimir Ivanchenko1,2,Mihaly Novak1,Luciano Pandola3,and Daren
Sawkey4,
1CERN, Geneva, Switzerland
2Princeton University, Princeton, New Jersey, USA
3INFN, Laboratori Nazionali del Sud, Catania, Italy
4Varian, A Siemens Healthineers Company, Toronto, Canada
Abstract. For the new Geant4 series 11.X, the electromagnetic (EM) physics
sub-libraries were revised and reorganized in view of requirements for simula-
tion of Phase-2 LHC experiments. EM physics simulation takes a significant
fraction of the available CPU during massive production of Monte Carlo events
for LHC experiments. We present the recent evolution of Geant4 EM sub-
libraries for the simulation of gamma, electron, and positron transport. Updates
of other components of EM physics are also discussed. These developments are
included in the new Geant4 version 11.1 (December 2022). The most impor-
tant modifications concern the reorganization of the initialization of EM physics
and the introduction of alternative tracking software. These modifications aect
the CPU eciency of any simulation, and CPU savings depend on geometry
and physics configuration for the concrete experimental setup. We will dis-
cuss several methods: gamma general process, Woodcock tracking, transporta-
tion with multiple scattering process, alternative tracking manager, and the new
G4HepEm library. These developments provide a basis for the implementation
of EM particle transport on co-processors and GPU. We also will present very
recent updates in physics processes and in configuration of EM physics.
1 Introduction
Electromagnetic (EM) physics in Geant4 [1–3] plays a critical role [4] in simulation of high
energy physics, medical physics, space science, and other applications. Both speed and ac-
curacy are critically important, and the code is continually updated to improve these [5, 6].
The work presented here mostly reflects updates available in Geant4 version 11.1 (December
2022).
2 Geant4 EM code and physics evolution
An evolution of the EM physics libraries of Geant4 was started from Geant4 11.0. Obsolete
code was removed, and in several places the usage of common utilities replaced duplicated
code. In the remaining code, uniform approaches were introduced for class initialisation and
layout, access to parameters, and code formatting. The main purposes of these modifications
EPJ Web of Conferences 295, 03018 (2024) https://doi.org/10.1051/epjconf/202429503018
CHEP 2023
© The Authors, published by EDP Sciences. This is an open access article distributed under the terms of the Creative
Commons Attribution License 4.0 (https://creativecommons.org/licenses/by/4.0/).
Figure 1. Energy loss distribution in 5.6 µm Si thin film by 100 MeV e, comparing measurements (cir-
cles) [7] to Geant4 simulations using dierent fluctuation models. Red line, simulations with Geant4
version 10.7. Blue line, simulations with version 11.0 and G4UniversalFluctuation model. Dashed
green line (coincident with red line), version 11.0 and G4UrbanFluctuation model.
were to make the configuration of EM physics more transparent to users and to be more
consistent with usage at supercomputers.
In Geant4 version 11.1, this line of work was continued but with fewer modifications
to the EM code. The environment variable for EM physics that defines the path to the
EM physics data is checked only once in total, for all EM classes in all threads. The path
is then stored as a variable in the G4EmParameters class, and can be accessed by calling
G4EmParameters::GetDirLEDATA(). This process is faster than repeatedly checking the
environment variable.
An additional option to select the model of the fluctuations of the energy loss was in-
cluded. For all charged particles except ions, the default model used in Geant4 10.X series
was renamed to G4UrbanFluctuation for the 11.X series. This is the most accurate model,
and is used in the EM physics lists Opt0, Opt3, Opt4, Livermore, and Penelope. For ions
G4IonFluctuations class is used. A new fluctuation model, G4UniversalFluctuation, is used
in physics lists Opt1 and Opt2. This model is faster than the default and, for many applica-
tions, is equally accurate. For thin films, however, the G4UniversalFluctuation model has
reduced accuracy. Fig. 1 shows the energy loss distribution by 100 MeV ein a 5.6 µm
thick Si layer. The G4UrbanFluctuation model reproduces the experimental data of Meroli
et al. [7] well. The G4UniversalFluctuation model does not reproduce the shape of the energy
deposition in this thin layer of silicon, and the mean value is biased. The list of alternative
fluctuation models may be extended, and also external models of fluctuations may be used.
Sampling of fluctuations may be disabled by using G4LossFluctuationDummy. Definition of
fluctuations may also be done per geometry region in custom EM physics configurations.
EPJ Web of Conferences 295, 03018 (2024) https://doi.org/10.1051/epjconf/202429503018
CHEP 2023
2
The EPICS2017 dataset [8] for photons is implemented [9] and, starting with Geant4 ver-
sion 11.1, is the default for G4EmLivermorePhysics and G4EmLivermorePolarizedPhysics
models. Compared to other datasets, this dataset has more data points, which enables lin-
ear (rather than logarithmic) interpolation. Due to a dataset review, these data for gamma
processes have a reduced systematic uncertainty on average [9].
For proton, alpha, and ion ionization, ICRU49 [10], ICRU73 [11] and ICRU90 [12] data
are used for energies below 2 MeV/amu. ICRU90 data are more detailed and more accurate,
so are the first choice, but they are available only for a limited number of projectiles and for
three target materials. The second choice is ICRU73 data, and for the remaining combinations
of projectile and target the ICRU49 data are used.
Code developed previously [13] to simulate the quantum entanglement of
MeV-scale photons from positron annihilation has been added to Geant4. It
is coded in the class G4eplusAnnihilation and enabled by the macro com-
mand /process/em/QuantumEntanglement true, and is called in the class
G4LivermorePolarizedComptonModel.
3 Methods to speed up simulation
One approach to speed up the simulation while maintaining accuracy is to eliminate unnec-
essary calculations of mean free path and/or other values at simulation steps.
Firstly this was introduced in Geant4 for the gamma transport as
G4GammaGeneralProcess [5], and is the default since Geant4 11.1. Prior to the in-
troduction of this process, for each step of a gamma particle, six mean free paths were
calculated, corresponding to the photoelectric eect, Compton scattering, e+epair produc-
tion, µ+µpair production, Rayleigh scattering, and the gamma-nuclear interaction. With the
general process, one interaction length is calculated using precomputed tables corresponding
to the total mean free path. If an interaction occurs in the step, the concrete process is
sampled. This method is already used by both ATLAS [14] and CMS [15].
A method for reducing steps is to combine the multiple scattering and transportation
processes into one process, which has access to both. This new G4TransportationWithMsc
process switches internally between transportation and multiple scattering until a real, dis-
crete interaction occurs. This produces identical physics but can show a large reduction
in the number of steps by charged particles. This process is enabled with physics list
G4EmStandard_opt1 in Geant4 11.1, and can also be enabled in other EM configurations
with the macro command /process/em/transportationWithMsc <argument>. Pass-
ing the argument Enabled turns on the combined process and produces identical results to
the known setup with two processes. The argument MultipleSteps additionally turns on the
internal optimization to avoid steps limited only by multiple scattering. This more aggressive
mode is expected to return statistically compatible results, but should be validated in the user
application. The G4TransportationWithMsc method is already used in CMS simulation [15].
An important caveat is that G4TransportationWithMsc does not work with parallel worlds.
In some geometries, stepping between geometrical boundaries during photon transport
can take a large portion of simulation time. Woodcock tracking [16] is a method of reducing
steps limited by boundaries, by choosing a fictitious cross section equal to the largest cross
section in the materials along the path of the photon. The eectiveness of this method strongly
depends on the application. So far, the implementation is not part of the main Geant4 repos-
itory, but it is planned to be part of the new library G4HepEm [17]. G4HepEm provides a
compact and eective simulation of e+,e, and γtransport. In this new library, unlike in the
main Geant4 toolkit, a pragmatic approach to perform only necessary computations during
EM particle tracking is implemented. The crucial advantage is in maximum eciency of the
EPJ Web of Conferences 295, 03018 (2024) https://doi.org/10.1051/epjconf/202429503018
CHEP 2023
3
code. An important feature of the G4HepEm library is to be compatible with the implemen-
tation of transport on GPU accelerators.
4 Optical physics updates
Geant4 version 11.1 includes the modelling of interfaces of thin coatings as developed by
Cappellugola et al. [18]. Interference phenomena and frustrated transmission beyond the
limit angle are considered. This is enabled with the CoatedDielectricDielectric boundary
process, and the user needs to specify the thickness and refractive index of the thin film.
The macro coated.mac included with the OpNovice2 example demonstrates usage of this
capability.
5 Summary
Simulation of electromagnetic interactions in Geant4 continues to undergo improvements in
both speed and accuracy. Concrete values of CPU performance improvements are strongly
dependent on the application and use case. ATLAS and CMS simulation productions have
become faster using the methods described here. The Geant4 series 11.X is expected to
provide a variant of EM physics that will be suitable for implementation on GPU and other
accelerators.
References
[1] Allison, J., et al., Nucl. Instrum. Meth. A 835 186-225 (2016).
[2] Allison, J., et al., IEEE Trans. Nucl. Sci. 53, 270-278 (2006).
[3] Agostinelli, S., et al., Nucl. Instrum. Meth. A 506, 250-303 (2003).
[4] Apostolakis J., et al., Front. Phys. 10, 913510 (2022).
[5] Ivanchenko, V., et al., EPJ Web of Conferences 245, 02009 (2020).
[6] Ivanchenko, V., et al., EPJ Web of Conferences 214, 02046 (2019).
[7] Meroli, S., et al., JINST 6P06013 (2011).
[8] https://www.oecd-nea.org/tools/abstract/detail/iaea1435/
[9] Li, Z., et al., Physica Medica 95, 94-115 (2022).
[10] ICRU Report 49, (1993)
[11] ICRU Report 73, (2005).
[12] ICRU Report 90, (2014).
[13] Watts, D.P., et al. Nat Commun 12, 2646 (2021). https://doi.org/10.1038/s41467-021-
22907-5; arxiv.org/abs/2012.04939
[14] Bandieramonte, M., talk at this conference.
[15] Srimanobhas, P., talk at this conference.
[16] Woodcock, E., et al. Proc. Conf. Applications of Computing Methods to Reactor Prob-
lems. Vol. 557. No. 2. Argonne National Laboratory, (1965).
[17] https://github.com/mnovak42/g4hepem; https://g4hepem.readthedocs.io/en/latest/index.html
[18] Cappellugola, L., et al., 2021 IEEE Nuclear Science Symposium (NSS) and
Medical Imaging Conference (MIC) and 28th International Symposium on Room-
Temperature Semiconductor Detectors, Oct (2021), Yokohama, Japan. pp.1-5,
10.1109/NSS/MIC44867.2021.9875513. hal-03863051
EPJ Web of Conferences 295, 03018 (2024) https://doi.org/10.1051/epjconf/202429503018
CHEP 2023
4
ResearchGate has not been able to resolve any citations for this publication.
Article
Full-text available
Detector simulation is a key component for studies on prospective future high-energy colliders, the design, optimization, testing and operation of particle physics experiments, and the analysis of the data collected to perform physics measurements. This review starts from the current state of the art technology applied to detector simulation in high-energy physics and elaborates on the evolution of software tools developed to address the challenges posed by future accelerator programs beyond the HL-LHC era, into the 2030–2050 period. New accelerator, detector, and computing technologies set the stage for an exercise in how detector simulation will serve the needs of the high-energy physics programs of the mid 21st century, and its potential impact on other research domains.
Article
Full-text available
This paper describes in detail the implementation of Geant4 Livermore electromagnetic physics models based on the EPICS2017 database for the low energy transport of photons. These models describe four photon processes: gamma conversion, Compton scattering, photoelectric effect and Rayleigh scattering. New parameterizations based on EPICS2017 were performed for scattering functions of Compton effect, subshell cross-sections of the photoelectric effect and form factors of Rayleigh scattering, in order to improve the precision of fitted values compared to tabulated values. Comparisons between new and old parameterizations were also carried out to evaluate the precision of the new parameterizations. The models were tested through a comparative study, in which the mass attenuation coefficient was calculated for both total photon interaction and each process using Geant4 simulations based on EPICS2017 and EPDL97 respectively. The results obtained from the simulations were found in good agreement with the XCOM reference data.
Article
Full-text available
Positron Emission Tomography (PET) is a widely-used imaging modality for medical research and clinical diagnosis. Imaging of the radiotracer is obtained from the detected hit positions of the two positron annihilation photons in a detector array. The image is degraded by backgrounds from random coincidences and in-patient scatter events which require correction. In addition to the geometric information, the two annihilation photons are predicted to be produced in a quantum-entangled state, resulting in enhanced correlations between their subsequent interaction processes. To explore this, the predicted entanglement in linear polarisation for the two photons was incorporated into a simulation and tested by comparison with experimental data from a cadmium zinc telluride (CZT) PET demonstrator apparatus. Adapted apparati also enabled correlation measurements where one of the photons had undergone a prior scatter process. We show that the entangled simulation describes the measured correlations and, through simulation of a larger preclinical PET scanner, illustrate a simple method to quantify and remove the unwanted backgrounds in PET using the quantum entanglement information alone. Gamma photons used in positron emission tomography are predicted to be produced in an entangled state. Here, the authors simulate the effects of entanglement and test them through comparison with experimental data from a PET demonstrator apparatus, showing the potential gains in background suppression.
Article
Full-text available
The Geant4 electromagnetic (EM) physics sub-packages are a component of LHC experiment simulations. During long shutdown 2 for LHC, these packages are under intensive development and we report progress of EM physics in Geant4 versions 10.5 and 10.6, which includes faster computation, more accurate EM models, and extensions to the validation suite. New approaches are developed to simulate radiation damage for silicon vertex detectors and for configuration of multiple scattering per detector region. Improvements in user interfaces developed for low-energy and the Geant4-DNA project are used also for LHC simulation optimisation.
Article
Full-text available
We report on developments of the Geant4 electromagnetic physics sub-libraries of Geant4 release 10.4 and beyond. Modifications are introduced to the models of photoelectric effect, bremsstrahlung, gamma conversion, single and multiple scattering. The theory-based Goudsmit-Saunderson model of electron/positron multiple scattering has been recently reviewed and a new improved version, providing the most accurate results for scattering of electrons and positrons, was made available. The updated interfaces, models and configurations have already been integrated into LHC applications and may be useful for any type of simulations.
Article
Full-text available
Geant4 is a software toolkit for the simulation of the passage of particles through matter. It is used by a large number of experiments and projects in a variety of application domains, including high energy physics, astrophysics and space science, medical physics and radiation protection. Over the past several years, major changes have been made to the toolkit in order to accommodate the needs of these user communities, and to efficiently exploit the growth of computing power made available by advances in technology. The adaptation of Geant4 to multithreading, advances in physics, detector modeling and visualization, extensions to the toolkit, including biasing and reverse Monte Carlo, and tools for physics and release validation are discussed here.
Article
Full-text available
The energy loss distribution f(Δ) of highly relativistic charged particles has been measured for thin silicon layers with thickness ranging from 5.6 to 120 μm. In this work, using an innovative method, the dependence of the energy loss distribution from the thickness of the silicon absorber has been investigated in great detail with reference to CMOS Active Pixel Sensors. The measured energy loss distributions are well-reproduced by calculations also when the target electrons binding energy is taken into account. Finally the results obtained with this method are compared with existing experimental results and theoretical data.
Article
Full-text available
Geant4 is a software toolkit for the simulation of the passage of particles through matter. It is used by a large number of experiments and projects in a variety of application domains, including high energy physics, astrophysics and space science, medical physics and radiation protection. Its functionality and modeling capabilities continue to be extended, while its performance is enhanced. An overview of recent developments in diverse areas of the toolkit is presented. These include performance optimization for complex setups; improvements for the propagation in fields; new options for event biasing; and additions and improvements in geometry, physics processes and interactive capabilities
Article
Full-text available
Geant4 is a toolkit for simulating the passage of particles through matter. It includes a complete range of functionality including tracking, geometry, physics models and hits. The physics processes offered cover a comprehensive range, including electromagnetic, hadronic and optical processes, a large set of long-lived particles, materials and elements, over a wide energy range starting, in some cases, from 250 eV and extending in others to the TeV energy range. It has been designed and constructed to expose the physics models utilised, to handle complex geometries, and to enable its easy adaptation for optimal use in different sets of applications. The toolkit is the result of a worldwide collaboration of physicists and software engineers. It has been created exploiting software engineering and object-oriented technology and implemented in the C++ programming language. It has been used in applications in particle physics, nuclear physics, accelerator design, space engineering and medical physics.
  • J Allison
Allison, J., et al., Nucl. Instrum. Meth. A 835 186-225 (2016).