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: boolDon’t send events if they have issues. Requires EventStatus::Perfect. This can not work in the OperationMode RBHighThroughput
calc_crc32: boolCalculate the crc32 sum for each channel and set the EventStatus flag accordingly.
tof_op_mode: TofOperationModetof operation mode - either “StreamAny”, “RequestReply” or “RBHighThroughput”
trigger_poisson_rate: u32if different from 0, activate RB self trigger in poisson mode
trigger_fixed_rate: u32if different from 0, activate RB self trigger with fixed rate setting
data_type: DataTypeEither “Physics” or a calibration related data type, e.g. “VoltageCalibration”.
rb_buff_strategy: RBBufferStrategyThis 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: f32The general moni interval. Whenever this time in seconds has passed, the RB will send a RBMoniData packet
pb_moni_every_x: f32Powerboard monitoring. Do it every multiple of rb_moni_interval
pa_moni_every_x: f32Preamp monitoring. Do it every multiple of rb_moni_interval
ltb_moni_every_x: f32LTB monitoring. Do it every multiple of rb_moni_interval
drs_deadtime_instead_fpga_temp: boolChoose 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> 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<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
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.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more