9 stable releases
| new 1.1.2 | Mar 5, 2026 |
|---|---|
| 1.1.1 | Feb 26, 2026 |
| 1.0.5 | Feb 5, 2026 |
| 1.0.4 | Feb 4, 2026 |
| 1.0.0 | Feb 3, 2026 |
#426 in Data structures
Used in 4 crates
47KB
1K
SLoC
rustpix-core: Core traits and types for pixel detector data processing.
This crate provides the foundational abstractions for hit detection, neutron processing, clustering, and centroid extraction.
rustpix-core
Core traits and types for the rustpix pixel detector data processing library.
Overview
This crate provides the foundational types and traits used across the rustpix ecosystem:
PixelHit- Represents a single pixel hit with coordinates, time-of-arrival, and time-over-thresholdCluster- A collection of pixel hits grouped togetherClusterStats- Statistical properties of a cluster (centroid, total ToT, etc.)- Traits for clustering algorithms and data processing
Usage
use rustpix_core::{PixelHit, Cluster, ClusterStats};
// Create a pixel hit
let hit = PixelHit::new(100, 200, 1000.0, 50);
// Access hit properties
println!("Position: ({}, {})", hit.x(), hit.y());
println!("Time of Arrival: {} ns", hit.toa());
println!("Time over Threshold: {}", hit.tot());
Features
serde- Enable serialization/deserialization support
License
MIT License - see LICENSE for details.
Dependencies
~140–600KB
~14K SLoC