beam_parameters_factory module
Define a function to generate a BeamParameters for TraceWin.
- class BeamParametersFactoryTraceWin(is_3d, is_multipart, beam_kwargs)[source]
Bases:
BeamParametersFactoryA class holding method to generate
BeamParameters.- Parameters:
is_3d (
bool)is_multipart (
bool)beam_kwargs (
BeamKwargs)
- factory_method(z_abs, gamma_kin, results, element_to_index)[source]
Create the
BeamParametersobject.- Parameters:
- Return type:
- _extract_phase_space_data_for_sigma(phase_space_name, results)[source]
Retrieve the data necessary to reconstruct \(\sigma\) beam matrix.
- Parameters:
- Return type:
- Returns:
sigma_00 –
(n, )array containing top-left component of the \(\sigma\) beam matrix.sigma_01 –
(n, )array containing top-right component of the \(\sigma\) beam matrix.eps_normalized –
(n, )array of normalized emittance.
- _extract_emittance_for_99percent(phase_space_name, results)[source]
Retrieve the 99% emittances.
Todo
normalized or not???
- Parameters:
- Return type:
- Returns:
99% emittance in the desired phase space.
- _abc_impl = <_abc._abc_data object at 0x7318fa4ce180>