orbit.py_linac.lattice_modifications#

Functions

AddMEBTChopperPlatesAperturesToSNS_Lattice(...)

Function will add two Aperture nodes at the entrance and exit of MEBT chopper plates.

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.

Replace_BaseRF_Gap_and_Quads_to_Overlapping_Nodes(...)

Function will replace BaseRF_Gap nodes by AxisField_and_Quad_RF_Gap.

Replace_BaseRF_Gap_to_AxisField_Nodes(...[, ...])

Function will replace BaseRF_Gap nodes by AxisFieldRF_Gap.

Replace_Quads_to_OverlappingQuads_Nodes(...)

Function will replace Quad nodes by OverlappingQuadsNode nodes.

Classes

BendFieldNodesModification([name])

This class will apply the errors to the fields of the bends using energy shift

CoordinateDisplacementNodesModification([name])

This class applies the coordinate displacement errors to the set of nodes.

ErrorForNodesModification([name, type_in])

The base abstract class for set of separate nodes modification with two error nodes: one at the entrance and one at the exit of the lattice node.

LongitudinalDisplacementNodesModification([name])

This class shifts lattice nodes in longitudinal directions.

QuadFieldsErrorsDeployment([name, type_in])

Class will apply the errors to the fields of the quads

StraightRotationX_NodesModification([name])

This class rotate lattice nodes around x-axis directions.

StraightRotationY_NodesModification([name])

This class rotate lattice nodes around y-axis directions.

StraightRotationZ_NodesModification([name])

This class rotate lattice nodes around z-axis directions.

Modules

orbit.py_linac.lattice_modifications.apertures_additions_lib

orbit.py_linac.lattice_modifications.errors_modifications_lib

orbit.py_linac.lattice_modifications.quad_overlap_modifications_lib

orbit.py_linac.lattice_modifications.rf_models_modifications_lib

orbit.py_linac.lattice_modifications.rf_quad_overlap_modifications_lib

orbit.py_linac.lattice_modifications.sns_aperture_additions