Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.15 KB

README.md

File metadata and controls

31 lines (18 loc) · 1.15 KB

tpx3-to-root

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.

instructions

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.

author

Erik Maddox (erik.maddoxATamscins.com), Amsterdam Scientific Instruments B.V. (https://www.amscins.com/)