We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51a611 commit 2ec2d08Copy full SHA for 2ec2d08
xcoll/scattering_routines/fluka/track.py
@@ -53,7 +53,15 @@ def track(coll, particles):
53
+ "FLUKA.\nIn any case, please stop and restart the FlukaEngine now.")
54
55
_drift(coll, particles, -coll.length_front)
56
+ if coll.co is not None: # FLUKA collimators are centered; need to shift
57
+ dx = coll.co[1][0]
58
+ dy = coll.co[1][1]
59
+ particles.x -= dx
60
+ particles.y -= dy
61
track_core(coll, particles)
62
+ if coll.co is not None:
63
+ particles.x += dx
64
+ particles.y += dy
65
_drift(coll, particles, -coll.length_back)
66
67
0 commit comments