libtcspc.PairAll

final class libtcspc.PairAll(start_channel, stop_channels, time_window, numeric_traits=None)[source]

Bases: Node

Processor that pairs each start detection with all stops within a window.

Each detection on a stop channel is paired with every buffered start detection (on start_channel) within time_window, emitting a DetectionPairEvent for each. Detection events also pass through.

Parameters:
  • start_channel (int or Param[int]) – Channel of the start detections.

  • stop_channels (Sequence[int]) – Channels of the stop detections.

  • time_window (int or Param[int]) – Maximum abstime difference for a pair (must be non-negative).

  • numeric_traits (NumericTraits or None) – Numeric traits for the events. Defaults to NumericTraits().

Notes

Events handled:

  • Detection events: paired as described above, emitting a DetectionPairEvent for each resulting pair.

  • All input events: pass through unchanged.

  • End of input: pass through; unpaired buffered start detections are discarded.

See also

tcspc::pair_all()

The underlying C++ factory function.