-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmymacro.mac
33 lines (24 loc) · 859 Bytes
/
mymacro.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
# Change the default number of workers
# (in multi-threading mode which is the default)
#/run/numberOfWorkers 4
# Initialize kernel
/run/initialize
# do not randomize type of primary particle
/B5/generator/randomizePrimary false
# Set the ange between the two arms
/B5/detector/armAngle 0. deg
# Set the magnetic field strength
/B5/field/value 1. tesla
# Set the particle that will be generated
# (choice: mu+, e+, pi+, kaon+, proton)
/gun/particle mu+
# Set the particle's initial momentum
/B5/generator/momentum 50. GeV
# Set standard deviation of initial momentum.
# Zero means all initial particles have exactly the same momentum.
/B5/generator/sigmaMomentum 0. GeV
# Set standard deviation of initial angle.
# Zero means all initial particles have exactly the same direction.
/B5/generator/sigmaAngle 0. deg
# Run five events
/run/beamOn 5