BPM

BPM element

Represents a BPM element Calibration errors are deviation variables (not specified on initialization) Transforms input to BPM or to beam frame (initialization flag) To represent the full transformation (beam-BPM-beam), two elements with the same name can be used (or change the direction switch)

class model.library.bpm.BPM(name: str, direction: Literal['forward', 'inverse'] = 'forward', dp: float = 0.0, output: bool = False, matrix: bool = False)[source]

BPM element

Zero lenght element, can’t be used in insertion mode

rtype:

BPM

property direction: torch.Tensor

Get direction

Parameters:

None

Return type:

str

make_matrix() tuple[torch.Tensor, torch.Tensor][source]

Generate transformation matrices (error element)

Parameters:

None

Return type:

tuple[Tensor, Tensor]

make_step() tuple[Mapping, ParametricMapping][source]

Generate integration step

Parameters:

None

Return type:

tuple[Mapping, ParametricMapping]