pub struct TofPaddleOverlaps {
pub overlaps: BTreeMap<(u8, u8), TofPaddleOverlap>,
}Expand description
Neighbouring TOF paddles of a panel overlap a little across their width (about 11 mm). If both paddles of such a pair are hit at the same time, the particle went through the overlap, which fixes its position across the paddles much better than the width of a single paddle (160 mm).
The overlaps are found once from the paddle geometry and can then be used for all events, see TofEvent::merge_overlapping_hits.
Fields§
§overlaps: BTreeMap<(u8, u8), TofPaddleOverlap>(paddle id a, paddle id b) with a < b -> their overlap
Implementations§
Source§impl TofPaddleOverlaps
impl TofPaddleOverlaps
Sourcepub const MAX_NORMAL_DISTANCE: f32 = 60.0
pub const MAX_NORMAL_DISTANCE: f32 = 60.0
Paddles further apart than this along their normal do not belong to the same panel (mm)
Sourcepub const DEFAULT_MAX_DT: f32 = 1.0
pub const DEFAULT_MAX_DT: f32 = 1.0
Default for the largest time difference of two hits in overlapping paddles to be merged (ns)
Sourcepub fn new(paddles: &HashMap<u8, TofPaddle>) -> Self
pub fn new(paddles: &HashMap<u8, TofPaddle>) -> Self
Find the overlapping pairs: parallel paddles of the same panel whose widths overlap
§Arguments:
- paddles : paddle id -> paddle, as from the database
Sourcepub fn get(&self, a: u8, b: u8) -> Option<&TofPaddleOverlap>
pub fn get(&self, a: u8, b: u8) -> Option<&TofPaddleOverlap>
The overlap of the paddles a and b (in any order), if any
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for TofPaddleOverlaps
impl Clone for TofPaddleOverlaps
Source§impl Debug for TofPaddleOverlaps
impl Debug for TofPaddleOverlaps
Auto Trait Implementations§
impl Freeze for TofPaddleOverlaps
impl RefUnwindSafe for TofPaddleOverlaps
impl Send for TofPaddleOverlaps
impl Sync for TofPaddleOverlaps
impl Unpin for TofPaddleOverlaps
impl UnsafeUnpin for TofPaddleOverlaps
impl UnwindSafe for TofPaddleOverlaps
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> SendAlias for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.