-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun.mac
52 lines (44 loc) · 1.63 KB
/
run.mac
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
# definition of histograms (id, n_bins, min, max, unit)
/analysis/h1/set 0 500 0 5 MeV #Primary Energy Distribution
/analysis/h1/set 1 500 -10 10 mm #Primary x Distribution
/analysis/h1/set 2 500 -10 10 mm #Primary y Distribution
/analysis/h1/set 3 200 0 3 MeV #Secondary electrons energy distribution (e.g. ion decay)
/analysis/h1/set 4 200 0 200 keV #Secondary photons energy distribution
/analysis/h1/set 5 100 0 5 MeV #Shield particle energy distribution (before)
/analysis/h1/set 6 100 0 5 MeV #Shield particle energy distribution (after)
/analysis/h1/set 7 100 0 200 keV #Sensor energy deposit
/analysis/h1/set 8 100 0 500 um #Sensor track length
/analysis/h1/set 9 100 0 90 deg #Sensor track In angle
/analysis/h1/set 10 100 0 90 deg #Sensor track Out angle
/analysis/h1/set 11 100 0 200 keV #Sensor energy deposit (triggered)
/analysis/h1/set 12 100 0 1 keV/um #Sensor dE/dx
/run/initialize
# Create radioactive source
# Create from ion decay (slow)
#/gps/particle ion
#/gps/ion 38 90 0 0. # SR-90
#/gps/energy 0. keV # primary ion at rest
# create from energy distribution hist (fast)
/gps/ene/type Arb
/gps/hist/file Sr_90_1mmShield_energy.dat
/gps/hist/inter Lin
/gps/ang/type iso
/gps/ang/mintheta 0 deg
/gps/ang/maxtheta 13 deg
/gps/ang/rot1 -1 0 0 # direction defined into negative z (wtf)
#/gps/particle e-
#/gps/energy 3.2 GeV
#/gps/direction 0 0 1
#/gps/position 0. 0. -8 cm
# position
/gps/pos/type Volume
/gps/pos/shape Cylinder
/gps/pos/radius 7 mm
/gps/pos/halfz 0.65 mm
/gps/pos/centre 0. 0. -1.8 cm
# setup
/setup/collimator/enable 0
/setup/shield/enable 0
/setup/trigger/enable 1
/setup/sourceshield/enable 0
/run/beamOn 150000