libtcspc.BinIncrementEvent¶
- class libtcspc.BinIncrementEvent(numeric_traits=None)[source]¶
Bases:
EventTypeEvent representing a single increment of a histogram bin.
Emitted by
MapToBinsand consumed byHistogramandClusterBinIncrements.- Parameters:
numeric_traits (NumericTraits or None) – Set of integer types parameterising the C++ event.
None(the default) usesNumericTraitsdefaults.
Notes
The corresponding C++ event has the field
bin_index(ofbin_index_type).A value is constructed by giving all fields, e.g.
BinIncrementEvent(nt).value(bin_index=3); read them back as attributes (inst.bin_index).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::bin_increment_event
The underlying C++ event type.