Geant4 User's Guide
For Application Developers
Examples
9.2 Extended Examples
9.2.1 Extended Example Summary
Geant4 extended examples serve three purposes:
testing and validation of processes and tracking,
demonstration of Geant4 tools, and
extending the functionality of Geant4.
The code for these examples is maintained as part of the categories to which they belong. Links to descriptions of the examples are listed below.
Analysis
A01
- hit-scoring and histogramming using the AIDA interface
AnaEx01
- histogram and tuple manipulations using an AIDA compliant system
Electromagnetic
TestEm1
- single box, effects of individual processes (activate-inactivate) on the tracking: number of steps, step length, etc.
TestEm2
- shower development in an homogeneous material : longitudinal and lateral profiles
TestEm3
- shower development in a sampling calorimeter : energy deposited, longitudinal profile and energy flow
TestEm4
- test of low energy (~MeV) photon processes: spectrum of energy deposited in a single material
TestEm5
- single, thin or thick, layer: spectra of energy deposited, transmitted and back-scattered particles
TestEm6
- physics list for rare, high energy, electromagnetic processes: gamma conversion and e+ annihilation into pair of muons
TestEm7
- absorption of charged particles in homogeneous medium: Bragg curve and deposited dose in tallies
TestEm8
- test of photo-absorption-ionisation model in thin absorbers, and transition radiation
TestEm9
- shower development in a crystal calorimeter; cut-per-region
TestEm10
- test of transition radiation model
TestEm11
- illustrating energy deposition and tuning of step size and particle trajectories
TestEm12
- energy deposited by particles which across a given material
Photon Processes
- compute cross sections and absorption coefficients of photon processes
Muon Processes
- check the cross sections of high energy muon processes
Event Biasing
Event Generator
HepMCEx01
- simplified collider detector using HepMC interface and stacking
HepMCEx02
- connecting primary particles in Geant4 with various event generators using the HepMC interface
exgps
- illustrating the usage of the
G4GeneralParticleSource
utility
Fields
BlineTracer
- tracing and visualizing magnetic field lines
field01
- tracking using magnetic field and field-dependent processes
field02
- tracking using electric field and field-dependent processes
field03
- tracking in a magnetic field where field associated with selected logical volumes varies
Geant3 to Geant4
- converting simple geometries in Geant3.21 to their Geant4 equivalents
Geometry Definition Markup Language
- illustrating import and export of a detector geometry with GDML
Geometry
OLAP
- debugging tool for overlapping geometries
Medical Applications
DICOM
- geometry set-up using the Geant4 interface to the DICOM image format
GammaTherapy
- gamma radiation field formation in water phantom by electron beam hitting different targets
Optical Photons
LXe
- optical photons in a liquid xenon scintillator
Parallel Computing
ExDiane
- example of a medical application run in a distributed environment using the DIANE framework
ParGeant4
- set of examples derived from 'novice' using parallelism at event level with the TopC application
Persistency
PersEx01
- storing calorimeter hits using Root-I/O
rootio
- example Root-I/O library module
Radioactive Decay
- decays of radioactive isotopes as well as induced radioactivity resulted from nuclear interactions
Run & Event
RE01
- information between primary particles and hits and usage of user-information classes
RE02
- simplified fixed target application for demonstration of primitive scorers
Visualization
Examples of customisation for visualization
About the authors