Skip to content

conversion of .tpx3 data format to .root, including a pixel hit clustering algorithm and ToF calculation

Notifications You must be signed in to change notification settings

emx77/tpx3-to-root

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/)

About

conversion of .tpx3 data format to .root, including a pixel hit clustering algorithm and ToF calculation

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages