pub struct BankSpectrum {
pub tof_edges_us: Vec<f64>,
pub counts: Vec<u64>,
pub pulses_total: usize,
pub pulses_kept: usize,
pub events_total: usize,
pub events_kept: usize,
pub dropped_tof_range: usize,
pub dropped_non_finite: usize,
pub pulse_time_offset_iso: Option<String>,
}Expand description
Result of load_nexus_bank_spectrum: a 1-D TOF spectrum plus pulse and
event retention statistics.
The drop counters (dropped_tof_range, dropped_non_finite) cover only
events belonging to kept pulses; events on pulses excluded by
keep_intervals are accounted for as events_total - events_kept - dropped_tof_range - dropped_non_finite and are not itemised.
Fields§
§tof_edges_us: Vec<f64>TOF bin edges in microseconds (n_bins + 1 values, linear grid).
counts: Vec<u64>Histogrammed event counts per TOF bin (n_bins values).
pulses_total: usizeTotal number of pulses recorded in the bank.
pulses_kept: usizePulses whose event_time_zero fell inside keep_intervals
(equals pulses_total when no filter was given).
events_total: usizeTotal number of events recorded in the bank.
events_kept: usizeEvents on kept pulses that landed inside the TOF window.
dropped_tof_range: usizeEvents on kept pulses dropped for TOF outside [tof_min_us, tof_max_us).
dropped_non_finite: usizeEvents on kept pulses dropped for non-finite TOF.
pulse_time_offset_iso: Option<String>ISO-8601 offset attribute of event_time_zero, when recorded —
the absolute wall-clock epoch that pulse times are relative to.
Compare with crate::runlog::RunLog::offset_iso to confirm that
interval and pulse clocks share a zero point (at SNS both are
seconds since run start and the attributes match exactly).
Trait Implementations§
Source§impl Clone for BankSpectrum
impl Clone for BankSpectrum
Source§fn clone(&self) -> BankSpectrum
fn clone(&self) -> BankSpectrum
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more