libtcspc.ConvertSequencesToStartStop¶
- final class libtcspc.ConvertSequencesToStartStop(tick_event_type, start_event_type, stop_event_type, count)[source]¶
Bases:
NodeProcessor that converts tick sequences to gapless start-stop event pairs.
Every
count + 1tick_event_typeevents are replaced by a series ofstart_event_typeandstop_event_typeevents bracketing each tick interval. Other events pass through.- Parameters:
tick_event_type (EventType) – The tick event type (consumed). Must have an
abstimefield.start_event_type (EventType) – The emitted start event type. Must be brace-initializable and have an
abstimefield.stop_event_type (EventType) – The emitted stop event type. Must be brace-initializable and have an
abstimefield.count (int or Param[int]) – Number of intervals per sequence.
Notes
Events handled:
tick_event_type: everycount + 1ticks are replaced by a series ofstart_event_typeandstop_event_typeevents bracketing each tick interval.All other event types: pass through unchanged.
End of input: pass through; an incomplete (partial) sequence is discarded.
See also
- tcspc::convert_sequences_to_start_stop()
The underlying C++ factory function.