pub struct Measurement {
pub time_edges_us: Vec<f64>,
pub charge_ratio: f64,
pub normalization: Value,
pub time_background: [Value; 3],
pub room_background: Option<RoomBackground>,
pub spread: Option<Spread>,
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; 3][C, A, τ] of the time background C + 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: C and A 0 or more, τ in µs
positive. 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.
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