3#ifndef _DaphneV2BoardConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _DaphneV2BoardConf_0_dunedaq__appmodel_0_appmodel_H_
22 class DaphneV2Channel;
45 virtual
void init(
bool init_children);
63 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
138 std::lock_guard scoped_lock(
m_mutex);
154 std::lock_guard scoped_lock(
m_mutex);
171 std::lock_guard scoped_lock(
m_mutex);
187 std::lock_guard scoped_lock(
m_mutex);
201 const std::vector<uint8_t>&
204 std::lock_guard scoped_lock(
m_mutex);
220 std::lock_guard scoped_lock(
m_mutex);
236 std::lock_guard scoped_lock(
m_mutex);
251 std::lock_guard scoped_lock(
m_mutex);
267 std::lock_guard scoped_lock(
m_mutex);
282 std::lock_guard scoped_lock(
m_mutex);
298 std::lock_guard scoped_lock(
m_mutex);
313 std::lock_guard scoped_lock(
m_mutex);
329 std::lock_guard scoped_lock(
m_mutex);
344 std::lock_guard scoped_lock(
m_mutex);
360 std::lock_guard scoped_lock(
m_mutex);
375 std::lock_guard scoped_lock(
m_mutex);
391 std::lock_guard scoped_lock(
m_mutex);
406 std::lock_guard scoped_lock(
m_mutex);
422 std::lock_guard scoped_lock(
m_mutex);
437 std::lock_guard scoped_lock(
m_mutex);
463 const std::vector<const dunedaq::appmodel::DaphneV2Channel*>&
466 std::lock_guard scoped_lock(
m_mutex);
488 const std::vector<const dunedaq::appmodel::DaphneV2AFE*>&
491 std::lock_guard scoped_lock(
m_mutex);
505 set_active_afes(
const std::vector<const dunedaq::appmodel::DaphneV2AFE*>& value);
516 std::lock_guard scoped_lock(
m_mutex);
521 std::ostringstream text;
522 text <<
"relationship \"" <<
s_default_channel <<
"\" of object " <<
this <<
" is not set";
547 std::lock_guard scoped_lock(
m_mutex);
552 std::ostringstream text;
553 text <<
"relationship \"" <<
s_default_afe <<
"\" of object " <<
this <<
" is not set";
606 return obj.print_object(s);
static const std::string & __get_active_channels_str() noexcept
const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & get_active_afes() const
Get "active_afes" relationship value.
static const std::string & __get_compensator_str() noexcept
void set_default_channel(const dunedaq::appmodel::DaphneV2Channel *value)
Set "default_channel" relationship value.
static const std::string & __get_default_afe_str() noexcept
const DaphneV2AFE & get_afe(size_t id) const
uint16_t get_slot_id() const
Get "slot_id" attribute value.
const DaphneV2Channel & get_channel(size_t ch) const
std::vector< uint8_t > m_full_stream_channels
bool is_channel_used(size_t ch) const
const dunedaq::appmodel::DaphneV2Channel * m_default_channel
static const std::string & __get_default_channel_str() noexcept
void set_default_afe(const dunedaq::appmodel::DaphneV2AFE *value)
Set "default_afe" relationship value.
static const std::string & __get_detector_id_str() noexcept
static const std::string & __get_slot_id_str() noexcept
uint64_t get_self_trigger_threshold() const
Get "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0,...
uint64_t m_self_trigger_xcorr
bool is_afe_used(size_t ch) const
uint16_t get_crate_id() const
Get "crate_id" attribute value.
static const std::string & __get_tp_conf_str() noexcept
static const std::string s_bias_ctrl
static const std::string s_self_trigger_threshold
std::vector< const dunedaq::appmodel::DaphneV2AFE * > m_active_afes
const dunedaq::appmodel::DaphneV2AFE * m_default_afe
const dunedaq::appmodel::DaphneV2Channel * get_default_channel() const
Get "default_channel" relationship value.
virtual ~DaphneV2BoardConf() noexcept
static const std::string s_self_trigger_xcorr
static const std::string s_full_stream_channels
static const std::string s_slot_id
static const std::string & s_class_name
static const std::string & __get_bias_ctrl_str() noexcept
friend class conffwk::DalFactory
void set_inverter(uint64_t value)
Set "inverter" attribute value.
void set_detector_id(uint16_t value)
Set "detector_id" attribute value.
static const std::string s_tp_conf
static const std::string & __get_crate_id_str() noexcept
uint16_t get_bias_ctrl() const
Get "bias_ctrl" attribute value. V bias control.
static const std::string s_default_channel
void set_self_trigger_threshold(uint64_t value)
Set "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0,...
static const std::string s_detector_id
static const std::string s_default_afe
uint64_t m_self_trigger_threshold
static const std::string & __get_active_afes_str() noexcept
uint64_t get_self_trigger_xcorr() const
Get "self_trigger_xcorr" attribute value.
static const std::string s_compensator
DaphneV2BoardConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string s_active_afes
static const std::string & __get_self_trigger_threshold_str() noexcept
void set_tp_conf(uint32_t value)
Set "tp_conf" attribute value.
static const std::string s_active_channels
std::vector< const dunedaq::appmodel::DaphneV2Channel * > m_active_channels
static const std::string & __get_full_stream_channels_str() noexcept
friend class conffwk::DalObject
void set_full_stream_channels(const std::vector< uint8_t > &value)
Set "full_stream_channels" attribute value. list of channels to be used in full stream.
uint64_t get_inverter() const
Get "inverter" attribute value.
static const std::string & __get_inverter_str() noexcept
virtual void init(bool init_children)
const std::vector< const dunedaq::appmodel::DaphneV2Channel * > & get_active_channels() const
Get "active_channels" relationship value.
void set_active_channels(const std::vector< const dunedaq::appmodel::DaphneV2Channel * > &value)
Set "active_channels" relationship value.
uint16_t get_detector_id() const
Get "detector_id" attribute value.
const std::vector< uint8_t > & get_full_stream_channels() const
Get "full_stream_channels" attribute value. list of channels to be used in full stream.
static const std::string s_inverter
uint32_t get_tp_conf() const
Get "tp_conf" attribute value.
static const std::string s_crate_id
static const std::string & __get_self_trigger_xcorr_str() noexcept
void set_self_trigger_xcorr(uint64_t value)
Set "self_trigger_xcorr" attribute value.
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...
void set_bias_ctrl(uint16_t value)
Set "bias_ctrl" attribute value. V bias control.
void set_crate_id(uint16_t value)
Set "crate_id" attribute value.
void set_slot_id(uint16_t value)
Set "slot_id" attribute value.
uint64_t get_compensator() const
Get "compensator" attribute value.
void set_compensator(uint64_t value)
Set "compensator" attribute value.
void set_active_afes(const std::vector< const dunedaq::appmodel::DaphneV2AFE * > &value)
Set "active_afes" relationship value.
const dunedaq::appmodel::DaphneV2AFE * get_default_afe() const
Get "default_afe" relationship value.
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< constDaphneV2BoardConf * >::const_iterator DaphneV2BoardConfIterator
PDS Frame with unphysical timestamp detected with ch