Warning, /geant4/examples/extended/runAndEvent/RE04/README.md is written in an unsupported language. File is not indexed.
0001 \page ExampleRE04 Example RE04
0002
0003
0004 Contact : M.Asai (SLAC)
0005
0006 ## Introduction
0007
0008 This example demonstrates how to define a layered mass
0009 geometry in parallel world. In the mass (tracking) world,
0010 there are two boxes only. One is the world volume and the
0011 other is a box in the world. They both are made of air.
0012 Thus, if tracks do not see materials (water and lead)
0013 defined in the parallel world, they rarely interact.
0014 In the parallel world, there are boxes made of water and
0015 lead.
0016
0017 ### Geometry
0018
0019 RE04DetectorConstruction defines the mass (tracking)
0020 geometry. It firstly defines all materials which apear
0021 either in mass world or parallel world. Then in SetupGeometry()
0022 method, it defines the world volume and a box named "phantom".
0023 Both boxes are made of air.
0024
0025 RE04ParallelWorldConstruction defines the parallel world.
0026 For a parallel world, solid, logical and physical volumes
0027 which represent parallel world must not be created here but
0028 should be taken through G4VUserParallelWorld::GetWorld()
0029 method which creates clones of solid, logical and physical
0030 volumes of the world volume of the mass world. Please note
0031 that this cloned logical volume of the parallel world volume
0032 does not have a valid pointer to aa material but null.
0033
0034 In the parallel world, if a logical volume has a valid
0035 material pointer, a track in this volume (precisely saying
0036 a physical volume which is made of this logical volume)
0037 will see the material defined in this logical volume,
0038 regardless of the material in the mass geometry. If a
0039 logical volume has a null material pointer, a track will
0040 see the ordinary material defined in the mass world.
0041
0042 RE04ParallelWorldConstruction defines one placement
0043 volume of box-shape, which is made of water, and a mother
0044 box (placement volume with null material pointer), which
0045 contains parameterized volumes. RE04ParallelWorldParam
0046 class defines a parameterization of the parameterized
0047 volume "paraPara", which represents two boxes at different
0048 locations and made of water and lead respectively.
0049
0050 ### Physics
0051
0052 The physics list is taken from referenced physics-list FTFP_BERT
0053 in Geant4.
0054
0055 ## Macro files
0056
0057 The macro file score.mac defines a scoring mesh which covers
0058 the "Phantom" and scores energy deposition. It shoots 1000
0059 primary particles (by default 10 GeV muon-). Though the mass
0060 world has only air, given tracks, both primary muons and
0061 secondary particles see water and lead defined in the parallel
0062 world, you will see the energy deposition is not evenly
0063 distributed.
0064
0065 The macro file batch.mac defines the same setup as score.mac,
0066 but visualization is disabled and the score dump is activated.
0067
0068 ## User action classes
0069
0070 In the RE04ActionInitialization class, three user action classes are commented out,
0071 i.e.
0072 - RE04EventAction
0073 - RE04TrackingAction
0074 - RE04SteppingAction
0075
0076 By using RE04SteppingAction, you will
0077 see a material name which a track sees for each step.
0078 By using RE04EventAction and RE04TrackingAction, you will
0079 see the similar information for all trajectories of one
0080 event.
0081