Patchable¶
-
class
zgoubidoo.commands.patchable.
Patchable
[source]¶ Bases:
object
Patchable elements are Zgoubi commands that affect the placement of the reference frame.
A default implementation of the placement methods is provided for subclasses. It only places the entrance frame at the location of the placement frame and all other frames are set to the entrance frame (‘point-like’ element).
Initializes a un-patched patchable element.
Attributes Summary
Center frame.
Entrance frame.
Entrance patched frame.
Returns:
Exit frame.
Exit patched frame.
Returns:
Length of the element.
Returns:
Returns:
Methods Summary
adjust_tracks_variables
(tracks)Clears all the frames.
place
(frame)Place the element with a reference frame.
Attributes Documentation
-
center
¶ Center frame.
- Returns
the frame of the center of the element.
-
entry
¶ Entrance frame.
- Returns
the frame of the entrance of the element.
-
entry_patched
¶ Entrance patched frame.
- Returns
the frame of the entrance of the element with the patch applied.
-
entry_s
¶ Returns:
-
exit
¶ Exit frame.
- Returns
the frame of the exit of the element.
-
exit_patched
¶ Exit patched frame.
- Returns
the frame of the exit of the element with the patch applied.
-
exit_s
¶ Returns:
-
frenet_orientation
¶
-
length
¶ Length of the element.
- Returns
the length of the element with units.
-
optical_length
¶ Returns:
-
reference_trajectory
¶ Returns:
Methods Documentation
-
place
(frame: georges_core.frame.Frame)[source]¶ Place the element with a reference frame.
All the frames of the element are reset and the entrance frame is then placed with respect to the reference frame.
- Parameters
frame – the reference frame for the placement of the entrance frame.
-