Skip to content

Commit d5dc118

Browse files
authored
Add Q3eR field rotation (#837)
### Briefly, what does this PR introduce? The geometry of the Q3eR magnet was rotated but the field volume wasn't rotated to match. ### What kind of change does this PR introduce? - [x] Bug fix (issue #__) - [ ] New feature (issue #__) - [ ] Documentation update - [ ] Other: __ ### Please check if this PR fulfills the following: - [ ] Tests for the changes have been added - [ ] Documentation has been added / updated - [ ] Changes have been communicated to collaborators ### Does this PR introduce breaking changes? What changes might users need to make to their code? No ### Does this PR change default behavior? No
1 parent 6a027c1 commit d5dc118

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compact/far_backward/magnets.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
type="CylindricalMagnetChain"
7979
vis="RedVis">
8080
<magnet id="0" name="Magnet_Q3eR"
81-
x="(Q3eR_StartX+Q3eR_EndX)/2" y="0" z="(Q3eR_StartZ+Q3eR_EndZ)/2" theta="Q3eR_Theta"
81+
x="Q3eR_XPosition" y="0" z="Q3eR_CenterPosition" theta="Q3eR_Theta"
8282
length="Q3eR_Length" rin="Q3eR_InnerRadius" rout="4*Q3eR_InnerRadius">
8383
</magnet>
8484
</detector>
@@ -105,7 +105,8 @@
105105

106106
<field name="Magnet_Q3eR_Field" type="MultipoleMagnet">
107107
<shape type="Tube" rmax="Q3eR_InnerRadius" dz="Q3eR_Length/2"/>
108-
<position x="0" y="0" z="Q3eR_CenterPosition"/>
108+
<position x="Q3eR_XPosition" y="0" z="Q3eR_CenterPosition"/>
109+
<rotation x="0" y="Q3eR_Theta" z="0"/>
109110
<coefficient/>
110111
<coefficient coefficient="Q3eR_Gradient"/>
111112
</field>

0 commit comments

Comments
 (0)