libtcspc.ClusterBinIncrements¶
- final class libtcspc.ClusterBinIncrements(start_event_type, stop_event_type, numeric_traits=None)[source]¶
Bases:
NodeProcessor that collects bin increments between start and stop events into clusters.
Bin increments received while within a cluster (after a
start_event_typeand before astop_event_type) are collected; each completed cluster is emitted as aBinIncrementClusterEvent.- Parameters:
start_event_type (EventType) – Event type that starts a cluster.
stop_event_type (EventType) – Event type that ends a cluster.
numeric_traits (NumericTraits or None) – Numeric traits for the events. Defaults to
NumericTraits().
Notes
Events handled:
start_event_type: begin a new cluster (consumed).stop_event_type: emit the current cluster as aBinIncrementClusterEvent(consumed).BinIncrementEvent: recorded into the current cluster (consumed).All other event types: pass through unchanged.
End of input: pass through.
See also
- tcspc::cluster_bin_increments()
The underlying C++ factory function.