3#ifndef _WIBSettings_0_dunedaq__appmodel_0_appmodel_H_
4#define _WIBSettings_0_dunedaq__appmodel_0_appmodel_H_
21 class ColdADCSettings;
23 class WIBPulserSettings;
46 virtual
void init(
bool init_children);
64 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
123 std::lock_guard scoped_lock(
m_mutex);
139 std::lock_guard scoped_lock(
m_mutex);
156 std::lock_guard scoped_lock(
m_mutex);
172 std::lock_guard scoped_lock(
m_mutex);
189 std::lock_guard scoped_lock(
m_mutex);
205 std::lock_guard scoped_lock(
m_mutex);
222 std::lock_guard scoped_lock(
m_mutex);
238 std::lock_guard scoped_lock(
m_mutex);
247 inline static const std::string
s_femb0 =
"femb0";
248 inline static const std::string
s_femb1 =
"femb1";
249 inline static const std::string
s_femb2 =
"femb2";
250 inline static const std::string
s_femb3 =
"femb3";
272 std::lock_guard scoped_lock(
m_mutex);
277 std::ostringstream text;
278 text <<
"relationship \"" <<
s_femb0 <<
"\" of object " <<
this <<
" is not set";
305 std::lock_guard scoped_lock(
m_mutex);
310 std::ostringstream text;
311 text <<
"relationship \"" <<
s_femb1 <<
"\" of object " <<
this <<
" is not set";
338 std::lock_guard scoped_lock(
m_mutex);
343 std::ostringstream text;
344 text <<
"relationship \"" <<
s_femb2 <<
"\" of object " <<
this <<
" is not set";
371 std::lock_guard scoped_lock(
m_mutex);
376 std::ostringstream text;
377 text <<
"relationship \"" <<
s_femb3 <<
"\" of object " <<
this <<
" is not set";
404 std::lock_guard scoped_lock(
m_mutex);
409 std::ostringstream text;
410 text <<
"relationship \"" <<
s_coldadc_settings <<
"\" of object " <<
this <<
" is not set";
437 std::lock_guard scoped_lock(
m_mutex);
442 std::ostringstream text;
443 text <<
"relationship \"" <<
s_wib_pulser <<
"\" of object " <<
this <<
" is not set";
466 return obj.print_object(s);
const dunedaq::appmodel::FEMBSettings * get_femb1() const
Get "femb1" relationship value. Settings for FEMB in slot 1.
void set_adc_test_pattern(bool value)
Set "adc_test_pattern" attribute value. True if the COLDADC test pattern should be enabled.
static const std::string & __get_wib_pulser_str() noexcept
bool get_pulser() const
Get "pulser" attribute value. True if the calibration pulser should be enabled.
const dunedaq::appmodel::FEMBSettings * get_femb2() const
Get "femb2" relationship value. Settings for FEMB in slot 2.
static const std::string s_pulser
static const std::string s_cold
void set_femb1(const dunedaq::appmodel::FEMBSettings *value)
Set "femb1" relationship value. Settings for FEMB in slot 1.
static const std::string s_detector_type
static const std::string s_coldadc_settings
const dunedaq::appmodel::FEMBSettings * get_femb0() const
Get "femb0" relationship value. Settings for FEMB in slot 0.
virtual ~WIBSettings() noexcept
static const std::string s_femb2
const dunedaq::appmodel::WIBPulserSettings * get_wib_pulser() const
Get "wib_pulser" relationship value. Settings for WIB pulser.
static const std::string s_femb0
static const std::string & __get_pulser_str() noexcept
void set_femb0(const dunedaq::appmodel::FEMBSettings *value)
Set "femb0" relationship value. Settings for FEMB in slot 0.
static const std::string s_femb1
static const std::string & __get_detector_type_str() noexcept
const dunedaq::appmodel::ColdADCSettings * m_coldadc_settings
uint8_t get_detector_type() const
Get "detector_type" attribute value. Detector type selector: WIB default (0), upper APA (1),...
friend class conffwk::DalFactory
static const std::string s_adc_test_pattern
const dunedaq::appmodel::FEMBSettings * m_femb0
static const std::string s_wib_pulser
void set_pulser(bool value)
Set "pulser" attribute value. True if the calibration pulser should be enabled.
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
static const std::string s_femb3
static const std::string & __get_femb1_str() noexcept
const dunedaq::appmodel::FEMBSettings * m_femb1
static const std::string & __get_coldadc_settings_str() noexcept
const dunedaq::appmodel::FEMBSettings * m_femb2
void set_wib_pulser(const dunedaq::appmodel::WIBPulserSettings *value)
Set "wib_pulser" relationship value. Settings for WIB pulser.
static const std::string & __get_femb3_str() noexcept
bool get_adc_test_pattern() const
Get "adc_test_pattern" attribute value. True if the COLDADC test pattern should be enabled.
void set_detector_type(uint8_t value)
Set "detector_type" attribute value. Detector type selector: WIB default (0), upper APA (1),...
bool get_cold() const
Get "cold" attribute value. True if the front end electronics are COLD (77k)
friend class conffwk::DalObject
WIBSettings(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_adc_test_pattern_str() noexcept
static const std::string & s_class_name
const dunedaq::appmodel::ColdADCSettings * get_coldadc_settings() const
Get "coldadc_settings" relationship value. Custom register settings for ColdADC.
const dunedaq::appmodel::WIBPulserSettings * m_wib_pulser
const dunedaq::appmodel::FEMBSettings * m_femb3
const dunedaq::appmodel::FEMBSettings * get_femb3() const
Get "femb3" relationship value. Settings for FEMB in slot 3.
void set_femb2(const dunedaq::appmodel::FEMBSettings *value)
Set "femb2" relationship value. Settings for FEMB in slot 2.
void set_coldadc_settings(const dunedaq::appmodel::ColdADCSettings *value)
Set "coldadc_settings" relationship value. Custom register settings for ColdADC.
static const std::string & __get_femb0_str() noexcept
virtual void init(bool init_children)
static const std::string & __get_femb2_str() noexcept
void set_femb3(const dunedaq::appmodel::FEMBSettings *value)
Set "femb3" relationship value. Settings for FEMB in slot 3.
void set_cold(bool value)
Set "cold" attribute value. True if the front end electronics are COLD (77k)
static const std::string & __get_cold_str() noexcept
void set_by_val(const std::string &name, T value)
Set attribute value.
The base class for any generated DAL object.
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
Generic configuration exception.
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constWIBSettings * >::const_iterator WIBSettingsIterator