Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1007 Bytes

dev_guide_xtbe_internal_record.rst

File metadata and controls

32 lines (23 loc) · 1007 Bytes

Data recording in beam elements

Xsuite beam elements can store data in dedicated data structures allocated in a specific io_buffer handled by the tracker. This feature is illustrated in the following three examples, which cover the storage of data into one or multiple data tables for a given element type and the usage of data recording for elements used within a tracker and in standalone mode.

.. literalinclude:: generated_code_snippets/internal_record.py
   :language: python

.. literalinclude:: generated_code_snippets/internal_multirecord.py
   :language: python

.. literalinclude:: generated_code_snippets/internal_record_standalone.py
   :language: python