Geant4 User's Guide For Application Developers Examples |
The examples can be compiled and run without modification. Most of them
can be run both in interactive and batch mode using the input macro files
(*.in) and reference output files (*.out) provided.
These examples are run routinely as part of the validation, or testing,
of official releases of the Geant4 toolkit.
9.1.1 Novice Example Summary
Descriptions of the 7 novice examples are provided here along with links
to the code.
ExampleN01 (Description below)
Tables 9.1.1, 9.1.2 and 9.1.3 display the ``item charts'' for the examples currently prepared in the novice level.
ExampleN01 | ExampleN02 | ExampleN03 | |
comments | minimal set for geantino transportation | fixed target tracker geometry | EM shower in calorimeter |
Run | main() for hard coded batch | main() for interactive mode | main() for interactive mode |
SetCut and Process On/Off | |||
Event | event generator selection (particleGun) | event generator selection (particleGun) | event generator selection (particleGun) |
``end of event'' simple analysis in UserEventAction | |||
Tracking | hard coded verbose level setting | selecting secondaries | select trajectories |
Geometry | geometry definition (CSG) | geometry definition (includes Parametrised volume) | geometry definition (includes replica) |
uniform magnetic field | uniform magnetic field | ||
Hits/Digi | - | tracker type hits | calorimeter-type hits |
PIIM | minimal particle set | EM particles set | EM particles set |
single element material | mixtures and compound elements | mixtures and compound elements | |
Physics | transportation | EM physics | EM physics |
Vis | - | detector & trajectory drawing | detector & trajectory drawing |
tracker type hits drawing | |||
(G)UI | - | GUI selection | GUI selection |
Global | - | - | - |
Table 9.1.1 The ``item chart'' for novice level examples N01, N02 and N03. |
ExampleN04 | ExampleN05 | ExampleN06 | ||
comments | simplified collider geometry | parametrised shower example | Optical photon example | |
Run | main() for interactive mode | main() for interactive mode | main() for interactive mode | |
Event | event generator selection (HEPEvtInterface) | event generator selection (HEPEvtInterface) | event generator selection (particleGun) | |
Stack control | ||||
Tracking | select trajectories | - | - | |
selecting secondaries | ||||
Geometry | geometry definition (includes Param/Replica) | Ghost volume for shower parametrisation | geometry definition (BREP with rotation) | |
non-uniform magnetic field | ||||
Hits/Digi | Tracker/calorimeter/counter types | Sensitive detector for shower parametrisation | - | |
ReadOut geometry | ||||
PIIM | Full particle set | EM set | EM set | |
mixtures and compound elements | mixtures and compound elements | mixtures and compound elements | ||
Physics | Full physics processes | Parametrized shower | Optical photon processes | |
Vis | detector & hit drawing | detector & hit drawing | - | |
calorimeter type hits drawing | - | - | ||
(G)UI | define user commands | define user commands | define user commands | |
Global | - | - | random number engine | |
Table 9.1.2 The ``item chart'' for novice level examples N04, N05, and N06. |
ExampleN07 | ||||
comments | Cuts per region | |||
Run | main() for interactive mode | |||
Customized run class | ||||
Event | event generator selection (particleGun) | |||
Tracking | - | |||
Geometry | geometry definition (includes Replica) | |||
Region | ||||
Hits/Digi | Primitive scorer | |||
Filter | ||||
PIIM | EM set | |||
mixtures and compound elements | ||||
Physics | EM processes | |||
Vis | detector & trajectory drawing | |||
(G)UI | define user commands | |||
Global | - | |||
Table 9.1.3 The ``item chart'' for novice level example N07. |