Ymy

class zgoubidoo.commands.commands.Ymy(label1: str = '', label2: str = '', *params, **kwargs)[source]

Bases: zgoubidoo.commands.commands.Command, zgoubidoo.commands.patchable.Patchable

Reverse signs of Y and Z reference axes, equivalent to a 180 degree rotation around the X axis.

This is particularly useful for example in combination with a Dipole that needs to be flipped so that the geometry matches the negative field value.

..note: YMY reverses the signs of all transverse variables (Y, T, Z, P); despite its name.

TODO

Command attributes

LABEL1=''

Primary label for the Zgoubi command (default: auto-generated hash).

Type

str

LABEL2=''

Secondary label for the Zgoubi command.

Type

str

Default initializer for all Commands.

Attributes Summary

KEYWORD

Keyword of the command used for the Zgoubi input data.

PARAMETERS

entry_patched

Returns:

Attributes Documentation

KEYWORD: str = 'YMY'

Keyword of the command used for the Zgoubi input data.

PARAMETERS: dict = {'LABEL1': ('', 'Primary label for the Zgoubi command (default: auto-generated hash).'), 'LABEL2': ('', 'Secondary label for the Zgoubi command.')}
entry_patched

Returns: