pub struct MTBSettings {Show 15 fields
pub trigger_type: TriggerType,
pub trigger_prescale: f32,
pub use_combo_trigger: bool,
pub global_trigger_type: TriggerType,
pub global_trigger_prescale: f32,
pub poisson_trigger_rate: u32,
pub gaps_trigger_use_beta: bool,
pub trace_suppression: bool,
pub mtb_timeout_sec: u64,
pub mtb_moni_interval: u64,
pub rb_int_window: u8,
pub tiu_emulation_mode: bool,
pub tiu_ignore_busy: bool,
pub tofbot_webhook: String,
pub hb_send_interval: u64,
}
Expand description
Configure the trigger
Fields§
§trigger_type: TriggerType
Select the trigger type for this run
trigger_prescale: f32
Select the prescale factor for a run. The prescale factor is between 0 (no events) and 1.0 (all events). E.g. 0.1 means allow only 10% of the events THIS DOES NOT APPLY TO THE GAPS OR POISSON TRIGGER!
use_combo_trigger: bool
Set to true if we want a combo trigger run
global_trigger_type: TriggerType
Set the global trigger type. This has to be less strict than the trigger type
global_trigger_prescale: f32
Set the gloabl trigger prescale
poisson_trigger_rate: u32
in case trigger_type = “Poisson”, set rate here
gaps_trigger_use_beta: bool
in case trigger_type = “Gaps”, set if we want to use beta
trace_suppression: bool
In case we are running the fixed rate trigger, set the desired rate here not sure Enable trace suppression on the MTB. If enabled, only those RB which hits will read out waveforms. In case it is disabled, ALL RBs will readout events ALL the time. For this, we need also the eventbuilder strategy “WaitForNBoards(40)”
mtb_timeout_sec: u64
The number of seconds we want to wait without hearing from the MTB before we attempt a reconnect
mtb_moni_interval: u64
Time in seconds between housekkeping packets
rb_int_window: u8
§tiu_emulation_mode: bool
§tiu_ignore_busy: bool
§tofbot_webhook: String
§hb_send_interval: u64
Implementations§
Source§impl MTBSettings
impl MTBSettings
pub fn new() -> Self
Sourcepub fn emit_triggerconfig(&self) -> TriggerConfig
pub fn emit_triggerconfig(&self) -> TriggerConfig
Emit a config, so that infomraiton can be transported over the wire
Sourcepub fn from_triggerconfig(&mut self, cfg: &TriggerConfig)
pub fn from_triggerconfig(&mut self, cfg: &TriggerConfig)
Change seetings accordingly to config
Trait Implementations§
Source§impl Clone for MTBSettings
impl Clone for MTBSettings
Source§fn clone(&self) -> MTBSettings
fn clone(&self) -> MTBSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MTBSettings
impl Debug for MTBSettings
Source§impl Default for MTBSettings
impl Default for MTBSettings
Source§impl<'de> Deserialize<'de> for MTBSettings
impl<'de> Deserialize<'de> for MTBSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for MTBSettings
impl Display for MTBSettings
Auto Trait Implementations§
impl Freeze for MTBSettings
impl RefUnwindSafe for MTBSettings
impl Send for MTBSettings
impl Sync for MTBSettings
impl Unpin for MTBSettings
impl UnwindSafe for MTBSettings
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,
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.