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