libtcspc.DetectionEvent

class libtcspc.DetectionEvent(numeric_traits=None)[source]

Bases: EventType

Event representing a detected count without time correlation.

Like TimeCorrelatedDetectionEvent but without a difftime field; used when the device does not report a microtime (or it has been discarded). The PicoQuant T2 decoders and RemoveTimeCorrelation emit this type.

Parameters:

numeric_traits (NumericTraits or None) – Set of integer types parameterising the C++ event. None (the default) uses NumericTraits defaults.

Notes

The corresponding C++ event has fields abstime and channel.

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.