libtcspc.SwabianTagEvent

class libtcspc.SwabianTagEvent[source]

Bases: EventType

Raw 16-byte tag record from a Swabian Time Tagger.

Has the same memory layout as the Tag struct in the Swabian Time Tagger C++ API and the format used by the Python CustomMeasurement class. Typically appears upstream of DecodeSwabianTags.

Notes

The corresponding C++ event has a single field std::array<std::byte, 16> bytes holding the raw record. Construct an instance from raw bytes (a 16-byte SwabianTagEvent().value(bytes=...)) and read them back as inst.bytes (a 16-byte bytes object).

Constructing and inspecting individual event values from Python is intended for debugging and learning only and is extremely slow; production graphs process events in compiled C++ and exchange bulk data via buckets.

See also

tcspc::swabian_tag_event

The underlying C++ event type.