libtcspc.DetectionEvent¶
- class libtcspc.DetectionEvent(numeric_traits=None)[source]¶
Bases:
EventTypeEvent representing a detected count without time correlation.
Like
TimeCorrelatedDetectionEventbut without adifftimefield; used when the device does not report a microtime (or it has been discarded). The PicoQuant T2 decoders andRemoveTimeCorrelationemit this type.- Parameters:
numeric_traits (NumericTraits or None) – Set of integer types parameterising the C++ event.
None(the default) usesNumericTraitsdefaults.
Notes
The corresponding C++ event has fields
abstimeandchannel.A value is constructed by giving all fields, e.g.
DetectionEvent(nt).value(abstime=42, channel=1); read them back as attributes (inst.abstime).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::detection_event
The underlying C++ event type.