How to compute and plot the QED processes including polarization. Two possible scenarios are available:
The geometry consists of a single block of a homogeneous material, placed in a world.
Three parameters define the geometry :
The default geometry (5mm of Iron, G4_Fe) is constructed in DetectorConstruction, but the above parameters can be changed interactively via the commands defined in DetectorMessenger. Its polarization can be accessed via the G4PolarizationMessenger (see example macro file), and is given in the global coordinate system.
The Physics List contains QED particle definitions (electrons, positrons and photons) and a general transportation process. In addition the user can add one of the two process modules:
These physics list contain the standard electromagnetic processes.
The primary kinematic consists of a single particle starting at the edge of the box. The type of the particle and its energy are set in PrimaryGeneratorAction (10 MeV electron). By default the G4ParticleGun polarization is zero. All parameter can be changed via the G4 build-in commands of ParticleGun class (see the macros provided with this example).
This example uses the following physics processes:
or
and
and defines the following particles:
electron, positron, photon
The test contains 12 built-in 1D histograms, which are managed by the HistoManager class and its messenger, HistoMessenger. The histos can be individually activated with the command :
/testem/histo/setHisto id nbBins valMin valMax unit
where unit is the desired unit for the histo (MeV or keV, etc..) (see the macro histos.mac).
% gmake plots
Simulated events can be displayed on top of a representation of the geometry, see vis.mac for an example.
% Pol01 pol01.in
% Pol01 histos.mac
% gmake plots
% Pol01 [...] PreInit> /control/execute vis.mac