Geant4 developments and applications
Paper · 2006 · John E. Allison, K. Amako, J. Apostolakis et al.
Summary
A detector simulation has to decide what to follow closely. In a finely segmented inner detector, the particles produced along a track can matter to the measurement. In a coarser detector farther out, following some of those particles can consume computing time with little effect on the information the instrument can recover. Allison and colleagues describe how Geant4, a toolkit for simulating the passage of particles through matter, was extended to accommodate these differences within a single calculation. The work tackles the needs of large particle physics experiments as well as those of applications in medicine, radiation protection and space science. The changes described were available in Geant4 version 7.0, released in December 2004, and in subsequent versions.
The toolkit gives users more control over where a simulation spends its effort. An application can group detector components into regions and set the threshold for producing secondary particles in each region. It can also vary the numerical precision used to follow a charged particle through a field, according to the volume or the properties of the track. A separate set of methods changes how often the program samples histories that are especially relevant to a measurement, accounting for that change with statistical weights. Geometry revisions give users more ways to represent detector shapes, find their boundaries and diagnose problems in a layout.
The authors also outline novel approaches to handling nuclear and electromagnetic interactions. The electromagnetic package was reorganized into smaller components and extended in areas such as low-energy interactions, the transport of light and the deflections produced by repeated scattering. The hadronic package adds ways to represent reactions inside nuclei, the breakup and decay of nuclear remnants, and the likelihood of particular reactions. Geant4 supplies Physics Lists that assemble compatible choices for applications such as trackers or calorimeters. The choice matters because several treatments can cover the same reaction while differing in their applicable energy ranges, computational cost and ability to reproduce a measurement.
Validation addresses physical quantities and complete instruments. For the electromagnetic quantities examined, the Geant4 results generally agreed well with reference data from the National Institute of Standards and Technology, while differences between implementations varied with incident energy. For calorimeter test beams, the QGSP Physics List reproduced the preliminary electron-to-pion response ratios in good agreement with the measurements above 20 GeV. The experimental systematic uncertainties were still being evaluated. The article also describes ways to exchange detector geometry, inspect events, connect to analysis software and distribute processing across computers. The physics comparisons evaluate selected predictions, while these software developments and realistic examples document what an experiment can build and run.
Deep dive: Geant4 developments and applications
Geant4 developments and applications explains how the toolkit follows particles through matter and how its predictions compare with reference and beam data. · about 37 minutes to read
The problem and its context
A particle history connects several kinds of calculation
An experimental apparatus may contain many parts with different shapes, materials and purposes. To simulate it, Geant4 needs a description of the arrangement, a way to locate a particle within that arrangement and a selection of physical processes that can act on the particle. When a reaction produces other particles, their paths and reactions can contribute to the same detector record. The calculation therefore has to keep track of the relationship between what entered the apparatus, what happened inside it and what the detector registered.
The authors use event for the unit of simulation that brings those histories together. A track is the representation of a particle being followed through the setup. A hit is a record of detector activity associated with the passage of particles. These objects serve different purposes. The event allows an application to handle a collection of related activity, a track carries the information needed to continue transport, and hits supply information for examining the detector response. The kernel, the shared machinery at the center of the toolkit, provides for event management, track prioritization and detector response alongside the basic work of tracking.
The first public release, at the end of 1998, already gave users the software needed to describe an apparatus, install the physics treatments they wanted and record interactions. Geometry and navigation, material specification and interfaces to physical processes were part of that foundation. The later development described by Allison and colleagues grew out of the use of that foundation in increasingly elaborate applications. Such applications needed more control over the computation within a detector and more ways to connect simulation to other parts of an experiment.
The toolkit's breadth makes the demands on that common machinery quite different. For light in a detector, the properties of a surface can matter to the calculation. For a charged particle moving through a magnetic field, the shape of its path can determine which region of material it enters. When an incoming hadron interacts with a nucleus, the reaction can produce several outgoing particles, each with further opportunities to interact. The same kernel has to serve simulations involving leptons, photons, hadrons and ions, across uses as different as optical transport, thermal-neutron studies and high-energy experiments.
Geant4 was designed around software objects with distinct responsibilities, and the collaboration describes developing it in successive increments. That organization matters when an experiment already depends on the software for production. A new solid can be added through the geometry facilities, and a new treatment of a process can be incorporated through a physics interface. Changes to common rules can reach farther. Allowing a production threshold to depend on location, for instance, requires both a way for the geometry to identify the relevant group of volumes and physics code that can use the threshold associated with that group.
The accuracy required can change inside the apparatus
In early Geant4 versions, a secondary-production threshold applied to the whole setup for a given particle type. A secondary is a particle produced during the simulated event. The common threshold gave the calculation a uniform rule for deciding when to create one explicitly. This was a reasonable default for consistency, but a real apparatus can combine instruments that have substantially different resolutions. The threshold appropriate to a fine measurement can then control the work performed in parts of the apparatus where the same degree of detail is of little use.
Consider the paper's example of a micro-vertex detector near the interior and a coarse muon detector farther out. The inner detector motivates a detailed calculation of particle activity close to a track. The outer detector can serve its measurement purpose with less detailed transport of very low-energy secondaries. A global threshold couples those decisions. To describe both instruments appropriately, an application needs a way to identify which components share a requirement and assign their production settings together.
Precision in a field raises another spatial and numerical question. An electromagnetic field can bend the trajectory of a charged particle. The program has to estimate where that curved path meets the edge of a detector volume, because crossing the edge can change the material and the physics that apply. The effort spent on that estimate can be matched to what the application needs to know about a particular track. A calculation designed to follow selected particles closely may have much less demanding requirements for some of the tracks produced elsewhere in the same event.
A further source of cost arises when the quantity of interest receives useful contributions from comparatively infrequent histories. A calculation can process a great many particles while gathering little information about an outcome reached by few of them. Geant4's early user hooks already made it possible for application authors to change how events were sampled. The collaboration added common facilities for this work so that familiar methods of variance reduction could be expressed through the toolkit. Here the objective is to improve the precision of an estimate for a given expenditure of computing effort.
A physics configuration must cover the event as it develops
Geant4 offers alternative descriptions of some of the same interactions. The incident particle is the projectile, and the material or nucleus with which it interacts is the target. Even for a stated projectile, target and energy, more than one treatment may be available. An experiment has to weigh their accuracy for the intended observation and their computational demands. It also has to configure physics for the particles that emerge from the initial interaction, since the event can continue through a wide range of particle types and energies.
The authors identify hadronic physics as particularly demanding. Hadronic interactions involve particles affected by the strong interaction. At relatively low energies, the authors describe the absence of a generally usable effective theory that can be calculated for the full set of cases. Practical descriptions can be limited to particular projectiles, target materials and energies. At higher energies, several approaches also compete, including descriptions built around diffraction, hadronic clusters or quark–gluon strings. The useful question for an application is which combination of treatments covers its conditions and reproduces the quantities it needs.
That question has an experimental counterpart. A simple target can help isolate a particular interaction for comparison with data. A full detector measures the cumulative effect of many interactions and the detector's response to them. A calorimeter, for instance, is built to measure the response to energy deposited by incoming particles and the activity they produce. Its output can be sensitive to many parts of the transport calculation at once. The authors treat comparisons at both scales as part of establishing where a Geant4 configuration is appropriate.
Production use changes the software requirements
When a program is run across many events, a rare error in calculating a boundary intersection can become operationally important. The same scale makes repeating a costly operation for every track consequential. The authors describe ongoing checks of processor time and work to expose intermittent failures. Their performance-monitoring applications include a simple test-beam setup and a configuration with a complex magnetic field. The former supplies a relatively simple case to rerun, while the latter exercises the problem of tracking in a more demanding field.
Production also places the toolkit inside a larger chain of programs. An experiment may generate primary particles externally, interpret the resulting hits with its own analysis software and use the geometry again in reconstruction, the stage that interprets detector data. A team may also need to inspect events interactively or run independent pieces of the work across several computers. The developments in run control, data exchange and analysis address the points at which a transport calculation meets these other activities.
The method, step by step
Set up the apparatus and start an event
A Geant4 application describes the apparatus as volumes with assigned materials. It chooses the physics that can act on the particles and supplies the initial particles for an event. The application can also specify an electromagnetic field, choose accuracy settings and place conditions on the production of secondaries. The Run Manager brings the run configuration and event processing together. Once transport begins, the navigator works with the geometry to find the boundaries a track can encounter. The physics operates on the track in that setting. Activity recorded as hits can then be accumulated and passed to analysis.
From a Geant4 configuration to simulated detector data
The steps in order.
The diagram follows the course of a simulation from configuration to output. Inside an event, the tracking and interaction stages recur as particles move through the apparatus and produce further tracks. A boundary can put a particle in a new material. An interaction can change what happens next or introduce more particles to follow. The package that supplies the physics and the code that supplies the spatial information therefore have separate responsibilities within a calculation that repeatedly needs both.
The Run Manager redesign places its mandatory kernel operations in a separate class. An experiment can write its own run-management component to fit the surrounding software and use the Geant4 class for the operations the kernel requires. The experiment gains control over its entry point into the simulation, including how that entry point fits the rest of its program. Common responsibilities remain in a part of the toolkit that the custom component can use.
The input to an event can come from several places. Geant4 can take primary events in HepMC, an event-record format used by high-energy physics generators. The Run Manager can also accept vectors of tracks and combine primary particles from different sources. A primary particle is supplied at the start of transport. Its record can include products of a decay that was specified before Geant4 began following the tracks. The toolkit needs to preserve enough continuity for experimenters to connect that input history with the activity ultimately recorded in the detector.
Optional application-defined objects help preserve this continuity. A program can associate its own information with any of four objects, whether that object is an event, a region, a primary particle or a primary vertex. A primary vertex describes a point from which primaries originate. Attaching information to it or to a particle gives the application a place to keep details that are meaningful to its own interpretation of an event. The authors connect these additions to the task of tracing the relationship between the original particle, its assigned decay products, the resulting trajectories and the corresponding hits.
For events generated using the General Particle Source, the paper reports improvements in interactivity and a revised calculation that converts an integral spectrum to a differential spectrum. An integral spectrum expresses an accumulated contribution over an energy interval. A differential spectrum expresses the contribution per unit of energy at a given energy. This distinction matters when the requested input to a simulation is described cumulatively and the source needs a distribution from which it can sample energies. The authors describe the purpose of the conversion and identify the change in the source class. They leave its numerical expression and implementation details unspecified.
Describe volumes, subdivisions and boundaries
The geometry is organized hierarchically. A volume can contain smaller volumes, called daughters, and the containing volume is called their mother. The navigator determines where a track sits in this structure and computes information about the boundaries around it. Its interface matters to the rest of the toolkit because the physics and tracking machinery must continue to receive that information even if the implementation used to find it changes.
In the revision, Geant4 abstracts the interface of G4Navigator. An application can replace the navigator, modify its behavior or supply extra functionality through a specialization. The authors also report simplifying the interface itself. This development addresses an experiment's ability to change the navigation machinery within the common transport structure. Other geometry changes concern the solids and their arrangement, which supply the objects that machinery navigates.
Earlier Geant4 replicas could describe repeated volumes as equal slices of a containing solid. The slices follow an appropriate axis for the chosen shape. Constructed Solid Geometry includes basic solid types such as a box, a tube, a cone or a polyhedron, for which a suitable cutting direction can be chosen. The new division volumes extend subdivisions of a mother so that offsets and different slice sizes can be represented. This is useful when the physical divisions in a detector begin away from a reference boundary or when their dimensions vary.
Twisted detector parts motivated additional solid types. For the stereo mini-jet cells considered for a future linear collider tracker, the authors describe G4TwistedTubs. Its ends are planar, its inner and outer boundaries are hyperboloidal, and its other bounding surfaces twist along the solid. A hyperboloidal surface describes the curved inner or outer wall in this construction. The paper includes a ray-traced illustration using a twist angle of 80 degrees. That value specifies the geometry shown in the illustration.
A different use of twisting is the trapezoidal shape found in the liquid-argon end-cap calorimeter of ATLAS. The paper describes a twisted trapezoid in Geant3 whose use had been subject to strong restrictions, and explains that the original Geant4 collection lacked such a solid. The extended collection includes G4TwistedTrap alongside other twisted forms. By supplying the solid in the geometry package, the toolkit can represent it as a volume with defined boundaries that the navigator can use. The paper points to the development of these boundaries as part of providing a shape suitable for detector construction.
A new full-sphere solid, G4Orb, targets efficient calculations for spheres and support for large spherical volumes. Other work revises how some basic solids and their combinations estimate distances to a boundary. The paper calls the estimate in any direction from a point isotropic safety. It expresses how close the nearest boundary is, considering the space around the point. A proposed intersection with a boundary answers the directional question of where a particular path would meet it. Precise handling of both quantities helps the navigator serve tracks near surfaces. The authors report correcting rare intersection problems involving some basic solids and combinations formed by Boolean operations on solids.
Check and exchange the geometry
Large hierarchies can contain placement mistakes that are difficult to find by looking at the definitions alone. The paper describes checks during construction, when Geant4 can look for violations of its geometry constraints, and a checking mode during tracking. The latter reports candidate boundary intersections and gives the user evidence about the points in a track's path where the calculation encountered a problem. This is particularly relevant when the geometry looks plausible at the scale of the whole apparatus and trouble only appears near particular surfaces.
Overlaps receive dedicated checks. An overlap is an intersection of placed volumes where their definitions call for separate spaces. The authors describe DAVID, which works with volumes in a graphical representation, and a verification facility in the geometry package that can be invoked in an interactive application. The user can set the intersection tolerance. The verification facility can also restrict the check to a specified depth in the hierarchy. That depth specifies how far the check proceeds through the sequence of mothers and daughters, which can be useful when investigating a local part of a deeply nested setup.
The Geometry Description Markup Language, known as GDML, addresses the need to move a geometry description between software systems. The extensions include writing a geometry held in memory to an XML text file and support for additional solids and for replicas. The practical case the authors give is the sharing of a description between simulation and reconstruction. If both use the same arrangement of the detector, quantities reported by the simulation can be interpreted within the spatial description used by the rest of the experiment. This exchange concerns the description of the apparatus. Its construction checks and tracking diagnostics provide the means to investigate whether the arrangement behaves as intended in Geant4.
Assign detail to regions and precision to tracks
A region is a group of geometrical components to which the application can assign shared behavior. The regional production threshold gives the physics procedures a criterion for whether to create a secondary explicitly at the location of an interaction. The paper's inner and outer detector example can therefore be represented as regions with different settings. The inner region can retain production of secondaries relevant to its finer measurements. The outer region can use a setting chosen for its coarser resolution.
This design adds a relationship between the geometry and the electromagnetic physics. When creating a secondary depends on the region, the electromagnetic package has to use the setting for the place where the process acts. The authors report that the introduction of regional thresholds prompted corresponding changes in those processes. A region supplies the common rule for a group of volumes, while the volumes continue to supply the shapes and materials through which the tracks pass.
A second control applies to the transport of charged particles in external electromagnetic fields. Geant4 approximates the point where a curved trajectory meets a volume boundary, subject to a precision set by the application. Integration, in this context, is the numerical calculation of the particle's path through the field. A volume can be assigned a field, including a field also used elsewhere, and the application can specialize the integration accuracy for the field used there. The paper also describes selecting precision from the properties of a track.
The authors give examples of preserving fine tracking for muons or for tracks whose energy exceeds a chosen threshold, and using coarser tracking for electrons in a calorimeter. The accuracy setting concerns the path and the position of crossings. The regional production cut concerns which interaction products become tracks. Both can influence how much work is done in the same detector. Their separate controls let the application decide which detail matters for the measurement it is designed to simulate.
Direct sampling effort toward consequential histories
The variance-reduction additions change how the program samples a calculation. The authors describe importance biasing, which associates a value with each volume used to organize the sampling. The importance reflects the role of a part of the setup in gathering useful information about the observable. Splitting creates multiple continuations of a history, so that the subsequent transport can be sampled several times. Russian roulette gives selected tracks a chance of being stopped and gives the surviving tracks a correspondingly adjusted statistical contribution.
The weights are essential to the interpretation of the result. With splitting, the presence of several continuations should be reflected in how their contributions count. With roulette, the histories that survive represent sampling opportunities also associated with those that were stopped. This procedure aims to reduce the statistical uncertainty of the quantity being estimated for the time spent on the simulation. The weight belongs to the sampling procedure, whereas the physical description of the path still depends on the apparatus and the configured interactions.
Importance assignments can use the mass geometry, meaning the material arrangement used by physics and tracking. An application can also supply an artificial parallel geometry to organize the biasing. The parallel arrangement allows the divisions that are convenient for sampling to differ from the shapes and placements of the material volumes. In either case, the importance assignment is a choice made with the intended estimate in mind.
Other tools operate on weights or on the choice of reaction histories. In the weight-window method, a track's weight is considered in relation to a designated range. The weight-cutoff option uses a simpler threshold on weight. In hadronic physics, the authors describe leading-particle biasing for reactions and cross-section biasing for electron-nuclear and gamma-nuclear processes. The latter changes how often the specified reaction is sampled. These facilities give experimenters ways to change the distribution of effort according to position, track weight or the interaction of interest.
Configure electromagnetic interactions
The standard electromagnetic package was reorganized to place the physics treatments in smaller classes devoted to particular responsibilities. The authors report that the interface familiar to users could stay the same in most cases. Internally, the redesign makes it easier to refine a specific treatment and allows the processes to use different secondary thresholds in different regions. The paper also reports improved computational performance when using low production thresholds.
Geant4 can save physics tables and retrieve them on another execution using the same physics configuration. The authors connect this to startup, especially when an application involves many materials or is run interactively. In such a case, repeated preparation of tables is part of the time between launching the program and using it. Reusing the prepared tables addresses that cost, which arises at a different stage from tracking particles through an event.
The package includes changes to multiple scattering, the accumulated deflection that results from repeated encounters as a particle traverses matter. The newer treatment can also be used for ions. The authors describe improved sampling in the angular tail, where deflections are less common, and reduced dependence on the step size used during transport. Step size matters because the program represents a track in successive portions. Sensitivity to that numerical choice can change the deflections produced by the calculation.
The authors also report changes to ionization by muons and ions and to the production of electron–positron pairs by muons. In the optical package, wavelength shifting adds a process for a change in the wavelength of light. A revision also improves the handling of material surfaces. For optical photons, a boundary identifies an interface whose properties can affect how the light proceeds. This is one instance where the geometry locating the surface and the physics describing what happens there must work together.
The low-energy electromagnetic package extends the toolkit's coverage below 1 keV. The paper highlights a treatment of the directions of bremsstrahlung photons emitted by electrons below 500 keV. Bremsstrahlung is radiation associated with the deflection or slowing of a charged particle. The stated energy in this example belongs to the electrons, while the observable being represented is the angular distribution of the emitted photons. Other additions draw on treatments developed for the Penelope Monte Carlo code for photons, electrons and positrons. The package also gains polarized Rayleigh scattering and proton-induced X-ray emission. The latter represents characteristic X-rays excited by incident protons.
Configure nuclear reactions and their products
The hadronic package has to account for both the occurrence of a reaction and its outgoing products. A cross section specifies the likelihood of an interaction under the given conditions. A final-state calculation supplies the results of the reaction once it has been selected. The authors describe an improved choice of the element involved in an interaction. They also move the selection of a specific isotope into a central stage before the final-state treatment is called. Since isotopes of an element have different nuclei, a description that can use the exact isotope gains information relevant to simulating a particular target, including nuclei far from stability.
The Binary Cascade and the Bertini Cascade describe transport inside a nucleus. The cascade represents a succession of interactions as the incident particle and the products it sets in motion move within nuclear matter. Geant4 added the Binary Cascade and an implementation of Bertini. Binary was then extended to cover pion projectiles and reactions involving light ions. The authors also report improving how Binary passes from the cascade stage to pre-equilibrium, the stage in which the excited nuclear system has yet to reach the conditions assumed for equilibrium decay. The Bertini implementation was extended in energy and checked for use in estimating isotope production.
CHIPS, short for chiral invariant phase space, represents fragmentation of a hadronic system at the quark level and generates the resulting hadrons. The paper also describes options for ion reactions, including an implementation of Wilson's abrasion treatment and electromagnetic dissociation in ion–ion collisions. An ablation treatment accompanies abrasion for the subsequent reaction stage. The package gains another evaporation treatment broadly similar to the Generalized Evaporation Model. Evaporation here concerns the emission of products as an excited nucleus loses energy. A revised implementation of Fermi breakup is reported to improve computational performance.
Changes also reach the probabilities used in the pre-equilibrium or pre-compound stage. Alternative emission probabilities draw on the High Energy Transport Code, and alternatives for transitions draw on the GNASH reaction theory code. Emission probabilities concern products leaving the excited system. Transition probabilities concern changes among the states represented as it evolves. The authors also report a coherent elastic scattering treatment that uses preprocessed tables, new implementations for nuclear absorption of muons and an improvement to fast radioactive decay.
Several revisions change the input used to estimate reaction rates. The authors report using pion scattering data that remove discontinuities in the cross sections, and correcting a longstanding issue with high-energy proton–hydrogen cross sections. For collisions between ions, the available treatments include Tripathi's systematics for light ions as well as other parameterizations. These adjustments concern how often interactions occur under the conditions being simulated. The changes to cascade, pre-equilibrium and breakup concern what happens during or after interactions selected in the calculation.
Assemble a Physics List and produce a comparison
A Physics List is a consistent selection of physics treatments assembled for an intended use. The list needs to cover the event as a whole, across the particles and energies it can generate. An individual option might be suitable for a reaction in isolation. In a full calculation it also has to fit with the treatments available before and after that reaction and with the rest of the setup. Supplied lists reduce the amount of selection an application author must do from the range of available processes.
The authors describe use cases that include calorimeters, trackers and general-purpose high-energy physics detectors. They also discuss lower-energy applications involving neutron dosimetry and nucleon penetration in shielding. Dosimetry concerns the amount of radiation dose associated with exposure, so relevant comparisons differ from those for a tracker or a calorimeter. The Physics Lists give configurations tied to such uses. Results from users of those configurations can then act as references for comparable applications.
The study uses generated particle histories and compares quantities obtained from them with independent reference or experimental data. There is no training stage in this procedure. In the electromagnetic comparisons, the choice being evaluated is an implementation for a physical quantity under the conditions represented in the reference. In the calorimeter comparisons, the configuration couples the apparatus to QGSP, a Physics List based on a quark–gluon string description. In either case, the simulation produces the quantity to be compared, and the corresponding reference supplies the criterion for examining the prediction.
Inspect and analyze what the simulation records
Geant4 can write detector volumes and event records in HepRep, a hierarchical format for objects that can be shown in a graphics display. The paper describes support for HepRep1 and the expanded HepRep2. A record can include trajectories, hits and digitized hits, which represent detector activity after it has been converted into a form suitable for reading out or processing. Displayed objects can carry attributes such as their material, particle identity or momentum. Browsers allow a user to select an object and examine its attributes. The WIRED browser described by the authors can use the attributes to filter the display or place labels on it.
The ASCIITree visualization presents the volume hierarchy as text and can calculate mass down to a chosen depth. Its accounting starts with the contribution attributed to the mother. Including a daughter replaces the contribution previously assigned to the space that daughter occupies. The operation described in the paper can be expressed as follows.
Mafter = Mbefore − D + A
Mbefore is the accumulated mass before accounting for the daughter, and Mafter is the updated mass. D is the mass of the mother's material assigned to the space occupied by that daughter. A is the mass of the daughter occupying that space. The minus sign removes the displaced material from the total, and the plus sign includes its replacement. The calculation continues through the daughters included at the selected depth. This use of the hierarchy gives the program a way to compute a property of the apparatus from the volumes and materials it contains.
The paper also describes separating the application from the details of its analysis software. The Advanced Examples use AIDA, the Abstract Interfaces for Data Analysis, for tasks such as working with histograms. A histogram organizes observations into ranges and accumulates their contributions. With the interface in place, the implementation used to produce and handle the histogram can be exchanged while the simulation code continues to use the same analysis calls.
Interactive control can also be separated from the computer carrying out the simulation. The authors describe desktop clients derived from existing Geant4 graphical-interface components. GAIN handles connections through sockets or SSH. A plug-in for a Geant4 application in JAS3 supports Java remote method invocation. These options let an experiment operate a Geant4 process at a remote center from a local graphical program. They address how a user controls the calculation, alongside the graphics and analysis interfaces for examining the results.
Distribute event processing and collect the hits
The paper describes two ways of organizing simulation across computers. Independent jobs on a farm each carry out their own assigned work. This approach suits groups that already have means of launching jobs and combining their outputs. The TOP-C extended example demonstrates distribution within an application at the level of individual events. The master generates events and worker processes simulate them, returning their hits to the master. The application can work with a single collection of hits for storage and analysis.
A hit type defined by the experiment has to be translated into a representation that can be sent between processes. This is called marshalling or serialization. An earlier version of the TOP-C example required programmers to write adaptations to handle their hit types. With the extension described in the paper, the programmer annotates the declarations for the hit, and Marshalgen generates the marshalling code. The authors also point to a demonstration of distributed Geant4 in the DIANE framework. These examples concern how to organize event computation and assemble its output, with the physics and geometry still supplied by the application.
Experiments and results
Electromagnetic predictions against reference data
The electromagnetic validation compares Geant4 predictions with data from the National Institute of Standards and Technology, or NIST. The paper cites reference resources for photon cross sections and for the stopping power and range of electrons, protons and helium ions. Stopping power is the energy a particle loses per distance traveled in matter. Range describes the extent of a particle's penetration before it comes to rest. These are examples of quantities for which a simulation can be checked against established references before it is used as part of an elaborate detector calculation.
The illustrated comparison uses the Standard, Low Energy EPDL and Low Energy Penelope implementations. The figure caption specifies Compton scattering cross sections, while the surrounding discussion describes a comparison of the photon attenuation coefficient with NIST. Compton scattering is a process in which a photon changes direction and transfers energy to an electron. A cross section characterizes the strength of a specified interaction, and an attenuation coefficient describes the reduction of the photon beam along its path in matter. The common reference permits a comparison of how the implementations agree with the data as incident energy changes.
The authors use a statistical test of agreement. Its p-value describes the probability, under the assumption of equivalent distributions, of obtaining a test statistic at least as extreme as the one observed. For a statistic ordered so that larger values represent more extreme outcomes, the definition can be written as follows.
p = P(S ≥ sobs ∣ H₀)
p is the p-value and P denotes probability. S is the test statistic considered under the null hypothesis, and sobs is the statistic obtained in the comparison. ≥ means at least as large in the stated ordering. The conditional bar means the probability is evaluated assuming H₀, the null hypothesis of agreement between the simulation and reference distributions in the test.
The authors used 0.05 as the decision threshold and treated p-values above it as satisfying the test of agreement. A line in the figure marks that criterion. The numerical threshold belongs to the statistical test, rather than to the size of an error in a photon cross section or attenuation coefficient. The reported outcome is generally good agreement for the electromagnetic comparisons, with energy-dependent differences among implementations. The paper also identifies validation of transmission and backscattering distributions. Those observables concern particles emerging through a material and particles redirected back towards the incident side, respectively.
Full calorimeter simulations against test beams
The hadronic validation program uses thin targets as well as calorimeter test beams. A thin target with a simple layout makes it possible to examine an effect associated with a particular interaction. A calorimeter supplies a measurement after a chain of reactions and detector processes has contributed to the response. The two settings therefore give different experimental comparisons. The paper presents the calorimeter results as an example of testing the combined prediction for a practical instrument.
The examples are the ATLAS HEC Liquid Argon Calorimeter, the ATLAS Tile Calorimeter and the CMS Hadronic Calorimeter. The corresponding preliminary beam measurements provide the external baseline for each detector. Geant4 uses QGSP version 2.7 for all the simulations. This gives the set of comparisons a common physics configuration, while the calorimeter and its measurement change from case to case. The observable is the response to electrons relative to the response to pions at the beam energy in question.
r = Eresp ÷ Presp
r denotes the electron-to-pion response ratio, written e/π in the paper. Eresp is the calorimeter response to electrons and Presp is the response to pions. The division sign denotes their quotient. The source of both responses can be the beam experiment or the Geant4 simulation of that experiment. The ratio describes the relationship between the responses within that source.
The calorimeter figure compares this quantity from simulation with the same quantity from experimental data. Each plotted series corresponds to a different instrument. The comparison at a given energy is itself a ratio.
C = rsim ÷ rbeam
C is the value shown in the comparison. rsim is the electron-to-pion response ratio from the QGSP simulation and rbeam is the ratio from the corresponding preliminary beam measurement. The division sign gives the simulated ratio relative to the measured ratio. This construction lets the figure show how well the simulation reproduces the relationship between the electron and pion responses as energy changes.
The authors report good agreement above 20 GeV of beam energy. Their discussion also gives 5% as the error level for bars omitted from the figure while the evaluation of experimental systematic uncertainties was in progress. The 5% describes the bars discussed in the paper. The finding about agreement is based on the reported comparison with preliminary measurements, with the systematic assessment still open. The paper presents the detector-specific results as curves or points against energy and gives its judgment of the range of agreement in the text.
Numerical coverage reported for cascade physics
Some of the quantitative statements in the paper describe the reach of physics implementations. The Bertini Cascade implementation was extended up to 10 GeV. The upper limit given for pion-induced reactions in the Binary Cascade is 1.5 GeV, linked by the authors to knowledge of strong resonances relevant to that treatment. The paper also gives 8 GeV as the extended upper energy for use of a scattering term in nucleon-induced reactions. That last statement refers to a particular term and projectile class.
Upper application energies reported for Geant4 cascade settings
The Bertini implementation has the higher stated energy boundary in the reported settings.
The numbers
| System or setting | GeV |
|---|---|
| Binary Cascade for pion-induced reactions | 1.5 |
| Extended Bertini Cascade implementation (this paper) | 10 |
The entries give the boundaries for the settings as the authors describe them. The Binary entry concerns pion-induced reactions specifically, while the Bertini statement concerns the implementation more broadly. A higher value here means a higher stated reach. Accuracy for a shared projectile, target and energy would be a separate measurement. The authors also report verifying Bertini's suitability for estimating isotope production, without specifying numerical errors or a common comparison series for the cascade settings.
Software performance and application demonstrations
The article describes several improvements with consequences for computing time. It reports performance work on propagation in fields, faster startup through table reuse with a common physics configuration and improvements to the standard electromagnetic package for low production thresholds. Rewriting Fermi breakup is also described as a performance improvement. The recurring check of processor time supplies a way to monitor the toolkit as it changes. The paper describes the test configurations and the parts of the calculation targeted by the changes, while presenting quantified comparisons chiefly for physics quantities and applicability ranges.
The Advanced Examples demonstrate a different result of the development work. They include calorimeter and ring-imaging Cherenkov detector applications, space telescopes and a study of the charging of isolated test masses by cosmic rays. A ring-imaging Cherenkov detector uses a pattern of light to help characterize particles. In the charging example, the focus is the effect of cosmic radiation on the test masses. Those studies can use the same transport architecture while configuring very different incoming particles, apparatus and recorded quantities.
Other examples include an underground dark matter detector, use of characteristic X-rays to study a material, radiation protection, and several forms of radiotherapy. The application demonstrations show how Geant4 can combine a source, geometry, physics and analysis for realistic tasks. Each has its own physical observable. The evidence for agreement with external data given in detail in the article comes from the electromagnetic tests and the preliminary calorimeter comparison.
What the ablations show
The paper reports no formal ablation study of the new toolkit components, and its comparative analyses instead examine alternative electromagnetic treatments, a common hadronic Physics List across calorimeters and the roles of thin-target and full-detector tests.
Change the electromagnetic treatment and keep the reference
The electromagnetic analysis comes closest to a controlled substitution. Standard, Low Energy EPDL and Low Energy Penelope predictions are all compared with the same NIST reference in the illustrated case. The shared reference makes it possible to examine differences due to the choice of implementation across incident energies. The generally good agreement reported by the authors can coexist with distinctions at particular energies. For an application intended to operate in a particular energy range, that local behavior is part of what gives the comparison practical meaning.
Each Geant4 prediction represents a treatment of the process as a whole. Changing from one treatment to another can alter several features together. The comparison identifies differences in the behavior of these choices with a common reference. Establishing the contribution of a term within one of them would require a comparison that changes that term while retaining the rest of the implementation and the test conditions.
The paper also gives a targeted account of the change to multiple scattering. Improved sampling of the angular tail concerns the shape of the predicted angular distribution. Reduced sensitivity to step size concerns its stability as the path is subdivided numerically. These are different properties of the same transport treatment. The discussion identifies them as benefits of the revised implementation, while the illustrated NIST comparison probes an electromagnetic observable related to photons. Together these cases show the different questions addressed by a physical distribution and a test of sensitivity to numerical segmentation.
Keep the Physics List and change the detector
The calorimeter comparisons use the same QGSP release in different instruments. This exposes a chosen physics configuration to multiple experimental circumstances. It provides evidence that the reported agreement in the electron-to-pion response ratio extends across the instruments examined in the stated energy range. Because the setups differ in their detector arrangement and measurements, variation in their results reflects the whole simulation and data comparison for each instrument.
The common Physics List makes this primarily a check of transfer across those setups. A comparison of competing lists in the same instrument would instead help assess the effect of replacing the physics selection. Likewise, identifying the role of a particular cascade or nuclear decay treatment would require an intervention on that part of the calculation. The study as reported supports a finding about the response ratio for a complete configuration.
The authors' distinction between thin targets and calorimeters explains how some of that attribution can be made more local. A thin target is arranged to test an interaction or effect in a simple setting. The measurement can then depend more directly on the reaction treatment under examination. A calorimeter measurement is valuable because it is the quantity an experiment needs at the instrument level. It incorporates many opportunities for discrepancies to accumulate or compensate. Evidence at these two scales answers different questions about a configuration.
Identify where changes could affect the work of a run
The regional-threshold example analyzes where detailed secondary production serves a purpose. It identifies detector resolution as a reason to choose different settings for the fine inner detector and for a coarser outer detector. The field examples give a separate reason to vary numerical precision, based on which trajectories or boundary crossings need to be located accurately. These cases explain why the controls are available and which parts of the computation they affect. The amount of time saved and the consequence for a selected detector measurement depend on the settings and apparatus used.
Importance biasing addresses a third source of effort, which is the number of sampled histories needed to obtain useful precision for a quantity. Its effect would be judged through the uncertainty obtained for a stated computing cost and through the correctness of the weighted estimate. The paper explains how users can arrange the sampling geometry and change the weights, while its performance-monitoring examples address elapsed computational work under representative configurations. This gives a basis for understanding which observations would be relevant to testing a particular improvement in an application.
Limitations
Limits stated by the authors
The authors describe the selection of hadronic physics as a challenge that persists in spite of the supplied Physics Lists. The available lower-energy approaches have domains of approximate validity that can depend on the projectile, target and energy. At higher energies, several approaches are possible as well. A list reduces the burden of making an initial selection by providing a combination intended for a use case. The fit between that combination and a particular measurement still matters.
The restriction on the pion treatment in the Binary Cascade is an explicit example. The upper energy of 1.5 GeV concerns pion-induced reactions in that approach. The authors tie the limit to the relevant knowledge of strong resonances. The broader energy extension stated for Bertini and the energy given for a scattering term in nucleon-induced reactions describe other boundaries. Each number has to be read together with the type of interaction and the scope of the treatment to which the authors attach it.
The calorimeter data are preliminary. In discussing the omitted 5% error bars, the authors state that the assessment of experimental systematic errors was still in progress. Such errors can arise from influences on the measurement that affect its values in a related way across a series of observations. The reported agreement is consequently the assessment the authors could make at that stage of the experiment. A completed evaluation of the detector systematics would give a firmer basis for interpreting departures of simulation from measurement.
The paper describes both the case studies and the validation effort as continuing work. Additional Advanced Examples were in development. The toolkit's range of applications means that checking a basic interaction and checking a full experimental simulation frequently fall to different groups. In the account given by the authors, the collaboration typically performs comparisons of basic physical quantities, and experimenters complement that work with tests of complete simulations against their data.
Limits inferred from the comparisons
A significance threshold of 0.05 sets the paper's rule for interpreting the electromagnetic tests. Its meaning is conditional on the assumed null hypothesis and on how the statistic measures disagreement. The physical size of a discrepancy and the precision needed by a given application are separate considerations. An experiment looking for accuracy in a particular energy interval would need to relate the reference comparison to the energies and quantities that affect its measurement. Overall agreement across the reported tests has a wider scope and correspondingly less detail about any specific application.
The calorimeter observable combines the electron and pion responses through division. As a result, similar changes in both absolute responses can leave their relationship much less affected. The reported agreement supports that relationship for the configurations tested. Separate comparisons of the absolute responses would be needed to establish their individual accuracy. The same study also leaves open how the response distributions are reproduced and how competing Physics Lists would compare in these instruments.
The coverage figures address the energy over which particular treatments have been made available or described as applicable. The measurements of prediction quality would depend on a stated projectile, material, energy and observable. A comparison of applicable energy boundaries alone cannot supply a ranking by physical accuracy. The reported check of isotope production in Bertini is relevant to that particular use, with the numerical outcomes and detailed conditions beyond the scope of the article.
Limits inferred from the software demonstrations
The regional, field and biasing controls give the application ways to manage effort. Their performance depends on actual choices of geometry, physics settings and scoring quantities. For a region-dependent threshold, one would need timing and a sensitive detector observable measured under both settings to judge the tradeoff in a particular apparatus. For the field setting, the corresponding assessment would depend on the precision required for the track or boundary crossing. The examples in the paper explain the purpose of the controls without quantifying such paired comparisons.
Variance reduction has a similarly application-dependent outcome. The benefit depends on how frequently useful histories are sampled and on the variation of the weighted contributions they make. The importance assignments, the weight rules and the definition of the observable can all affect that variation. The paper establishes which mechanisms are available and explains why some applications can benefit substantially. It does not give a numerical precision gain at fixed cost for an illustrated run.
The distributed example shows events being assigned to workers and hits being returned to a master. That establishes a way of arranging the application and its data. Timing also depends on the cost of processing an event, transferring hits and gathering results. The authors do not report a scaling series across computer counts or a comparison against independent jobs for the same workload. The geometry checks have their own conditions of use. A specified recursion depth and tolerance determine which parts of an arrangement are examined and what degree of intersection is detected under the check.
Finally, the diversity of the examples establishes a range of applications that the software can express. A telescope, a calorimeter and a radiotherapy calculation depend on different physical quantities and would require different external checks to establish predictive accuracy. The article gives detailed comparative evidence for selected electromagnetic quantities and for the stated test-beam observable. The application demonstrations explain how other experimental questions can be represented using the toolkit.
What came after
The authors describe Geant4 already in production use by large high-energy physics experiments and in use for smaller detector studies. They also report applications in space science, astrophysics, medical physics and radiation protection. At publication, the practical path from the collaboration's developments to those applications ran through toolkit releases, Physics Lists prepared for experimental use and examples that showed how to combine the pieces in a working simulation. User groups also contributed comparisons with complete instruments, extending the kinds of evidence available to other groups considering similar configurations.
The paper describes plans for continued refinement and physics validation, along with further realistic examples then in development. The division of effort it records gives that work a concrete form. The collaboration could examine basic quantities against references, while experimental groups could evaluate the combined response of a detector with beam or operating data. Specific subsequent publications and what they took from these developments are undocumented here.
Cite
Cite as John E. Allison, K. Amako, J. Apostolakis, Henrique M. Araújo, Pedro E. Arce, Makoto Asai, Guy Barrand, R. Capra, Stéphane Chauvie, Radovan Chytracek, G.A.P. Cirrone, Gene D. Cooperman, G. Cosmo, G. Cuttone, G.G. Daquino, M. Dönszelmann, M. Dressel, G. Folger, Franca Foppiano, J. Generowicz, V. Grichine, Susanna Guatelli, P. Gumplinger, A. Heikkinen, I. Hřivnáčová, Alexander S. Howard, S. Incerti, V. Ivanchenko, Tony S. Johnson and F.W. Jones. 2006. Geant4 developments and applications. IEEE Transactions on Nuclear Science.
@article{allison2006geant4,
title = {{Geant4 developments and applications}},
author = {John E. Allison, K. Amako, J. Apostolakis, Henrique M. Araújo, Pedro E. Arce, Makoto Asai, Guy Barrand, R. Capra, Stéphane Chauvie, Radovan Chytracek, G.A.P. Cirrone, Gene D. Cooperman, G. Cosmo, G. Cuttone, G.G. Daquino, M. Dönszelmann, M. Dressel, G. Folger, Franca Foppiano, J. Generowicz, V. Grichine, Susanna Guatelli, P. Gumplinger, A. Heikkinen, I. Hřivnáčová, Alexander S. Howard, S. Incerti, V. Ivanchenko, Tony S. Johnson and F.W. Jones},
journal = {IEEE Transactions on Nuclear Science},
year = {2006},
doi = {10.1109/tns.2006.869826},
url = {https://doi.org/10.1109/tns.2006.869826}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/allison-2006-geant4-developments-applications/