pub struct Measurement {
pub time_edges_us: Vec<f64>,
pub open_counts: Vec<f64>,
pub sample_counts: Vec<f64>,
pub open_live: Option<Vec<f64>>,
pub sample_live: Option<Vec<f64>>,
pub charge_ratio: f64,
pub normalization: Value,
pub background: [Value; 3],
pub isotopes: Vec<(ResonanceData, Value)>,
pub temperature_k: Value,
}Expand description
An open-beam run and a sample run recorded in the same time bins.
Fields§
§time_edges_us: Vec<f64>Time-bin edges in µs.
open_counts: Vec<f64>Raw counts of the open-beam run, one per bin.
sample_counts: Vec<f64>Raw counts of the sample run, one per bin.
open_live: Option<Vec<f64>>The fraction of the open-beam run’s neutrons arriving in each bin that
the detector records, in (0, 1]; None records every one.
sample_live: Option<Vec<f64>>The fraction of the sample run’s neutrons arriving in each bin that the
detector records, in (0, 1]; None records every one.
charge_ratio: f64c_q, the sample run’s proton charge over the open-beam run’s.
normalization: Valuea, the normalization of the sample run, positive.
background: [Value; 3]b0 (dimensionless), b1 in √eV and b2 in 1/√eV of the background
b(E) = b0 + b1/√E + b2·√E, each any real number.
isotopes: Vec<(ResonanceData, Value)>Each isotope in the sample with its areal density in atoms/barn, known or fitted, at least 0.
temperature_k: ValueThe sample’s temperature in K, within 1–5000 K.
Trait Implementations§
Source§impl Clone for Measurement
impl Clone for Measurement
Source§fn clone(&self) -> Measurement
fn clone(&self) -> Measurement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnsafeUnpin for Measurement
impl UnwindSafe for Measurement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more