forked from DavidLP/SourceSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunit_test_2.mac
executable file
·40 lines (40 loc) · 1.41 KB
/
unit_test_2.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
# Energy deposit of 1 MeV electrons
# in 530 um silicon sensor.
# M.J.Berger et al. NIM 69 (1969) page 181.
# Based on ther GEANT4 Em5 example.
#
/control/verbose 2
/run/verbose 2
/run/initialize
#
/setup/sensor/material G4_Si
/setup/sensor/thickness 530 um
/setup/sensor/xy 1 cm
/setup/sourceshield/enable 0
/setup/shield/enable 0
/setup/collimator/enable 0
#
/gps/particle e-
/gps/energy 1 MeV
/gps/direction 0 0 1
/gps/position 0 0 -1 mm
#
# definition of histograms (id, n_bins, min, max, unit)
/analysis/h1/set 0 500 0 20 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 GeV #Shield particle energy distribution (before)
/analysis/h1/set 6 100 0 5 GeV #Shield particle energy distribution (after)
/analysis/h1/set 7 100 0 200 keV #Sensor energy deposit
/analysis/h1/set 8 120 0 500 um #Sensor track length
/analysis/h1/set 9 120 0 30 deg #Sensor track In angle
/analysis/h1/set 10 120 0 30 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
/analysis/setFileName unit_test_2.root
#
/run/printProgress 100000
#
/run/beamOn 1000000