pub struct NeutronBatch {
pub x: Vec<f64>,
pub y: Vec<f64>,
pub tof: Vec<u32>,
pub tot: Vec<u16>,
pub n_hits: Vec<u16>,
pub chip_id: Vec<u8>,
}Expand description
Structure-of-arrays neutron output.
Fields§
§x: Vec<f64>X coordinates (super-resolution space).
y: Vec<f64>Y coordinates (super-resolution space).
tof: Vec<u32>Time-of-flight values (25ns units).
tot: Vec<u16>Time-over-threshold values.
n_hits: Vec<u16>Number of hits per neutron.
chip_id: Vec<u8>Chip ID per neutron.
Implementations§
Source§impl NeutronBatch
impl NeutronBatch
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a batch with pre-allocated capacity.
Sourcepub fn append(&mut self, other: &NeutronBatch)
pub fn append(&mut self, other: &NeutronBatch)
Append all neutrons from another batch.
Trait Implementations§
Source§impl Clone for NeutronBatch
impl Clone for NeutronBatch
Source§fn clone(&self) -> NeutronBatch
fn clone(&self) -> NeutronBatch
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 moreSource§impl Debug for NeutronBatch
impl Debug for NeutronBatch
Source§impl Default for NeutronBatch
impl Default for NeutronBatch
Source§fn default() -> NeutronBatch
fn default() -> NeutronBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NeutronBatch
impl RefUnwindSafe for NeutronBatch
impl Send for NeutronBatch
impl Sync for NeutronBatch
impl Unpin for NeutronBatch
impl UnwindSafe for NeutronBatch
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