Degrader#

class georges.manzoni.elements.Degrader(name: str = '', integrator: ~georges.manzoni.integrators.IntegratorType = <class 'georges.manzoni.integrators.MadXIntegrator'>, *params, **kwargs)[source]#

Bases: MaterialElement

Define a Degrader.

PARAMETERS#

Dictionary containing the parameters of the Degrader with their default values.

Type:

dict

Examples

>>> d1 = Degrader('D1', MATERIAL=materials.Beryllium, L=5*_ureg.cm, KINETIC_ENERGY=230*_ureg.MeV,
...               WITH_LOSSES=True)
>>> d1 
    Degrader: {'NAME': 'D1',
               'AT_ENTRY': <Quantity(0, 'meter')>,
               'AT_CENTER': <Quantity(0, 'meter')>,
               'AT_EXIT': <Quantity(0, 'meter')>,
               'MATERIAL': <class 'georges.fermi.materials.Beryllium'>,
               'KINETIC_ENERGY': <Quantity(230, 'megaelectronvolt')>,
               'L': <Quantity(5, 'centimeter')>,
               'WITH_LOSSES': True}

Command attributes

NAME=''

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

Type:

str

AT_ENTRY='0 meter'

Entrance position of the element.

Type:

Quantity

AT_CENTER='0 meter'

Entrance position of the element.

Type:

Quantity

AT_EXIT='0 meter'

Exit position of the element.

Type:

Quantity

MATERIAL='<class 'georges.fermi.materials.Vacuum'>'

Degrader material

Type:

CompoundType

KINETIC_ENERGY='0.0 megaelectronvolt'

Incoming beam energy

Type:

Quantity

L='0.0 meter'

Degrader length

Type:

Quantity

WITH_LOSSES='False'

Boolean to compute losses and dpp

Type:

bool

Default initializer for all Commands.

Attributes Summary

PARAMETERS

Parameters of the element, with their default value and their descriptions.

parameters

Methods Summary

propagate(beam_in[, beam_out, global_parameters])

param beam:

Attributes Documentation

PARAMETERS: dict = {'AT_CENTER': (<Quantity(0, 'meter')>, 'Entrance position of the element.'), 'AT_ENTRY': (<Quantity(0, 'meter')>, 'Entrance position of the element.'), 'AT_EXIT': (<Quantity(0, 'meter')>, 'Exit position of the element.'), 'KINETIC_ENERGY': (<Quantity(0.0, 'megaelectronvolt')>, 'Incoming beam energy'), 'L': (<Quantity(0.0, 'meter')>, 'Degrader length'), 'MATERIAL': (<class 'georges.fermi.materials.Vacuum'>, 'Degrader material'), 'NAME': ('', 'Primary label for the Manzoni command (default: auto-generated hash).'), 'WITH_LOSSES': (False, 'Boolean to compute losses and dpp')}#

Parameters of the element, with their default value and their descriptions.

parameters#

Methods Documentation

propagate(beam_in: ndarray, beam_out: ndarray | None = None, global_parameters: list | None = None) Tuple[ndarray, ndarray][source]#
Parameters:
  • beam

  • out

  • global_parameters

Returns: