To get the environment setup called automatically when a new terminal is open, you can add the commands for this setting in your login script, for example in $HOME/.bash_profile
file if bash
is your default shell. Open this file in your editor and add the following lines:
# Geant4 environment
source /nfsapp/physics/geant4.bash -n
The picture shows geometry which will be implemented in this session.
Inspect the code of the geometry already implemented and modify materials to correspond to the geometry description below. The code already present describes the geometry of the first arm detector.
Add following materials (using NIST manager):
G4_Ar
), CsI (G4_CESIUM_IODIDE
) and Copper (G4_Cu
)Implement the geometry of the second arm described below.
Explore implemented geometry:
/tracking/verbose 1
from the previous sessionAir
defined using NIST manager (the remaining materials have to be added and assigned to the volumes )hx=10.*m, hy=3.*m, hz=10.*m
Air
materialrmin = 0.*m, rmax=1.*m, hz=1.*m
Air
materialhx=1.5*m, hy=1.0*m, hz=3.0*m
Air
material-5.*m
in z-direction (in front of Tube
(in blue colour).)hx=1.*m, hy=30.*cm, hz=1.*cm
Air
material to be changed to Argon gas
0.5*m
from each other with the middle one in the center of the parent volumehx=1.*m, hy=30.*cm, hz=0.1*mm
Air
material to be changed to Copper
Second arm detector
hx=1.5*m, hy=1.*m, hz=3.*m
Air
material5.*m
in z-direction (behind Tube
(in blue colour)).hx=1.5*m, hy=30.*cm, hz=1.*cm
Argon gas
material0.5*m
from each other with the middle one in the center of the parent volume.hx=1.5*m, hy=30.*cm, hz=0.1*mm
Copper
materialhx=1.5*m, hy=30.*cm, hz=15.*cm
CsI
material2*m
in z-direction from the center of its parent volume (Second Arm Detector).15*cm
layers along x-direction of the same material (CsI)