-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun1.mac
43 lines (37 loc) · 1.72 KB
/
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
# This is the basic skeleton for MuSIC macros
# Setting the magnetic field, this shouldn't really need doing but is useful
# and stops the hard coded relative links breaking every time you move
/MuSIC_Detector/dipField /Users/scook/code/MuSIC/simulation/MuSIC_5_detector_sim/MuSIC5/MuSIC5_detector/fieldmap/fieldmap_dipole.txt
/MuSIC_Detector/solField /Users/scook/code/MuSIC/simulation/MuSIC_5_detector_sim/MuSIC5/MuSIC5_detector/fieldmap/fieldmap_solenoid.txt
# If you're running without g4bl input you
# a) Still need to pass as the second
# argument to the program (sorry, lazy)
# b) Need to pick which particle to generate.
# If you want multiple particles types pick
# a particle the '/run/beamOn X'
# /control/execute pid_macros/pid_-211.mac
# /control/execute pid_macros/pid_-13.mac
# /control/execute pid_macros/pid_-11.mac
# /control/execute pid_macros/pid_11.mac
/control/execute /Users/scook/code/MuSIC/simulation/MuSIC_5_detector_sim/MuSIC5/MuSIC5_detector/pid_macros/pid_13.mac
# /control/execute pid_macros/pid_211.mac
# /control/execute pid_macros/pid_2212.mac
# If you are using the g4bl input you can set an offset
# into the file.
# Note: event 399 is the first in g4bl that tends to leave to
# optical processes being needed
# /MuSIC_Detector/gun/inputOffset 399
# /MuSIC_Detector/targetMat Aluminium
# Toggle using optical processes these are _VERY_ slow
# /MuSIC_Detector/enableOpticalProcesses false
# /MuSIC_Detector/enableOpticalProcesses true
# /MuSIC_Detector/gun/g4blEnable true
# Set it to only run muons
#/MuSIC_Detector/gun/g4blSinglePID true
#/gun/particle mu-
# Basic command to set it all up and run it.
/MuSIC_Detector/update
/run/initialize
# /run/beamOn 30
#/run/beamOn 5000
/run/beamOn 50000