Example software to demonstrate how to convert .tpx3 (Timepix3) format to Root tree format. The .tpx3 format is used by the TPX3CAM, LynX-T3 and CheeTah-T3 products from ASI.
install and start root (https://root.cern.ch/)
.L tpx3_to_root.cpp+
tpx3_to_root("yourfile.tpx3")
this will generate yourfile.root
Multiple files can be processed by creating a file "yourfile.txt" containing the full path and filename of each .tpx3 file to process.
tpx3_to_root("yourfile.txt") this will generate yourfile.root containing the data of the multiple .tpx3 files.
tpx3_clusters.cpp is used in the same way and will make a Root tree with cluster data and if available use the TDC timestamps to calculate the Time-of-Flight (ToF).
The data folder contains two example .tpx3 files. One with data from a quad detector (512x512) and one from TPX3cam (256x256) data with TDC events.
The variable kMaxPixel, found in tpx3_clusters.cpp, determines the maximum size of a stored cluster and can depend on the specific Timepix3 application.
Erik Maddox (erik.maddoxATamscins.com), Amsterdam Scientific Instruments B.V. (https://www.amscins.com/)