pub struct EventBuilderHB {Show 21 fields
pub met_seconds: u64,
pub n_mte_received_tot: u64,
pub n_rbe_received_tot: u64,
pub n_rbe_per_te: u64,
pub n_rbe_discarded_tot: u64,
pub n_mte_skipped: u64,
pub n_timed_out: u64,
pub n_sent: u64,
pub delta_mte_rbe: u64,
pub event_cache_size: u64,
pub event_id_cache_size: u64,
pub drs_bsy_lost_hg_hits: u64,
pub rbe_wo_mte: u64,
pub mte_receiver_cbc_len: u64,
pub rbe_receiver_cbc_len: u64,
pub tp_sender_cbc_len: u64,
pub n_rbe_from_past: u64,
pub n_rbe_orphan: u64,
pub n_rbe_per_loop: u64,
pub data_mangled_ev: u64,
pub timestamp: u64,
}
Fields§
§met_seconds: u64
Mission elapsed time in seconds
n_mte_received_tot: u64
Total number of received MasterTriggerEvents (from MTB)
n_rbe_received_tot: u64
Total number of received RBEvents (from all RB)
n_rbe_per_te: u64
Average number of RBEvents per each MTEvent
n_rbe_discarded_tot: u64
Total number of discarded RBEvents (accross all boards)
n_mte_skipped: u64
TOtal number of missed MTEvents. “Skipped means” gaps in consecutive rising event ids
n_timed_out: u64
Total number of events that timed out, which means they got send before all RBEvents could be associated with this event
n_sent: u64
Total number of events passed on to the gloabl data sink thread
delta_mte_rbe: u64
?
event_cache_size: u64
The total size of the current event cache in number of events
event_id_cache_size: u64
In paralel to the event_cache, the event_id cache holds event ids. This should be perfectly aligned to the event_cache by design.
drs_bsy_lost_hg_hits: u64
The total number of hits which we lost due to the DRS being busy (this is on the Readoutboards)
rbe_wo_mte: u64
The total number of RBEvents which do not have a MasterTriggerEvent
mte_receiver_cbc_len: u64
The current length of the channel which we use to send events from the MasterTrigger thread to the event builder
rbe_receiver_cbc_len: u64
The current length of the channel whcih we use for all readoutboard threads to send their events to the event builder
tp_sender_cbc_len: u64
the current length of the channel which we use to send built events to the global data sink thread
n_rbe_from_past: u64
The total number of RBEvents which have an event id which is SMALLER than the smallest event id in the event cache.
n_rbe_orphan: u64
§n_rbe_per_loop: u64
§data_mangled_ev: u64
The totabl number of events with the “AnyDataMangling” flag set
timestamp: u64
Implementations§
Source§impl EventBuilderHB
impl EventBuilderHB
pub fn new() -> Self
Sourcepub fn get_average_rbe_te(&self) -> f64
pub fn get_average_rbe_te(&self) -> f64
The average number of RBEvents per TofEvent, tis is the average number of active ReadoutBoards per TofEvent
pub fn get_timed_out_frac(&self) -> f64
pub fn get_incoming_vs_outgoing_mte(&self) -> f64
pub fn get_nrbe_discarded_frac(&self) -> f64
pub fn get_mangled_frac(&self) -> f64
pub fn get_drs_lost_frac(&self) -> f64
pub fn pretty_print(&self) -> String
Trait Implementations§
Source§impl Clone for EventBuilderHB
impl Clone for EventBuilderHB
Source§fn clone(&self) -> EventBuilderHB
fn clone(&self) -> EventBuilderHB
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for EventBuilderHB
impl Debug for EventBuilderHB
Source§impl Default for EventBuilderHB
impl Default for EventBuilderHB
Source§impl Display for EventBuilderHB
impl Display for EventBuilderHB
Source§impl MoniData for EventBuilderHB
impl MoniData for EventBuilderHB
Source§fn get_board_id(&self) -> u8
fn get_board_id(&self) -> u8
fn get_timestamp(&self) -> u64
fn set_timestamp(&mut self, ts: u64)
Source§impl MoniSeries<EventBuilderHB> for EventBuilderHBSeries
impl MoniSeries<EventBuilderHB> for EventBuilderHBSeries
fn get_data(&self) -> &HashMap<u8, VecDeque<EventBuilderHB>>
fn get_data_mut(&mut self) -> &mut HashMap<u8, VecDeque<EventBuilderHB>>
fn get_max_size(&self) -> usize
fn get_timestamps(&self) -> &Vec<u64>
Source§fn get_var_for_board(&self, varname: &str, rb_id: &u8) -> Option<Vec<f32>>
fn get_var_for_board(&self, varname: &str, rb_id: &u8) -> Option<Vec<f32>>
fn get_last_moni(&self, board_id: u8) -> Option<T>
Source§impl PartialEq for EventBuilderHB
impl PartialEq for EventBuilderHB
Source§impl Serialization for EventBuilderHB
impl Serialization for EventBuilderHB
Source§const SIZE: usize = 156usize
const SIZE: usize = 156usize
Source§fn from_bytestream(
stream: &Vec<u8>,
pos: &mut usize,
) -> Result<Self, SerializationError>
fn from_bytestream( stream: &Vec<u8>, pos: &mut usize, ) -> Result<Self, SerializationError>
Source§fn verify_fixed(
stream: &Vec<u8>,
pos: &mut usize,
) -> Result<(), SerializationError>
fn verify_fixed( stream: &Vec<u8>, pos: &mut usize, ) -> Result<(), SerializationError>
Source§fn from_bytestream_alt(
bytestream: &Vec<u8>,
pos: &mut usize,
) -> Result<Self, SerializationError>where
Self: Sized,
fn from_bytestream_alt(
bytestream: &Vec<u8>,
pos: &mut usize,
) -> Result<Self, SerializationError>where
Self: Sized,
Source§impl TofPackable for EventBuilderHB
impl TofPackable for EventBuilderHB
const TOF_PACKET_TYPE: TofPacketType = TofPacketType::EventBuilderHB
const TOF_PACKET_TYPE_ALT: TofPacketType = TofPacketType::Unknown
Source§fn pack(&self) -> TofPacketwhere
Self: Serialization,
fn pack(&self) -> TofPacketwhere
Self: Serialization,
impl Copy for EventBuilderHB
impl StructuralPartialEq for EventBuilderHB
Auto Trait Implementations§
impl Freeze for EventBuilderHB
impl RefUnwindSafe for EventBuilderHB
impl Send for EventBuilderHB
impl Sync for EventBuilderHB
impl Unpin for EventBuilderHB
impl UnwindSafe for EventBuilderHB
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
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> DowncastSync for T
impl<T> DowncastSync 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
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.