Data Formats¶
Contains a list of possible data formats output during acquisition. Each entry of the data section represents another element in the tuple. Example shows how to read the data through polling
UDP Packets¶
- Data Type:
MessageType.RawData
- Data:
- array(uint64):
list of UDP packets
- uint64:
global timer from Timepix at time packets were recieved
Example:
1data_type, data = timepix.poll()
2if data_type is MessageType.RawData:
3 packets, longtime = data
Decoded Pixels¶
- Data Type:
MessageType.PixelData
- Data:
- array(uint64):
pixel x position
- array(uint64):
pixel y position
- array(float):
global time of arrival in seconds
- array(uint64)):
time over threshold in nanoseconds
Example:
1data_type, data = timepix.poll()
2if data_type is MessageType.PixelData:
3 x, y, toa, tot = data
Decoded Triggers¶
- Data Type:
MessageType.TriggerData
- Data:
- array(uint64):
trigger number
- array(float):
global trigger time in seconds
Example:
1data_type, data = timepix.poll()
2if data_type is MessageType.TriggerData:
3 t_num, t_time = data
Time of Flight/Event¶
- Data Type:
MessageType.EventData
- Data:
- array(uint64):
trigger number
- array(uint64):
pixel x position
- array(uint64):
pixel y position
- array(float):
time of flight relative to its trigger in seconds
- array(uint64)):
time over threshold in nanoseconds
Example:
1data_type, data = timepix.poll()
2if data_type is MessageType.EventData:
3 trigger, x, y, tof, tot = data
Centroid Data¶
- Data Type:
MessageType.CentroidData
- Data:
- array(uint64):
trigger number
- array(float):
center of mass x position
- array(float):
center of mass y position
- array(float):
minimum cluster time of flight
- array(float):
average cluster time over threshold
- array(uint64):
maximum cluster time over threshold
- array(uint64):
cluster size
Example:
1data_type, data = timepix.poll()
2if data_type is MessageType.CentroidData:
3 trigger, x, y, tof, avg_tot, max_tot, size = data