-
Notifications
You must be signed in to change notification settings - Fork 5
/
SCMagnet.mac
74 lines (59 loc) · 1.64 KB
/
SCMagnet.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#
# Macro file for the ucn example 3
#
#
# ----------------------------------
# control all field functions
#
# are we using a fieldcube 0.. off, > 0 different conditions?
/fieldcube/enabled 1
# if we use fieldcube = 1 , we need a file with data
/fieldcube/file magfield.dat
# when does our field start in seconds
/fieldcube/starttime 0
# if there is a time dependent field
/fieldcube/timedependence 1
# if there is a timedependence, we need a file for this
/fieldcube/timefile time.dat
# visualization of the fieldpoints
/fieldcube/drawfield 0
# ----------------------------------
# initial spin orientation (random, +, -)
/spin/direction -
# track the spin (0,1)
/spin/trans 1
# track the lowfield transitions of the spin (0,1)
/spin/lowfield 1
# ----------------------------------
# set shutter state (open/close) number(1,2,3,..) time (s)
/shutter/use 0
# ----------------------------------
/saveToFile/filename hallo123.dat
# ----------------------------------
# tell the primarygenerator, if we want to use a spectrum for UCN production
/gun/usespectrum 0
# set a randomseed
/gun/randomseed 80008498
# draw a circle at each point, where a ucn is produced 1..on, 0..off
/gun/visual 1
#set the filltime of the experiment
/gun/filltime 0
# ----------------------------------
# verbose levels
/materialboundary/setverbose 0
/shutter/setverbose 0
# ----------------------------------
#/control/verbose 0
#/tracking/verbose 0
#/control/saveHistory
#/run/verbose 0
#
# visualization
/control/execute vis.mac
# add the trajectories
/tracking/storeTrajectory 1
/vis/viewer/flush
#ready
#/vis/scene/endOfEventAction accumulate
# start particles
/run/beamOn 100