3#ifndef _DaphneV2AFE_0_dunedaq__appmodel_0_appmodel_H_
4#define _DaphneV2AFE_0_dunedaq__appmodel_0_appmodel_H_
42 virtual
void init(
bool init_children);
60 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
113 std::lock_guard scoped_lock(
m_mutex);
129 std::lock_guard scoped_lock(
m_mutex);
145 std::lock_guard scoped_lock(
m_mutex);
160 std::lock_guard scoped_lock(
m_mutex);
178 std::lock_guard scoped_lock(
m_mutex);
195 std::lock_guard scoped_lock(
m_mutex);
204 inline static const std::string
s_adc =
"adc";
205 inline static const std::string
s_pga =
"pga";
206 inline static const std::string
s_lna =
"lna";
222 std::lock_guard scoped_lock(
m_mutex);
227 std::ostringstream text;
228 text <<
"relationship \"" <<
s_adc <<
"\" of object " <<
this <<
" is not set";
253 std::lock_guard scoped_lock(
m_mutex);
258 std::ostringstream text;
259 text <<
"relationship \"" <<
s_pga <<
"\" of object " <<
this <<
" is not set";
284 std::lock_guard scoped_lock(
m_mutex);
289 std::ostringstream text;
290 text <<
"relationship \"" <<
s_lna <<
"\" of object " <<
this <<
" is not set";
312 return obj.print_object(s);
void set_attenuator(uint16_t value)
Set "attenuator" attribute value.
void set_pga(const dunedaq::appmodel::DaphneV2PGA *value)
Set "pga" relationship value.
static const std::string s_afe_id
static const std::string s_attenuator
virtual ~DaphneV2AFE() noexcept
static const std::string & __get_attenuator_str() noexcept
static const std::string & __get_v_bias_str() noexcept
const dunedaq::appmodel::DaphneV2LNA * get_lna() const
Get "lna" relationship value.
const dunedaq::appmodel::DaphneV2ADC * m_adc
void set_afe_id(uint8_t value)
Set "afe_id" attribute value. id in the [0,5) range.
static const std::string s_lna
static const std::string s_adc
void set_adc(const dunedaq::appmodel::DaphneV2ADC *value)
Set "adc" relationship value.
uint16_t get_attenuator() const
Get "attenuator" attribute value.
uint16_t get_v_bias() const
Get "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under...
const dunedaq::appmodel::DaphneV2PGA * m_pga
DaphneV2AFE(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_lna(const dunedaq::appmodel::DaphneV2LNA *value)
Set "lna" relationship value.
friend class conffwk::DalFactory
const dunedaq::appmodel::DaphneV2PGA * get_pga() const
Get "pga" relationship value.
static const std::string & __get_adc_str() noexcept
static const std::string & s_class_name
const dunedaq::appmodel::DaphneV2ADC * get_adc() const
Get "adc" relationship value.
virtual void init(bool init_children)
static const std::string & __get_afe_id_str() noexcept
static const std::string s_pga
friend class conffwk::DalObject
const dunedaq::appmodel::DaphneV2LNA * m_lna
uint8_t get_afe_id() const
Get "afe_id" attribute value. id in the [0,5) range.
static const std::string & __get_lna_str() noexcept
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_v_bias(uint16_t value)
Set "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under...
static const std::string s_v_bias
static const std::string & __get_pga_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< constDaphneV2AFE * >::const_iterator DaphneV2AFEIterator