orbit.py_linac.lattice_modifications.apertures_additions_lib#

Functions

AddScrapersAperturesToLattice(accLattice, ...)

Function will add the rectangular Aperture node (shape=3) at the node with a particular name.

Add_bend_apertures_to_lattice(accLattice[, ...])

Function will add Aperture nodes at the bend nodes of the lattice if they have aperture parameters.

Add_drift_apertures_to_lattice(accLattice, ...)

Function will add Aperture nodes at the drift nodes of the lattice between positions pos_start and pos_end with the minimal distance of 'step' between aperture nodes.

Add_quad_apertures_to_lattice(accLattice[, ...])

Function will add Aperture nodes at the entrance and exit of quads.

Add_rfgap_apertures_to_lattice(accLattice[, ...])

Function will add Aperture nodes at the entrance and exit of RF gap.

GetLostDistributionArr(aprtNodes, bunch_lost)

Function returns the array with [aptrNode,sum_of_losses] The sum_of_losses is a number of particles or the sum of macro sizes if the particle attribute "macrosize" is defined.

Classes

AxisFieldRF_Gap(baserf_gap)

The RF gap representation that uses the RF axis field.

AxisField_and_Quad_RF_Gap(axis_field_rf_gap)

The class represents the part of the RF gap.

BaseRF_Gap([name])

The simplest RF gap representation.

Bend([name])

Bend Combined Functions TEAPOT element.

Drift([name])

Drift element.

LinacApertureNode(shape, a, b[, pos, c, d, name])

The aperture classes removes particles from bunch and places them in the lostbunch if their coordinates are not inside the aperture: The shape variable could be: 1 is circle (a is a radius) 2 is elipse (a and b are a half-axises) 3 is rectangle (a and b are a half-horizontal and vertical sizes) c and d parameters are x and y offsets of the center

OverlappingQuadsNode([name])

The class represent the set of quads with the overlapping fields.

Quad([name])

Quad Combined Function TEAPOT element.