Command Line Interface¶
The command line interface is effectively the “AnalysisConfiguration” section of the YAML configuration which are given as command line arguments to the tpx3dump or tpx4dump executables.
Usage¶
To use tpx3dump, specify a command followed by appropriate options:
tpx3dump <COMMAND>
Commands¶
process: Converts a
*.tpx3file into an HDF5 file containing pixel hits and clusters.dry-run: Reads in parameters but does not process data. Useful for generating a YAML configuration template for further customization.
yaml: Processes multiple files in batch mode using a YAML configuration file.
help: Displays help information for
tpx3dumpor its subcommands.
Options¶
-h,--help: Displays help information abouttpx3dump.-V,--version: Prints the version of thetpx3dumptool.
Examples¶
Here are several usage examples demonstrating different functionalities of the tpx3dump tool:
Basic Conversion: Convert a TPX3 binary file to HDF5 using default settings:
tpx3dump process -i ./my_tpx3_data.tpx3 -o ./output.h5
Using File Lists: Process multiple files specified in a list:
tpx3dump process -i ./my_tpx3_data.tpx3,/my_tpx3_data.tpx3 -o ./output.h5
Using Glob Patterns: Process all TPX3 files in the current directory:
tpx3dump process -i ./*.tpx3 -o ./output.h5
Directory Input: Process all TPX3 files within a specified directory:
tpx3dump process -i ./result_directory -o ./output.h5
Adjusting Clustering Parameters: Customize clustering parameters during processing:
tpx3dump process -i ./data.tpx3 -o ./output.h5 --eps-t 500ns --eps-s 2 --min-cluster-size 2 --max-cluster-size 10
Raw Conversion: Perform unpacking only, without sorting or clustering:
tpx3dump process -i ./*.tpx3 -o ./output.h5 --raw-only
Sorting without Clustering: Convert binary to HDF5 with sorting but no clustering:
tpx3dump process -i ./*.tpx3 -o ./output.h5 --disable-clustering
Time Binning: Change processing parameters to collect data in specified time bins:
tpx3dump process -i ./*.tpx3 -o ./output.h5 --time-bin-interval 1ms --num-time-bins 5
This documentation provides a comprehensive guide to using the tpx3dump tool, covering all commands and options along with practical examples to help users effectively process their TPX3 data.