pub struct LiftofSettings {Show 21 fields
pub staging_dir: String,
pub calibration_dir: String,
pub db_path: String,
pub runtime_sec: u64,
pub mtb_address: String,
pub cpu_moni_interval_sec: u64,
pub rb_ignorelist_always: Vec<u8>,
pub rb_ignorelist_run: Vec<u8>,
pub run_analysis_engine: bool,
pub pre_run_calibration: bool,
pub save_cali_wf: bool,
pub verification_runtime_sec: u32,
pub mtb_settings: MTBSettings,
pub event_builder_settings: TofEventBuilderSettings,
pub analysis_engine_settings: AnalysisEngineSettings,
pub data_publisher_settings: DataPublisherSettings,
pub cmd_dispatcher_settings: CommandDispatcherSettings,
pub rb_settings: RBSettings,
pub rb_channel_mask: ChannelMaskSettings,
pub preamp_settings: PreampSettings,
pub ltb_settings: LTBThresholdSettings,
}
Fields§
§staging_dir: String
read run .toml files from this directory and automotically work through them 1by1
calibration_dir: String
default location for RBCalibration files
db_path: String
default location for the database
runtime_sec: u64
Runtime in seconds
mtb_address: String
The UDP port to be used to get packets from the MTB
cpu_moni_interval_sec: u64
The interval (in seconds) to retrive CPUMoniData from the TOF CPU
rb_ignorelist_always: Vec<u8>
In an intervall from 1-50, these RB simply do not exist or might have never existed. Always ingore these
rb_ignorelist_run: Vec<u8>
ignore these specific RB for this run
run_analysis_engine: bool
Should TofHits be generated?
pre_run_calibration: bool
Run a full RB calibration before run start?
save_cali_wf: bool
Should the waveforms which go into te calibration be saved in the package?
verification_runtime_sec: u32
Do a verification run before each run? The purpose of the verification run is to generate a “DetectorStatus” packet. If a verification run is desired, change this number to the number of seconds to do the verification run
mtb_settings: MTBSettings
Settings to control the MTB
event_builder_settings: TofEventBuilderSettings
Settings for the TOF event builder
analysis_engine_settings: AnalysisEngineSettings
Settings for the analysis engine
data_publisher_settings: DataPublisherSettings
Configure data publshing and saving on local disc
cmd_dispatcher_settings: CommandDispatcherSettings
Configure cmmand reception and sending
rb_settings: RBSettings
Settings for the individual RBs
rb_channel_mask: ChannelMaskSettings
Mask individual channels (e.g. dead preamps) for the readout boards
preamp_settings: PreampSettings
Preamp configuration
ltb_settings: LTBThresholdSettings
LTB threshold configuration
Implementations§
Source§impl LiftofSettings
impl LiftofSettings
pub fn new() -> Self
Sourcepub fn from_tofrunconfig(&mut self, cfg: &TofRunConfig)
pub fn from_tofrunconfig(&mut self, cfg: &TofRunConfig)
Change the settings according to the ones in the given config
Sourcepub fn set_by_key(&mut self, key: &str, value: String)
👎Deprecated since 0.10.0: This is a dev deadend and will be nuked!
pub fn set_by_key(&mut self, key: &str, value: String)
Change a value by giving the specific key as a string, the value then will be parsed accordingly
pub fn from_toml(filename: &str) -> Result<LiftofSettings, SerializationError>
Trait Implementations§
Source§impl Clone for LiftofSettings
impl Clone for LiftofSettings
Source§fn clone(&self) -> LiftofSettings
fn clone(&self) -> LiftofSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LiftofSettings
impl Debug for LiftofSettings
Source§impl Default for LiftofSettings
impl Default for LiftofSettings
Source§impl<'de> Deserialize<'de> for LiftofSettings
impl<'de> Deserialize<'de> for LiftofSettings
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 LiftofSettings
impl Display for LiftofSettings
Auto Trait Implementations§
impl Freeze for LiftofSettings
impl RefUnwindSafe for LiftofSettings
impl Send for LiftofSettings
impl Sync for LiftofSettings
impl Unpin for LiftofSettings
impl UnwindSafe for LiftofSettings
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.