Apertures#

The file apertures.py is for the collimator elements and contains the implementation of the selection of the particle according to the type of collimator (circular, elliptical, rectangular or phase-space).

Functions#

circular_aperture_check(b1, kargs)

The aperture is circular and defined by its radius.

elliptical_aperture_check(b1, kargs)

The aperture is elliptical and defined by the semi-axes of the elliptical aperture.

njit(*args, **kws)

Equivalent to jit(nopython=True)

phase_space_aperture_check(b1, kargs)

The phase space aperture allows the user to cut either the position or the momentum of the beam.

rectangular_aperture_check(b1, kargs)

The aperture is rectangular and defined by its horizontal and vertical half apertures.