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: Stringread run .toml files from this directory and automotically work through them 1by1
calibration_dir: Stringdefault location for RBCalibration files
db_path: Stringdefault location for the database
runtime_sec: u64Runtime in seconds
mtb_address: StringThe UDP port to be used to get packets from the MTB
cpu_moni_interval_sec: u64The 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: boolShould TofHits be generated?
pre_run_calibration: boolRun a full RB calibration before run start?
save_cali_wf: boolShould the waveforms which go into te calibration be saved in the package?
verification_runtime_sec: u32Do 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: MTBSettingsSettings to control the MTB
event_builder_settings: TofEventBuilderSettingsSettings for the TOF event builder
analysis_engine_settings: AnalysisEngineSettingsSettings for the analysis engine
data_publisher_settings: DataPublisherSettingsConfigure data publshing and saving on local disc
cmd_dispatcher_settings: CommandDispatcherSettingsConfigure cmmand reception and sending
rb_settings: RBSettingsSettings for the individual RBs
rb_channel_mask: ChannelMaskSettingsMask individual channels (e.g. dead preamps) for the readout boards
preamp_settings: PreampSettingsPreamp configuration
ltb_settings: LTBThresholdSettingsLTB 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> 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