-
Notifications
You must be signed in to change notification settings - Fork 1
/
run1.mac
45 lines (45 loc) · 916 Bytes
/
run1.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
# Macro file for nD1
#
# Can be run in batch, without graphic
# or interactively: Idle> /control/execute run1.mac
#
# Change the default number of workers (in multi-threading mode)
#/run/numberOfThreads 4
#
# Initialize kernel
/run/initialize
#
# Default kinematics:
# proton 3 GeV in direction (0.,0.,1.)
# 1 event with tracking/verbose
#
/tracking/verbose 1
/run/beamOn 1
#
# 1 event with printing hits
#
/tracking/verbose 0
/hits/verbose 2
/run/beamOn 1
#
# set target and chamber material
#
/nD1/det/setTargetMaterial G4_WATER
/nD1/det/setChamberMaterial G4_Ar
/run/beamOn 3
#
# set a magnetic field and max allowed step length
# 3 event with printing hits
#
/globalField/verbose 1
/globalField/setValue 0.2 0 0 tesla
/nD1/det/stepMax 1.0 mm
/gun/energy 0.3 GeV
/run/beamOn 3
#
# muon 300 MeV in the direction (0.,0.,1.)
# 3 event with detailed printing
#
/gun/particle mu-
/gun/energy 300 MeV
/run/beamOn 3