Warning, /geant4/examples/extended/electromagnetic/TestEm9/README.md is written in an unsupported language. File is not indexed.
0001 \page ExampleTestEm9 Example TestEm9
0002
0003 - Demonstrate electromagnetic physics in crystal calorimeters.
0004 - How to define cut-per-region.
0005
0006 ## GEOMETRY DEFINITION
0007
0008 The geometry consists of the vertex detector (VD), the electromagnetic
0009 calorimeter (EM), and the muon identifier (MU). Detector layout along
0010 the Z axis.
0011
0012 VD consisted of 3 layers of Si with pads structured along the X axis.
0013 Between VD and EM there are 2 active absorbers (scintillators).
0014 EM is the matrix 5x5 of heavy crystals. MU consist of 2 active absorbers
0015 (scintillators) and the iron plate between.
0016
0017 2 regions additional to the World are defined: VertexDetector and
0018 MuonDetector. For testing purposes first absorber of MU is included in
0019 the region of VD.
0020
0021 Material of calorimeter and absorber can be choosen: \n
0022 Air, Water, lAr, Al, Fe, BGO, PbWO4, Pb. \n
0023 Eg:
0024 ```
0025 /testem/det/CalMat PbWO4
0026 /testem/det/AbsMat Al
0027 ```
0028
0029 The size of the detector can be changed also.\n
0030 Eg:
0031 ```
0032 /testem/det/EcalLength 20 cm
0033 /testem/det/EcalWidth 5 cm
0034 /testem/det/update ---> rebuild the geometry
0035 ```
0036
0037 ## PHYSICS LISTS
0038
0039 Physics Lists are based on modular design. Several modules are instantiated:
0040 -# Transportation
0041 -# EM physics
0042 -# Decays
0043 -# StepMax - for step limitation
0044
0045 The following options for EM physics using builders from physics_lists
0046 sub-package are available:
0047 - "emstandard_opt0" recommended standard EM physics for LHC
0048 - "emstandard_opt1" best CPU performance standard physics for LHC
0049 - "emstandard_opt2" similar fast simulation
0050 - "emstandard_opt3" best standard EM options - analog to "local" above
0051 - "emstandard_opt4" best current advanced EM options standard + lowenergy
0052 - "emstandardWVI" standard EM physics and WentzelVI multiple scattering
0053 - "emstandardSS" standard EM physics and single scattering model
0054 - "emstandardGS" standard EM physics and Goudsmit-Saunderson multiple scatt.
0055 - "emlivermore" low-energy EM physics using Livermore data
0056 - "empenelope" low-energy EM physics implementing Penelope models
0057 - "emlowenergy" low-energy EM physics implementing experimental
0058 low-energy models
0059
0060 A local builder, PhysListEmStandard "local" (similar to opt0) is also
0061 available.
0062
0063
0064 Optional components can be added:
0065 - "elastic" elastic scattering of hadrons
0066 - "binary" QBBC configuration of hadron/ion inelastic models
0067 - "gamma_nuc" gamma- and electro-nuclear processes
0068 - "stopping" stopping processes
0069
0070 ## AN EVENT : THE PRIMARY GENERATOR
0071
0072 The primary kinematic consists of a single particle which hits the
0073 cylinder perpendicular to the input face. The type of the particle
0074 and its energy are set in the PrimaryGeneratorAction class, and can
0075 changed via the G4 build-in commands of G4ParticleGun class.
0076
0077 ## OUTPUT
0078
0079 The batch regime of simulation can be started
0080 ```
0081 ./TestEm9 TestEm9.in
0082 ```
0083 where TestEm9.in is the example of macro file for batch job.
0084
0085 As a result of simulation the number of secondaries produced
0086 in different regions are averaged. The average energy depositions
0087 in active absorbers and EM as well as RMS of these values are shown.
0088 The number of hits in pads of VD is printed out.
0089
0090 ## VISUALISATION
0091
0092 To use visualisation the environment variable G4_VIS_USE should be
0093 defined. An interactive session starts if no macro file is specified
0094 in the command line:
0095 ```
0096 ./TestEm9
0097 ```
0098
0099 To start visualisation one can issur
0100 ```
0101 >/control/execute vis.mac
0102 >/run/beamOn 1
0103 ```
0104
0105 ## ANALYSIS
0106
0107 Number of histograms are built inside the example using internal
0108 analysis sub-package. Histograms are saved in a root file.
0109 Histogram booking and saving is done only if any of histogram
0110
0111 ```
0112 /testem/histo/fileName myname
0113 /testem/histo/setHisto id nbins xmin xmax unit
0114 ```
0115