pub struct Neutron {
pub x: f64,
pub y: f64,
pub tof: u32,
pub tot: u16,
pub n_hits: u16,
pub chip_id: u8,
/* private fields */
}Expand description
A detected neutron event after clustering and centroid extraction.
Coordinates are in super-resolution space (default 8x pixel resolution).
Fields§
§x: f64X coordinate in super-resolution space.
y: f64Y coordinate in super-resolution space.
tof: u32Time-of-flight in 25ns units.
tot: u16Combined time-over-threshold.
n_hits: u16Number of hits in cluster.
chip_id: u8Source chip ID.
Implementations§
Source§impl Neutron
impl Neutron
Sourcepub fn new(x: f64, y: f64, tof: u32, tot: u16, n_hits: u16, chip_id: u8) -> Self
pub fn new(x: f64, y: f64, tof: u32, tot: u16, n_hits: u16, chip_id: u8) -> Self
Create a new neutron from cluster data.
Sourcepub fn pixel_coords(&self, super_res: f64) -> (f64, f64)
pub fn pixel_coords(&self, super_res: f64) -> (f64, f64)
Pixel coordinates (divide by super-resolution factor).
Sourcepub fn cluster_size_category(&self) -> ClusterSize
pub fn cluster_size_category(&self) -> ClusterSize
Cluster size category.
Trait Implementations§
impl Copy for Neutron
impl StructuralPartialEq for Neutron
Auto Trait Implementations§
impl Freeze for Neutron
impl RefUnwindSafe for Neutron
impl Send for Neutron
impl Sync for Neutron
impl Unpin for Neutron
impl UnwindSafe for Neutron
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