pub struct RBSettings {
pub only_perfect_events: bool,
pub calc_crc32: bool,
pub tof_op_mode: TofOperationMode,
pub trigger_poisson_rate: u32,
pub trigger_fixed_rate: u32,
pub data_type: DataType,
pub rb_buff_strategy: RBBufferStrategy,
pub rb_moni_interval: f32,
pub pb_moni_every_x: f32,
pub pa_moni_every_x: f32,
pub ltb_moni_every_x: f32,
pub drs_deadtime_instead_fpga_temp: bool,
}
Expand description
Settings for the specific clients on the RBs (liftof-rb)
Fields§
§only_perfect_events: bool
Don’t send events if they have issues. Requires EventStatus::Perfect. This can not work in the OperationMode RBHighThroughput
calc_crc32: bool
Calculate the crc32 sum for each channel and set the EventStatus flag accordingly.
tof_op_mode: TofOperationMode
tof operation mode - either “StreamAny”, “RequestReply” or “RBHighThroughput”
trigger_poisson_rate: u32
if different from 0, activate RB self trigger in poisson mode
trigger_fixed_rate: u32
if different from 0, activate RB self trigger with fixed rate setting
data_type: DataType
Either “Physics” or a calibration related data type, e.g. “VoltageCalibration”.
rb_buff_strategy: RBBufferStrategy
This allows for different strategies on how to readout the RB buffers. The following refers to the NEvent strategy. The value when the readout of the RB buffers is triggered. This number is in size of full events, which correspond to 18530 bytes. Maximum buffer size is a bit more than 3000 events. Smaller buffer allows for a more snappy reaction, but might require more CPU resources (on the board) For RBBufferStrategy::AdaptToRate(k), readout (and switch) the buffers every k seconds. The size of the buffer will be determined automatically depending on the rate.
rb_moni_interval: f32
The general moni interval. Whenever this time in seconds has passed, the RB will send a RBMoniData packet
pb_moni_every_x: f32
Powerboard monitoring. Do it every multiple of rb_moni_interval
pa_moni_every_x: f32
Preamp monitoring. Do it every multiple of rb_moni_interval
ltb_moni_every_x: f32
LTB monitoring. Do it every multiple of rb_moni_interval
drs_deadtime_instead_fpga_temp: bool
Choose between drs deadtime or fpga
Implementations§
Source§impl RBSettings
impl RBSettings
pub fn new() -> Self
pub fn from_tofrbconfig(&mut self, cfg: &TofRBConfig)
pub fn get_runconfig(&self) -> RunConfig
Trait Implementations§
Source§impl Clone for RBSettings
impl Clone for RBSettings
Source§fn clone(&self) -> RBSettings
fn clone(&self) -> RBSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RBSettings
impl Debug for RBSettings
Source§impl Default for RBSettings
impl Default for RBSettings
Source§impl<'de> Deserialize<'de> for RBSettings
impl<'de> Deserialize<'de> for RBSettings
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 RBSettings
impl Display for RBSettings
Source§impl Serialize for RBSettings
impl Serialize for RBSettings
impl Copy for RBSettings
Auto Trait Implementations§
impl Freeze for RBSettings
impl RefUnwindSafe for RBSettings
impl Send for RBSettings
impl Sync for RBSettings
impl Unpin for RBSettings
impl UnwindSafe for RBSettings
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.