libtcspc.PairAllBetween

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

Bases: Node

Processor that pairs starts with all stops occurring before the next start.

Like PairAll, but only stop detections occurring before the next start detection are considered.

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_between()

The underlying C++ factory function.