Skip to main content

Crate rustpix_tpx

Crate rustpix_tpx 

Source
Expand description

rustpix-tpx: TPX3 packet parser, hit types, and file processor.

This crate provides TPX3-specific data structures and parsing logic for Timepix3 pixel detector data.

§Key Components

  • Tpx3Packet - Low-level packet parser with bit field extraction
  • Tpx3Processor - Section-aware file processor

§Processing Pipeline

  1. Phase 1 (Sequential): Discover sections, propagate TDC state
  2. Phase 2 (Parallel): Process sections into hits

Modules§

ordering
Efficient time-ordering of hits using a K-way merge strategy.
section
Section-aware TPX3 file processing.

Structs§

ChipTransform
Affine transformation for chip coordinate mapping.
DetectorConfig
Detector configuration for TPX3 processing.
Tpx3Packet
TPX3 packet wrapper providing efficient field extraction.

Functions§

calculate_tof
Calculate TOF with TDC correction.
correct_timestamp_rollover
Timestamp rollover correction.