pub struct EventRetentionStats {
pub total: usize,
pub kept: usize,
pub dropped_non_finite: usize,
pub dropped_tof_range: usize,
pub dropped_spatial: usize,
}Expand description
Statistics on how many events were kept vs dropped during histogramming.
Fields§
§total: usizeTotal events read from the file.
kept: usizeEvents successfully histogrammed.
dropped_non_finite: usizeEvents dropped due to non-finite values in TOF or spatial coordinates.
For u64 TOF input (event_time_offset), the TOF channel is always
finite, so the TOF path contributes zero to this counter. Non-finite
values arise from the f64 x/y pixel coordinates (NaN or Inf from
upstream processing or detector artifacts).
dropped_tof_range: usizeEvents dropped due to TOF outside [tof_min, tof_max).
dropped_spatial: usizeEvents dropped due to pixel coordinates outside detector bounds.
Trait Implementations§
Source§impl Clone for EventRetentionStats
impl Clone for EventRetentionStats
Source§fn clone(&self) -> EventRetentionStats
fn clone(&self) -> EventRetentionStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventRetentionStats
impl RefUnwindSafe for EventRetentionStats
impl Send for EventRetentionStats
impl Sync for EventRetentionStats
impl Unpin for EventRetentionStats
impl UnsafeUnpin for EventRetentionStats
impl UnwindSafe for EventRetentionStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more