Files
2026-03-19 16:51:22 +01:00
..
2025-12-05 08:54:02 +01:00
2025-12-05 08:54:02 +01:00
2018-12-07 15:15:39 +01:00
2025-12-05 08:54:02 +01:00
2023-06-30 09:09:57 +02:00
2019-12-06 15:12:28 +01:00
2025-12-05 08:54:02 +01:00
2025-12-05 08:54:02 +01:00
2019-12-06 15:12:28 +01:00
2026-03-19 16:51:22 +01:00

\page ExampleTestEm0 Example TestEm0

This program is not a simulation. It prints the cross sections and stopping power used by the standard electromagnetic package, via G4EmCalculator which extracts these data from the PhysicsTables.

The program can be used in batch or interactively.

  • execute TestEm0 in 'batch' mode from macro files :
% ./TestEm0   TestEm0.in
  • Interactively, a typical sequence will be :
% ./TestEm0
....
Idle> /run/initialize
...
Idle> /testem/det/setMat Silicon
Idle> /run/setCut 100 um
Idle> /gun/particle e-
Idle> /gun/energy 10 MeV
Idle> /run/beamOn

The last command triggers BuildPhysicsTable() and executes the program.

Macros provided in this example:

  • muon.mac: muon incident
  • ion.mac: generic ion incident
  • xenonGas.mac: illustrate gas definition

DirectAccess

DirectAccess.cc is a small batch program which shows how to compute the same basic data directly from the processes (indeed the models).