:mod:`ocelot.utils.section_track` ================================= .. py:module:: ocelot.utils.section_track .. autoapi-nested-parse:: Section class for s2e tracking. S.Tomin. XFEL/DESY. 2017 Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: ocelot.utils.section_track.SectionLattice ocelot.utils.section_track.SectionTrack .. py:class:: SectionLattice(sequence, tws0=None, data_dir='.', *args, **kwargs) High level class to work with SectionTrack() .. method:: initialize(self, tws0=None, *args, **kwargs) .. method:: init_sections(self, *args, **kwargs) Method initiates section and return dictionary with initialized sections :return: self.dict_sections - dictionary .. method:: calculate_twiss(self, tws0=None) Method calculates twiss parameters for whole lattice [sequence of lattices] and assigns for each section initial Twiss() - section.tws0 :param tws0: Twiss() - initial twiss parameters :return: return list of Twiss() .. method:: update_sections(self, sections, config=None, coupler_kick=False) .. method:: track_sections(self, sections, p_array, config=None, force_ext_p_array=False, coupler_kick=False, verbose=True) .. method:: load_twiss_track(self, sections) .. py:class:: SectionTrack(data_dir, *args, **kwargs) .. method:: remove_coupler_kicks(self) .. method:: apply_matching(self, bounds=None) .. method:: bc_analysis(self) .. method:: get_bc_shoulders(self) .. method:: change_bc_shoulders(self, drift) .. method:: update_bunch_compressor(self, rho) .. method:: update_cavity(self, phi, v) .. method:: init_navigator(self) .. method:: add_physics_process(self, physics_process, start, stop) .. method:: read_beam_file(self) .. method:: folder_check_create(self, filename) .. method:: save_beam_file(self, particles) .. method:: save_twiss_file(self, twiss_list) .. method:: load_twiss_file(self) .. method:: get_tws_list(self) .. method:: tracking(self, particles=None)