simulation_output_factory module

Define a class to easily generate the SimulationOutput.

class SimulationOutputFactoryEnvelope1D(is_multipart, beam_calculator_id, beam_kwargs)[source]

Bases: SimulationOutputFactory

A class for creating simulation outputs for Envelope1D.

Parameters:
_is_3d: bool = False
property _transfer_matrix_factory_class: ABCMeta

Give the class of the transfer matrix factory.

property _beam_parameters_factory_class: ABCMeta

Give the class of the beam parameters factory.

create(accelerator_id, elts, single_elts_results, set_of_cavity_settings)[source]

Transform the outputs of BeamCalculator to a SimulationOutput.

Todo

Patch in transfer matrix to get proper input transfer matrix. In future, input beam will not hold transf mat in anymore.

Parameters:
Return type:

SimulationOutput

_format_w_kin(elts, single_elts_results)[source]
Parameters:
Return type:

list[float]

_format_phi_abs(elts, single_elts_results)[source]
Parameters:
Return type:

list[float]

_get_cav_params(set_of_cavity_settings, elts)[source]

Load and format a dict containing cavity parameters.

Parameters:
Return type:

CavParams

_abc_impl = <_abc._abc_data object at 0x7318fb2fc800>