1
|
|
2
|
Module StepPi
|
3
|
{
|
4
|
PropertyString Material Galactic
|
5
|
PropertyHep3Vector Dimensions 1000.0 1000.0 8200.0 mm
|
6
|
|
7
|
Substitution $FieldMapMode Read
|
8
|
Substitution $SolenoidOffset (600.0)
|
9
|
Substitution $CellLength (2000.0)
|
10
|
Substitution $FCCurrent (80.0)
|
11
|
Substitution $Pol1 (+1)
|
12
|
Substitution $Pol2 (-1)
|
13
|
Substitution $Pol3 (-1)
|
14
|
Substitution $Pol4 (+1)
|
15
|
|
16
|
Substitution $FCLength 844.
|
17
|
Substitution $FCRadius 210.
|
18
|
|
19
|
Substitution $M1Current (129.29)
|
20
|
Substitution $M2Current (113.81)
|
21
|
|
22
|
Substitution $SSLength 2923.-259. // this is not quite right
|
23
|
Substitution $SSRadius 200.
|
24
|
|
25
|
Module SSAperture
|
26
|
{
|
27
|
Volume None
|
28
|
// upstream edge of SS is 124 mm upstream from centre of End2
|
29
|
// centre of tube is upstream edge + $SSLength/2.
|
30
|
Position 0. 0. -124.-3200-$SolenoidOffset-$CellLength/2.+$SSLength/2. mm
|
31
|
Dimensions $SSRadius 500. $SSLength mm
|
32
|
PropertyString Material STEEL304
|
33
|
PropertyDouble BlueColor 1.
|
34
|
}
|
35
|
Module SSAperture
|
36
|
{
|
37
|
Volume None
|
38
|
// upstream edge of SS is 124 mm upstream from centre of End2
|
39
|
// centre of tube is upstream edge + $SSLength/2.
|
40
|
Position 0. 0. +124.+3200+$SolenoidOffset+$CellLength/2.-$SSLength/2. mm
|
41
|
Dimensions $SSRadius 500. $SSLength mm
|
42
|
PropertyString Material STEEL304
|
43
|
PropertyDouble BlueColor 1.
|
44
|
}
|
45
|
Module FCAperture
|
46
|
{
|
47
|
Volume None
|
48
|
Position 0. 0. -$CellLength/2. mm
|
49
|
Dimensions $FCRadius 500. $FCLength mm
|
50
|
PropertyString Material STEEL304
|
51
|
PropertyDouble BlueColor 1.
|
52
|
}
|
53
|
Module FCAperture
|
54
|
{
|
55
|
Volume None
|
56
|
Position 0. 0. +$CellLength/2. mm
|
57
|
Dimensions $FCRadius 500. $FCLength mm
|
58
|
PropertyString Material STEEL304
|
59
|
PropertyDouble BlueColor 1.
|
60
|
}
|
61
|
|
62
|
Module EndCoil2
|
63
|
{
|
64
|
Volume None
|
65
|
Position 0.0 0.0 -3200-$SolenoidOffset-$CellLength/2. mm
|
66
|
Rotation 0.0 0.0 0.0 degree
|
67
|
ScaleFactor $Pol1*135.18
|
68
|
// Field
|
69
|
PropertyString FieldType Solenoid
|
70
|
PropertyString FieldMapMode $FieldMapMode
|
71
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/end2.fld
|
72
|
PropertyDouble CurrentDensity 1.
|
73
|
PropertyDouble Length 110.6
|
74
|
PropertyDouble Thickness 67.8
|
75
|
PropertyDouble InnerRadius 258.
|
76
|
}
|
77
|
Module CenterCoil
|
78
|
{
|
79
|
Volume None
|
80
|
Position 0.0 0.0 -2450.-$SolenoidOffset-$CellLength/2. mm
|
81
|
Rotation 0.0 0.0 0.0 degree
|
82
|
ScaleFactor $Pol1*152.44
|
83
|
// Field
|
84
|
PropertyString FieldType Solenoid
|
85
|
PropertyString FieldMapMode $FieldMapMode
|
86
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/center.fld
|
87
|
PropertyDouble CurrentDensity 1.
|
88
|
PropertyDouble Length 1314.3
|
89
|
PropertyDouble Thickness 22.1
|
90
|
PropertyDouble InnerRadius 258.
|
91
|
}
|
92
|
Module EndCoil1
|
93
|
{
|
94
|
Volume None
|
95
|
Position 0.0 0.0 -1700.-$SolenoidOffset-$CellLength/2. mm
|
96
|
Rotation 0.0 0.0 0.0 degree
|
97
|
ScaleFactor $Pol1*127.37
|
98
|
// Field
|
99
|
PropertyString FieldType Solenoid
|
100
|
PropertyString FieldMapMode $FieldMapMode
|
101
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/end1.fld
|
102
|
PropertyDouble CurrentDensity 1.
|
103
|
PropertyDouble Length 110.6
|
104
|
PropertyDouble Thickness 60.9
|
105
|
PropertyDouble InnerRadius 258.
|
106
|
}
|
107
|
Module MatchCoil2
|
108
|
{
|
109
|
Volume None
|
110
|
Position 0.0 0.0 -1300.-$SolenoidOffset-$CellLength/2. mm
|
111
|
Rotation 0.0 0.0 0.0 degree
|
112
|
ScaleFactor $Pol1*$M2Current
|
113
|
// Field
|
114
|
PropertyString FieldType Solenoid
|
115
|
PropertyString FieldMapMode $FieldMapMode
|
116
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/match2.fld
|
117
|
PropertyDouble CurrentDensity 1.
|
118
|
PropertyDouble Length 199.5
|
119
|
PropertyDouble Thickness 30.9
|
120
|
PropertyDouble InnerRadius 258.
|
121
|
}
|
122
|
Module MatchCoil1
|
123
|
{
|
124
|
Volume None
|
125
|
Position 0.0 0.0 -861.0-$SolenoidOffset-$CellLength/2. mm
|
126
|
Rotation 0.0 0.0 0.0 degree
|
127
|
ScaleFactor $Pol1*$M1Current
|
128
|
//Field
|
129
|
PropertyString FieldType Solenoid
|
130
|
PropertyString FieldMapMode $FieldMapMode
|
131
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/match1.fld
|
132
|
PropertyDouble CurrentDensity 1.
|
133
|
PropertyDouble Length 201.3
|
134
|
PropertyDouble Thickness 46.2
|
135
|
PropertyDouble InnerRadius 258.
|
136
|
}
|
137
|
Module FocusCoil
|
138
|
{
|
139
|
Volume None
|
140
|
Position 0.0 0.0 -202.75-$CellLength/2. mm
|
141
|
Rotation 0.0 0.0 0.0 degree
|
142
|
ScaleFactor $Pol1*$FCCurrent
|
143
|
// Field
|
144
|
PropertyString FieldType Solenoid
|
145
|
PropertyString FieldMapMode $FieldMapMode
|
146
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/focus.fld
|
147
|
PropertyDouble CurrentDensity 1.
|
148
|
PropertyDouble Length 213.3
|
149
|
PropertyDouble Thickness 94.8
|
150
|
PropertyDouble InnerRadius 267.
|
151
|
}
|
152
|
Module FocusCoil
|
153
|
{
|
154
|
Volume None
|
155
|
Position 0.0 0.0 +202.75-$CellLength/2. mm
|
156
|
Rotation 0.0 0.0 0.0 degree
|
157
|
ScaleFactor $Pol2*$FCCurrent
|
158
|
// Field
|
159
|
PropertyString FieldType Solenoid
|
160
|
PropertyString FieldMapMode $FieldMapMode
|
161
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/focus.fld
|
162
|
PropertyDouble CurrentDensity 1.
|
163
|
PropertyDouble Length 213.3
|
164
|
PropertyDouble Thickness 94.8
|
165
|
PropertyDouble InnerRadius 267.
|
166
|
}
|
167
|
Module FocusCoil
|
168
|
{
|
169
|
Volume None
|
170
|
Position 0.0 0.0 -202.75+$CellLength/2. mm
|
171
|
Rotation 0.0 0.0 0.0 degree
|
172
|
ScaleFactor $Pol3*$FCCurrent
|
173
|
// Field
|
174
|
PropertyString FieldType Solenoid
|
175
|
PropertyString FieldMapMode $FieldMapMode
|
176
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/focus.fld
|
177
|
PropertyDouble CurrentDensity 1.
|
178
|
PropertyDouble Length 213.3
|
179
|
PropertyDouble Thickness 94.8
|
180
|
PropertyDouble InnerRadius 267.
|
181
|
}
|
182
|
Module FocusCoil
|
183
|
{
|
184
|
Volume None
|
185
|
Position 0.0 0.0 +202.75+$CellLength/2. mm
|
186
|
Rotation 0.0 0.0 0.0 degree
|
187
|
ScaleFactor $Pol4*$FCCurrent
|
188
|
// Field
|
189
|
PropertyString FieldType Solenoid
|
190
|
PropertyString FieldMapMode $FieldMapMode
|
191
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/focus.fld
|
192
|
PropertyDouble CurrentDensity 1.
|
193
|
PropertyDouble Length 213.3
|
194
|
PropertyDouble Thickness 94.8
|
195
|
PropertyDouble InnerRadius 267.
|
196
|
}
|
197
|
Module MatchCoil1
|
198
|
{
|
199
|
Volume None
|
200
|
Position 0.0 0.0 861.0+$SolenoidOffset+$CellLength/2. mm
|
201
|
Rotation 0.0 0.0 0.0 degree
|
202
|
ScaleFactor $Pol4*$M1Current
|
203
|
// Field
|
204
|
PropertyString FieldType Solenoid
|
205
|
PropertyString FieldMapMode $FieldMapMode
|
206
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/match1.fld
|
207
|
PropertyDouble CurrentDensity 1.
|
208
|
PropertyDouble Length 201.3
|
209
|
PropertyDouble Thickness 46.2
|
210
|
PropertyDouble InnerRadius 258.
|
211
|
}
|
212
|
Module MatchCoil2
|
213
|
{
|
214
|
Volume None
|
215
|
Position 0.0 0.0 1300.+$SolenoidOffset+$CellLength/2. mm
|
216
|
Rotation 0.0 0.0 0.0 degree
|
217
|
ScaleFactor $Pol4*$M2Current
|
218
|
// Field
|
219
|
PropertyString FieldType Solenoid
|
220
|
PropertyString FieldMapMode $FieldMapMode
|
221
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/match2.fld
|
222
|
PropertyDouble CurrentDensity 1.
|
223
|
PropertyDouble Length 199.5
|
224
|
PropertyDouble Thickness 30.9
|
225
|
PropertyDouble InnerRadius 258.
|
226
|
}
|
227
|
Module EndCoil1
|
228
|
{
|
229
|
Volume None
|
230
|
Position 0.0 0.0 1700+$SolenoidOffset+$CellLength/2. mm
|
231
|
Rotation 0.0 0.0 0.0 degree
|
232
|
ScaleFactor $Pol4*127.37
|
233
|
// Field
|
234
|
PropertyString FieldType Solenoid
|
235
|
PropertyString FieldMapMode $FieldMapMode
|
236
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/end1.fld
|
237
|
PropertyDouble CurrentDensity 1.
|
238
|
PropertyDouble Length 110.6
|
239
|
PropertyDouble Thickness 60.9
|
240
|
PropertyDouble InnerRadius 258.
|
241
|
}
|
242
|
Module CenterCoil
|
243
|
{
|
244
|
Volume None
|
245
|
Position 0.0 0.0 2450.+$SolenoidOffset+$CellLength/2. mm
|
246
|
Rotation 0.0 0.0 0.0 degree
|
247
|
ScaleFactor $Pol4*152.44
|
248
|
// Field
|
249
|
PropertyString FieldType Solenoid
|
250
|
PropertyString FieldMapMode $FieldMapMode
|
251
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/center.fld
|
252
|
PropertyDouble CurrentDensity 1.
|
253
|
PropertyDouble Length 1314.3
|
254
|
PropertyDouble Thickness 22.1
|
255
|
PropertyDouble InnerRadius 258.
|
256
|
}
|
257
|
Module EndCoil2
|
258
|
{
|
259
|
Volume None
|
260
|
Position 0.0 0.0 3200+$SolenoidOffset+$CellLength/2. mm
|
261
|
Rotation 0.0 0.0 0.0 degree
|
262
|
ScaleFactor $Pol4*135.18
|
263
|
// Field
|
264
|
PropertyString FieldType Solenoid
|
265
|
PropertyString FieldMapMode $FieldMapMode
|
266
|
PropertyString FileName ${MAUS_ROOT_DIR}/tmp/end2.fld
|
267
|
PropertyDouble CurrentDensity 1.
|
268
|
PropertyDouble Length 110.6
|
269
|
PropertyDouble Thickness 67.8
|
270
|
PropertyDouble InnerRadius 258.
|
271
|
}
|
272
|
|
273
|
Module VirtualPlane
|
274
|
{
|
275
|
Volume None
|
276
|
Position 0.0 0.0 -4050.0+@RepeatNumber*100 mm
|
277
|
PropertyString SensitiveDetector Virtual
|
278
|
PropertyBool RepeatModule2 True
|
279
|
PropertyInt NumberOfRepeats 81
|
280
|
}
|
281
|
Module VirtualPlane // always instrument AFC centre
|
282
|
{
|
283
|
Volume None
|
284
|
Position 0.0 0.0 -$CellLength/2. mm
|
285
|
PropertyString SensitiveDetector Virtual
|
286
|
}
|
287
|
Module VirtualPlane // always instrument cell centre
|
288
|
{
|
289
|
Volume None
|
290
|
Position 0.0 0.0 0.0 mm
|
291
|
PropertyString SensitiveDetector Virtual
|
292
|
}
|
293
|
Module VirtualPlane // always instrument AFC centre
|
294
|
{
|
295
|
Volume None
|
296
|
Position 0.0 0.0 $CellLength/2. mm
|
297
|
PropertyString SensitiveDetector Virtual
|
298
|
}
|
299
|
}
|
300
|
|