-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunGemc.sh
executable file
·59 lines (45 loc) · 1.75 KB
/
runGemc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/tcsh
source /opt/jlab_software/2.5/ce/jlab.csh keepmine
setenv vertex "$1"
setenv interpolation $2
setenv field $3
setenv run $4
echo
echo Running gemc with:
echo vertex: $vertex
echo interpolation: $interpolation
echo field: $field
echo run: $run
echo
set option = ''
set fprop = 'clas12-newSolenoid, 1*mm, G4ClassicalRK4, linear'
if ($interpolation == "None") then
set option = '-HALL_FIELD=clas12-newSolenoid -FIELD_VERBOSITY=99 -USE_GUI=0 -N=1'
set fprop = 'clas12-newSolenoid, 1*mm, G4ClassicalRK4, none'
endif
if ($field == "torus") then
set option = '-HALL_FIELD=TorusSymmetric -FIELD_VERBOSITY=99 -USE_GUI=0 -N=1'
set fprop = 'TorusSymmetric, 2*mm, G4ClassicalRK4, linear'
if ($interpolation == "None") then
set fprop = 'TorusSymmetric, 2*mm, G4ClassicalRK4, none'
endif
endif
if ($field == "c12BinaryTorusSymmSolenoid2018") then
set option = '-HALL_FIELD=c12BinaryTorusSymmSolenoid2018 -FIELD_VERBOSITY=99 -USE_GUI=0 -N=1'
set fprop = 'c12BinaryTorusSymmSolenoid2018, 2*mm, G4ClassicalRK4, linear'
if ($interpolation == "None") then
set fprop = 'c12BinaryTorusSymmSolenoid2018, 2*mm, G4ClassicalRK4, none'
endif
endif
if ($field == "c12BinaryTorusASymmSolenoid2018") then
set option = '-HALL_FIELD=c12BinaryTorusASymmSolenoid2018 -FIELD_VERBOSITY=99 -USE_GUI=0 -N=1'
set fprop = 'c12BinaryTorusASymmSolenoid2018, 2*mm, G4ClassicalRK4, linear'
if ($interpolation == "None") then
set fprop = 'c12BinaryTorusASymmSolenoid2018, 2*mm, G4ClassicalRK4, none'
endif
endif
if ( $run == "no") then
gemc -USE_GUI=0 $option -BEAM_V="$vertex" -BEAM_P="e-, 1*GeV, 90*deg 0*deg" -FIELD_PROPERTIES="$fprop"
else
gemc -USE_GUI=0 $option -BEAM_V="$vertex" -BEAM_P="e-, 1*GeV, 90*deg 0*deg" -FIELD_PROPERTIES="$fprop"
endif