pub struct Measurement {
pub time_edges_us: Vec<f64>,
pub charge_ratio: f64,
pub normalization: Value,
pub time_background: [Value; 4],
pub room_background: Option<RoomBackground>,
pub spread: Option<Spread>,
pub environment_scatter: Option<EnvironmentScatter>,
pub filter: Option<Filter>,
pub regions: Vec<Region>,
}Expand description
An open-beam run and a sample run recorded in the same time bins, read in one or more regions of the detector.
Fields§
§time_edges_us: Vec<f64>Time-bin edges in µs.
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, the same in every
region.
time_background: [Value; 4][C, A, τ, D] of the time background
C + D·(t − t₁)/W + A·exp(−(t − t₁)/τ), the counts per µs and per pixel
at the open-beam run’s proton charge that reach the detector without
passing through the moderator pulse, at time t of the time edges’
clock, t₁ the first edge and W the edges’ span: C and A 0 or
more, τ in µs positive and, unless known, at least the first bin’s
width, since far below it only A·τ shows in the counts, D the rise
over the span, any real number.
A D not known needs τ known or within an upper bound of at most
W/2. NO_TIME_BACKGROUND gives none.
room_background: Option<RoomBackground>Counts that follow each run’s duration, not its proton charge; None
for none.
spread: Option<Spread>Counts the detector records in another region than the one they
arrive in; None for none.
environment_scatter: Option<EnvironmentScatter>Neutrons the sample environment scatters evenly over the detector;
None for none.
filter: Option<Filter>A filter the beam crosses ahead of every region in both runs; None
for none.
regions: Vec<Region>The regions, separate sets of pixels timed by one clock.
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