DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appmodel::DaphneV2BoardConf Class Reference

#include <DaphneV2BoardConf.hpp>

Inheritance diagram for dunedaq::appmodel::DaphneV2BoardConf:
[legend]
Collaboration diagram for dunedaq::appmodel::DaphneV2BoardConf:
[legend]

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the DaphneV2BoardConf object.
 
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 pointers.
 
uint16_t get_bias_ctrl () const
 Get "bias_ctrl" attribute value. V bias control.
 
void set_bias_ctrl (uint16_t value)
 Set "bias_ctrl" attribute value. V bias control.
 
uint64_t get_self_trigger_threshold () const
 Get "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.
 
void set_self_trigger_threshold (uint64_t value)
 Set "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.
 
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.
 
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_self_trigger_xcorr () const
 Get "self_trigger_xcorr" attribute value.
 
void set_self_trigger_xcorr (uint64_t value)
 Set "self_trigger_xcorr" attribute value.
 
uint32_t get_tp_conf () const
 Get "tp_conf" attribute value.
 
void set_tp_conf (uint32_t value)
 Set "tp_conf" attribute value.
 
uint64_t get_compensator () const
 Get "compensator" attribute value.
 
void set_compensator (uint64_t value)
 Set "compensator" attribute value.
 
uint64_t get_inverter () const
 Get "inverter" attribute value.
 
void set_inverter (uint64_t value)
 Set "inverter" attribute value.
 
uint16_t get_slot_id () const
 Get "slot_id" attribute value.
 
void set_slot_id (uint16_t value)
 Set "slot_id" attribute value.
 
uint16_t get_crate_id () const
 Get "crate_id" attribute value.
 
void set_crate_id (uint16_t value)
 Set "crate_id" attribute value.
 
uint16_t get_detector_id () const
 Get "detector_id" attribute value.
 
void set_detector_id (uint16_t value)
 Set "detector_id" attribute value.
 
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.
 
const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & get_active_afes () const
 Get "active_afes" relationship value.
 
void set_active_afes (const std::vector< const dunedaq::appmodel::DaphneV2AFE * > &value)
 Set "active_afes" relationship value.
 
const dunedaq::appmodel::DaphneV2Channelget_default_channel () const
 Get "default_channel" relationship value.
 
void set_default_channel (const dunedaq::appmodel::DaphneV2Channel *value)
 Set "default_channel" relationship value.
 
const dunedaq::appmodel::DaphneV2AFEget_default_afe () const
 Get "default_afe" relationship value.
 
void set_default_afe (const dunedaq::appmodel::DaphneV2AFE *value)
 Set "default_afe" relationship value.
 
const DaphneV2Channelget_channel (size_t ch) const
 
const DaphneV2AFEget_afe (size_t id) const
 
bool is_channel_used (size_t ch) const
 
bool is_afe_used (size_t ch) const
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the DaphneV2BoardConf object.
 
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 pointers.
 
uint16_t get_bias_ctrl () const
 Get "bias_ctrl" attribute value. V bias control.
 
void set_bias_ctrl (uint16_t value)
 Set "bias_ctrl" attribute value. V bias control.
 
uint64_t get_self_trigger_threshold () const
 Get "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.
 
void set_self_trigger_threshold (uint64_t value)
 Set "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.
 
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.
 
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_self_trigger_xcorr () const
 Get "self_trigger_xcorr" attribute value.
 
void set_self_trigger_xcorr (uint64_t value)
 Set "self_trigger_xcorr" attribute value.
 
uint32_t get_tp_conf () const
 Get "tp_conf" attribute value.
 
void set_tp_conf (uint32_t value)
 Set "tp_conf" attribute value.
 
uint64_t get_compensator () const
 Get "compensator" attribute value.
 
void set_compensator (uint64_t value)
 Set "compensator" attribute value.
 
uint64_t get_inverter () const
 Get "inverter" attribute value.
 
void set_inverter (uint64_t value)
 Set "inverter" attribute value.
 
uint16_t get_slot_id () const
 Get "slot_id" attribute value.
 
void set_slot_id (uint16_t value)
 Set "slot_id" attribute value.
 
uint16_t get_crate_id () const
 Get "crate_id" attribute value.
 
void set_crate_id (uint16_t value)
 Set "crate_id" attribute value.
 
uint16_t get_detector_id () const
 Get "detector_id" attribute value.
 
void set_detector_id (uint16_t value)
 Set "detector_id" attribute value.
 
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.
 
const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & get_active_afes () const
 Get "active_afes" relationship value.
 
void set_active_afes (const std::vector< const dunedaq::appmodel::DaphneV2AFE * > &value)
 Set "active_afes" relationship value.
 
const dunedaq::appmodel::DaphneV2Channelget_default_channel () const
 Get "default_channel" relationship value.
 
void set_default_channel (const dunedaq::appmodel::DaphneV2Channel *value)
 Set "default_channel" relationship value.
 
const dunedaq::appmodel::DaphneV2AFEget_default_afe () const
 Get "default_afe" relationship value.
 
void set_default_afe (const dunedaq::appmodel::DaphneV2AFE *value)
 Set "default_afe" relationship value.
 
const DaphneV2Channelget_channel (size_t ch) const
 
const DaphneV2AFEget_afe (size_t id) const
 
bool is_channel_used (size_t ch) const
 
bool is_afe_used (size_t ch) const
 
- Public Member Functions inherited from dunedaq::conffwk::DalObject
const std::string & UID () const noexcept
 
const std::string & class_name () const noexcept
 
bool castable (const std::string &target) const noexcept
 
bool castable (const std::string *target) const noexcept
 
template<class TARGET >
const TARGET * cast () const noexcept
 Casts object to different class.
 
std::string full_name () const noexcept
 
const ConfigObjectconfig_object () const
 
DalRegistryregistry () const noexcept
 
Configurationconfiguration () const noexcept
 
void unread ()
 
void set (const ConfigObject &o) noexcept
 
void move (const std::string &at)
 
void rename (const std::string &new_id)
 
void p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
 print object headers
 
std::ostream & print_object (std::ostream &s) const
 print object details
 
void throw_init_ex (dunedaq::conffwk::Exception &ex)
 throw object initialisation exception (i.e.
 

Static Public Member Functions

static const std::string & __get_bias_ctrl_str () noexcept
 
static const std::string & __get_self_trigger_threshold_str () noexcept
 
static const std::string & __get_full_stream_channels_str () noexcept
 
static const std::string & __get_self_trigger_xcorr_str () noexcept
 
static const std::string & __get_tp_conf_str () noexcept
 
static const std::string & __get_compensator_str () noexcept
 
static const std::string & __get_inverter_str () noexcept
 
static const std::string & __get_slot_id_str () noexcept
 
static const std::string & __get_crate_id_str () noexcept
 
static const std::string & __get_detector_id_str () noexcept
 
static const std::string & __get_active_channels_str () noexcept
 
static const std::string & __get_active_afes_str () noexcept
 
static const std::string & __get_default_channel_str () noexcept
 
static const std::string & __get_default_afe_str () noexcept
 
static const std::string & __get_bias_ctrl_str () noexcept
 
static const std::string & __get_self_trigger_threshold_str () noexcept
 
static const std::string & __get_full_stream_channels_str () noexcept
 
static const std::string & __get_self_trigger_xcorr_str () noexcept
 
static const std::string & __get_tp_conf_str () noexcept
 
static const std::string & __get_compensator_str () noexcept
 
static const std::string & __get_inverter_str () noexcept
 
static const std::string & __get_slot_id_str () noexcept
 
static const std::string & __get_crate_id_str () noexcept
 
static const std::string & __get_detector_id_str () noexcept
 
static const std::string & __get_active_channels_str () noexcept
 
static const std::string & __get_active_afes_str () noexcept
 
static const std::string & __get_default_channel_str () noexcept
 
static const std::string & __get_default_afe_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::conffwk::DalObject
static void p_null (std::ostream &s)
 print "(null)"
 
static void p_rm (std::ostream &s)
 print "(deleted object)"
 
static void p_error (std::ostream &s, dunedaq::conffwk::Exception &ex)
 print error text
 
static void throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj)
 throw exception in generated get method (i.e.
 
static bool is_null (const DalObject *ref) noexcept
 check a pointer on DAL object is null
 

Static Public Attributes

static const std::string & s_class_name
 
static const std::string s_bias_ctrl = "bias_ctrl"
 
static const std::string s_self_trigger_threshold = "self_trigger_threshold"
 
static const std::string s_full_stream_channels = "full_stream_channels"
 
static const std::string s_self_trigger_xcorr = "self_trigger_xcorr"
 
static const std::string s_tp_conf = "tp_conf"
 
static const std::string s_compensator = "compensator"
 
static const std::string s_inverter = "inverter"
 
static const std::string s_slot_id = "slot_id"
 
static const std::string s_crate_id = "crate_id"
 
static const std::string s_detector_id = "detector_id"
 
static const std::string s_active_channels = "active_channels"
 
static const std::string s_active_afes = "active_afes"
 
static const std::string s_default_channel = "default_channel"
 
static const std::string s_default_afe = "default_afe"
 

Protected Member Functions

 DaphneV2BoardConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaphneV2BoardConf () noexcept
 
virtual void init (bool init_children)
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DaphneV2BoardConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DaphneV2BoardConf () noexcept
 
virtual void init (bool init_children)
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::conffwk::DalObject
 DalObject (DalRegistry &db, const ConfigObject &o) noexcept
 
virtual ~DalObject ()
 
void clear () noexcept
 
void check () const
 
bool is_deleted () const
 
void increment_created () noexcept
 
void increment_read () noexcept
 
void check_init () const
 Check and initialize object if necessary.
 
template<typename T >
void _set_object (const std::string &name, const T *value)
 Helper method for generated set single-value relationship methods.
 
template<typename T >
void _set_objects (const std::string &name, const std::vector< const T * > &value)
 Helper method for generated set multi-value relationship methods.
 
bool get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
 Read relationship values as DAL objects using DAL factory.
 
bool get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const
 Run algorithm and return result as DAL objects using DAL factory.
 

Private Attributes

uint16_t m_bias_ctrl
 
uint64_t m_self_trigger_threshold
 
std::vector< uint8_t > m_full_stream_channels
 
uint64_t m_self_trigger_xcorr
 
uint32_t m_tp_conf
 
uint64_t m_compensator
 
uint64_t m_inverter
 
uint16_t m_slot_id
 
uint16_t m_crate_id
 
uint16_t m_detector_id
 
std::vector< const dunedaq::appmodel::DaphneV2Channel * > m_active_channels
 
std::vector< const dunedaq::appmodel::DaphneV2AFE * > m_active_afes
 
const dunedaq::appmodel::DaphneV2Channelm_default_channel
 
const dunedaq::appmodel::DaphneV2AFEm_default_afe
 

Friends

class conffwk::Configuration
 
class conffwk::DalObject
 
class conffwk::DalFactory
 
class conffwk::DalRegistry
 

Additional Inherited Members

- Protected Attributes inherited from dunedaq::conffwk::DalObject
std::mutex m_mutex
 Used to protect changes of DAL object.
 
bool p_was_read
 is true, if the object was read
 
DalRegistryp_registry
 Configuration object.
 
ConfigObject p_obj
 Config object used by given template object.
 
std::string p_UID
 Is used for template objects (see dqm_conffwk)
 

Detailed Description

Top entry for the configuraiton of a single daphne board

Definition at line 34 of file DaphneV2BoardConf.hpp.

Constructor & Destructor Documentation

◆ DaphneV2BoardConf() [1/2]

dunedaq::appmodel::DaphneV2BoardConf::DaphneV2BoardConf ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

Definition at line 32 of file DaphneV2BoardConf.cpp.

32 :
34 m_default_channel (nullptr),
35 m_default_afe (nullptr)
36
37 {
38 ;
39 }
const dunedaq::appmodel::DaphneV2Channel * m_default_channel
const dunedaq::appmodel::DaphneV2AFE * m_default_afe
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~DaphneV2BoardConf() [1/2]

dunedaq::appmodel::DaphneV2BoardConf::~DaphneV2BoardConf ( )
protectedvirtualnoexcept

Definition at line 107 of file DaphneV2BoardConf.cpp.

108 {
109 }

◆ DaphneV2BoardConf() [2/2]

dunedaq::appmodel::DaphneV2BoardConf::DaphneV2BoardConf ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

◆ ~DaphneV2BoardConf() [2/2]

virtual dunedaq::appmodel::DaphneV2BoardConf::~DaphneV2BoardConf ( )
protectedvirtualnoexcept

Member Function Documentation

◆ __get_active_afes_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_active_afes_str ( )
inlinestaticnoexcept

Definition at line 452 of file DaphneV2BoardConf.hpp.

452{ return s_active_afes; }

◆ __get_active_afes_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_active_afes_str ( )
inlinestaticnoexcept

Definition at line 452 of file DaphneV2BoardConf.hpp.

452{ return s_active_afes; }

◆ __get_active_channels_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_active_channels_str ( )
inlinestaticnoexcept

Definition at line 451 of file DaphneV2BoardConf.hpp.

451{ return s_active_channels; }

◆ __get_active_channels_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_active_channels_str ( )
inlinestaticnoexcept

Definition at line 451 of file DaphneV2BoardConf.hpp.

451{ return s_active_channels; }

◆ __get_bias_ctrl_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_bias_ctrl_str ( )
inlinestaticnoexcept

Definition at line 116 of file DaphneV2BoardConf.hpp.

116{ return s_bias_ctrl; }

◆ __get_bias_ctrl_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_bias_ctrl_str ( )
inlinestaticnoexcept

Definition at line 116 of file DaphneV2BoardConf.hpp.

116{ return s_bias_ctrl; }

◆ __get_compensator_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_compensator_str ( )
inlinestaticnoexcept

Definition at line 121 of file DaphneV2BoardConf.hpp.

121{ return s_compensator; }

◆ __get_compensator_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_compensator_str ( )
inlinestaticnoexcept

Definition at line 121 of file DaphneV2BoardConf.hpp.

121{ return s_compensator; }

◆ __get_crate_id_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_crate_id_str ( )
inlinestaticnoexcept

Definition at line 124 of file DaphneV2BoardConf.hpp.

124{ return s_crate_id; }

◆ __get_crate_id_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_crate_id_str ( )
inlinestaticnoexcept

Definition at line 124 of file DaphneV2BoardConf.hpp.

124{ return s_crate_id; }

◆ __get_default_afe_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_default_afe_str ( )
inlinestaticnoexcept

Definition at line 454 of file DaphneV2BoardConf.hpp.

454{ return s_default_afe; }

◆ __get_default_afe_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_default_afe_str ( )
inlinestaticnoexcept

Definition at line 454 of file DaphneV2BoardConf.hpp.

454{ return s_default_afe; }

◆ __get_default_channel_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_default_channel_str ( )
inlinestaticnoexcept

Definition at line 453 of file DaphneV2BoardConf.hpp.

453{ return s_default_channel; }

◆ __get_default_channel_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_default_channel_str ( )
inlinestaticnoexcept

Definition at line 453 of file DaphneV2BoardConf.hpp.

453{ return s_default_channel; }

◆ __get_detector_id_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_detector_id_str ( )
inlinestaticnoexcept

Definition at line 125 of file DaphneV2BoardConf.hpp.

125{ return s_detector_id; }

◆ __get_detector_id_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_detector_id_str ( )
inlinestaticnoexcept

Definition at line 125 of file DaphneV2BoardConf.hpp.

125{ return s_detector_id; }

◆ __get_full_stream_channels_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_full_stream_channels_str ( )
inlinestaticnoexcept

Definition at line 118 of file DaphneV2BoardConf.hpp.

118{ return s_full_stream_channels; }
static const std::string s_full_stream_channels

◆ __get_full_stream_channels_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_full_stream_channels_str ( )
inlinestaticnoexcept

Definition at line 118 of file DaphneV2BoardConf.hpp.

118{ return s_full_stream_channels; }

◆ __get_inverter_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_inverter_str ( )
inlinestaticnoexcept

Definition at line 122 of file DaphneV2BoardConf.hpp.

122{ return s_inverter; }

◆ __get_inverter_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_inverter_str ( )
inlinestaticnoexcept

Definition at line 122 of file DaphneV2BoardConf.hpp.

122{ return s_inverter; }

◆ __get_self_trigger_threshold_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_self_trigger_threshold_str ( )
inlinestaticnoexcept

Definition at line 117 of file DaphneV2BoardConf.hpp.

117{ return s_self_trigger_threshold; }
static const std::string s_self_trigger_threshold

◆ __get_self_trigger_threshold_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_self_trigger_threshold_str ( )
inlinestaticnoexcept

Definition at line 117 of file DaphneV2BoardConf.hpp.

117{ return s_self_trigger_threshold; }

◆ __get_self_trigger_xcorr_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_self_trigger_xcorr_str ( )
inlinestaticnoexcept

Definition at line 119 of file DaphneV2BoardConf.hpp.

119{ return s_self_trigger_xcorr; }
static const std::string s_self_trigger_xcorr

◆ __get_self_trigger_xcorr_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_self_trigger_xcorr_str ( )
inlinestaticnoexcept

Definition at line 119 of file DaphneV2BoardConf.hpp.

119{ return s_self_trigger_xcorr; }

◆ __get_slot_id_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_slot_id_str ( )
inlinestaticnoexcept

Definition at line 123 of file DaphneV2BoardConf.hpp.

123{ return s_slot_id; }

◆ __get_slot_id_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_slot_id_str ( )
inlinestaticnoexcept

Definition at line 123 of file DaphneV2BoardConf.hpp.

123{ return s_slot_id; }

◆ __get_tp_conf_str() [1/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_tp_conf_str ( )
inlinestaticnoexcept

Definition at line 120 of file DaphneV2BoardConf.hpp.

120{ return s_tp_conf; }

◆ __get_tp_conf_str() [2/2]

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::__get_tp_conf_str ( )
inlinestaticnoexcept

Definition at line 120 of file DaphneV2BoardConf.hpp.

120{ return s_tp_conf; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::DaphneV2BoardConf::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Implements dunedaq::conffwk::DalObject.

Definition at line 111 of file DaphneV2BoardConf.cpp.

112 {
113 std::vector<const dunedaq::conffwk::DalObject *> vec;
114
115 if (!get(name, vec, upcast_unregistered, true))
116 throw_get_ex(name, s_class_name, this);
117
118 return vec;
119 }
static const std::string & s_class_name
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 void throw_get_ex(const std::string &what, const std::string &class_name, const DalObject *obj)
throw exception in generated get method (i.e.
Definition DalObject.cpp:82

◆ get() [2/4]

virtual std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::DaphneV2BoardConf::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Implements dunedaq::conffwk::DalObject.

◆ get() [3/4]

bool dunedaq::appmodel::DaphneV2BoardConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 121 of file DaphneV2BoardConf.cpp.

122 {
123 if (first_call)
124 {
125 std::lock_guard scoped_lock(m_mutex);
126
127 check();
128 check_init();
129
130 if (get_rel_objects(name, upcast_unregistered, vec))
131 return true;
132 }
133
134 if (first_call)
135 return get_algo_objects(name, vec);
136
137 return false;
138 }
bool get_rel_objects(const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
Read relationship values as DAL objects using DAL factory.
Definition DalObject.cpp:8
std::mutex m_mutex
Used to protect changes of DAL object.
bool get_algo_objects(const std::string &name, std::vector< const DalObject * > &objs) const
Run algorithm and return result as DAL objects using DAL factory.
Definition DalObject.cpp:25
void check_init() const
Check and initialize object if necessary.

◆ get() [4/4]

bool dunedaq::appmodel::DaphneV2BoardConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_active_afes() [1/2]

const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & dunedaq::appmodel::DaphneV2BoardConf::get_active_afes ( ) const
inline

Get "active_afes" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 489 of file DaphneV2BoardConf.hpp.

490 {
491 std::lock_guard scoped_lock(m_mutex);
492 check();
493 check_init();
494 return m_active_afes;
495 }
std::vector< const dunedaq::appmodel::DaphneV2AFE * > m_active_afes

◆ get_active_afes() [2/2]

const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & dunedaq::appmodel::DaphneV2BoardConf::get_active_afes ( ) const
inline

Get "active_afes" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 489 of file DaphneV2BoardConf.hpp.

490 {
491 std::lock_guard scoped_lock(m_mutex);
492 check();
493 check_init();
494 return m_active_afes;
495 }

◆ get_active_channels() [1/2]

const std::vector< const dunedaq::appmodel::DaphneV2Channel * > & dunedaq::appmodel::DaphneV2BoardConf::get_active_channels ( ) const
inline

Get "active_channels" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 464 of file DaphneV2BoardConf.hpp.

465 {
466 std::lock_guard scoped_lock(m_mutex);
467 check();
468 check_init();
469 return m_active_channels;
470 }
std::vector< const dunedaq::appmodel::DaphneV2Channel * > m_active_channels

◆ get_active_channels() [2/2]

const std::vector< const dunedaq::appmodel::DaphneV2Channel * > & dunedaq::appmodel::DaphneV2BoardConf::get_active_channels ( ) const
inline

Get "active_channels" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 464 of file DaphneV2BoardConf.hpp.

465 {
466 std::lock_guard scoped_lock(m_mutex);
467 check();
468 check_init();
469 return m_active_channels;
470 }

◆ get_afe() [1/2]

const DaphneV2AFE & dunedaq::appmodel::DaphneV2BoardConf::get_afe ( size_t id) const

retrieve the correct afe configuration

Definition at line 276 of file DaphneApplication.cpp.

276 {
277
278 if ( ! is_afe_used(ch) ) return *get_default_afe();
279
280 for ( auto afe_p : get_active_afes() ) {
281 if ( afe_p->get_afe_id() == ch ) {
282 return *afe_p;
283 }
284 }
285
286 throw appmodel::MissingDaphne(ERS_HERE, ch);
287}
#define ERS_HERE
const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & get_active_afes() const
Get "active_afes" relationship value.
const dunedaq::appmodel::DaphneV2AFE * get_default_afe() const
Get "default_afe" relationship value.
PDS Frame with unphysical timestamp detected with ch

◆ get_afe() [2/2]

const DaphneV2AFE & dunedaq::appmodel::DaphneV2BoardConf::get_afe ( size_t id) const

retrieve the correct afe configuration

◆ get_bias_ctrl() [1/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_bias_ctrl ( ) const
inline

Get "bias_ctrl" attribute value. V bias control.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 136 of file DaphneV2BoardConf.hpp.

137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
141 return m_bias_ctrl;
142 }

◆ get_bias_ctrl() [2/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_bias_ctrl ( ) const
inline

Get "bias_ctrl" attribute value. V bias control.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 136 of file DaphneV2BoardConf.hpp.

137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
141 return m_bias_ctrl;
142 }

◆ get_channel() [1/2]

const DaphneV2Channel & dunedaq::appmodel::DaphneV2BoardConf::get_channel ( size_t ch) const

Retrieve the correct channel configuration

Definition at line 252 of file DaphneApplication.cpp.

252 {
253
254 for ( auto ch_p : get_active_channels() ) {
255 if ( ch_p->get_channel_id() == ch ) {
256 return *ch_p;
257 }
258 }
259
260 return *get_default_channel();
261}
const dunedaq::appmodel::DaphneV2Channel * get_default_channel() const
Get "default_channel" relationship value.
const std::vector< const dunedaq::appmodel::DaphneV2Channel * > & get_active_channels() const
Get "active_channels" relationship value.

◆ get_channel() [2/2]

const DaphneV2Channel & dunedaq::appmodel::DaphneV2BoardConf::get_channel ( size_t ch) const

Retrieve the correct channel configuration

◆ get_compensator() [1/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_compensator ( ) const
inline

Get "compensator" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 296 of file DaphneV2BoardConf.hpp.

297 {
298 std::lock_guard scoped_lock(m_mutex);
299 check();
300 check_init();
301 return m_compensator;
302 }

◆ get_compensator() [2/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_compensator ( ) const
inline

Get "compensator" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 296 of file DaphneV2BoardConf.hpp.

297 {
298 std::lock_guard scoped_lock(m_mutex);
299 check();
300 check_init();
301 return m_compensator;
302 }

◆ get_crate_id() [1/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_crate_id ( ) const
inline

Get "crate_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 389 of file DaphneV2BoardConf.hpp.

390 {
391 std::lock_guard scoped_lock(m_mutex);
392 check();
393 check_init();
394 return m_crate_id;
395 }

◆ get_crate_id() [2/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_crate_id ( ) const
inline

Get "crate_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 389 of file DaphneV2BoardConf.hpp.

390 {
391 std::lock_guard scoped_lock(m_mutex);
392 check();
393 check_init();
394 return m_crate_id;
395 }

◆ get_default_afe() [1/2]

const dunedaq::appmodel::DaphneV2AFE * dunedaq::appmodel::DaphneV2BoardConf::get_default_afe ( ) const
inline

Get "default_afe" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 545 of file DaphneV2BoardConf.hpp.

546 {
547 std::lock_guard scoped_lock(m_mutex);
548 check();
549 check_init();
550 if (!m_default_afe)
551 {
552 std::ostringstream text;
553 text << "relationship \"" << s_default_afe << "\" of object " << this << " is not set";
554 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
555 }
556 return m_default_afe;
557 }
Generic configuration exception.

◆ get_default_afe() [2/2]

const dunedaq::appmodel::DaphneV2AFE * dunedaq::appmodel::DaphneV2BoardConf::get_default_afe ( ) const
inline

Get "default_afe" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 545 of file DaphneV2BoardConf.hpp.

546 {
547 std::lock_guard scoped_lock(m_mutex);
548 check();
549 check_init();
550 if (!m_default_afe)
551 {
552 std::ostringstream text;
553 text << "relationship \"" << s_default_afe << "\" of object " << this << " is not set";
554 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
555 }
556 return m_default_afe;
557 }

◆ get_default_channel() [1/2]

const dunedaq::appmodel::DaphneV2Channel * dunedaq::appmodel::DaphneV2BoardConf::get_default_channel ( ) const
inline

Get "default_channel" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 514 of file DaphneV2BoardConf.hpp.

515 {
516 std::lock_guard scoped_lock(m_mutex);
517 check();
518 check_init();
520 {
521 std::ostringstream text;
522 text << "relationship \"" << s_default_channel << "\" of object " << this << " is not set";
523 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
524 }
525 return m_default_channel;
526 }

◆ get_default_channel() [2/2]

const dunedaq::appmodel::DaphneV2Channel * dunedaq::appmodel::DaphneV2BoardConf::get_default_channel ( ) const
inline

Get "default_channel" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 514 of file DaphneV2BoardConf.hpp.

515 {
516 std::lock_guard scoped_lock(m_mutex);
517 check();
518 check_init();
520 {
521 std::ostringstream text;
522 text << "relationship \"" << s_default_channel << "\" of object " << this << " is not set";
523 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
524 }
525 return m_default_channel;
526 }

◆ get_detector_id() [1/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_detector_id ( ) const
inline

Get "detector_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 420 of file DaphneV2BoardConf.hpp.

421 {
422 std::lock_guard scoped_lock(m_mutex);
423 check();
424 check_init();
425 return m_detector_id;
426 }

◆ get_detector_id() [2/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_detector_id ( ) const
inline

Get "detector_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 420 of file DaphneV2BoardConf.hpp.

421 {
422 std::lock_guard scoped_lock(m_mutex);
423 check();
424 check_init();
425 return m_detector_id;
426 }

◆ get_full_stream_channels() [1/2]

const std::vector< uint8_t > & dunedaq::appmodel::DaphneV2BoardConf::get_full_stream_channels ( ) const
inline

Get "full_stream_channels" attribute value. list of channels to be used in full stream.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 202 of file DaphneV2BoardConf.hpp.

203 {
204 std::lock_guard scoped_lock(m_mutex);
205 check();
206 check_init();
208 }
std::vector< uint8_t > m_full_stream_channels

◆ get_full_stream_channels() [2/2]

const std::vector< uint8_t > & dunedaq::appmodel::DaphneV2BoardConf::get_full_stream_channels ( ) const
inline

Get "full_stream_channels" attribute value. list of channels to be used in full stream.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 202 of file DaphneV2BoardConf.hpp.

203 {
204 std::lock_guard scoped_lock(m_mutex);
205 check();
206 check_init();
208 }

◆ get_inverter() [1/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_inverter ( ) const
inline

Get "inverter" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 327 of file DaphneV2BoardConf.hpp.

328 {
329 std::lock_guard scoped_lock(m_mutex);
330 check();
331 check_init();
332 return m_inverter;
333 }

◆ get_inverter() [2/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_inverter ( ) const
inline

Get "inverter" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 327 of file DaphneV2BoardConf.hpp.

328 {
329 std::lock_guard scoped_lock(m_mutex);
330 check();
331 check_init();
332 return m_inverter;
333 }

◆ get_self_trigger_threshold() [1/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_self_trigger_threshold ( ) const
inline

Get "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 169 of file DaphneV2BoardConf.hpp.

170 {
171 std::lock_guard scoped_lock(m_mutex);
172 check();
173 check_init();
175 }

◆ get_self_trigger_threshold() [2/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_self_trigger_threshold ( ) const
inline

Get "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 169 of file DaphneV2BoardConf.hpp.

170 {
171 std::lock_guard scoped_lock(m_mutex);
172 check();
173 check_init();
175 }

◆ get_self_trigger_xcorr() [1/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_self_trigger_xcorr ( ) const
inline

Get "self_trigger_xcorr" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 234 of file DaphneV2BoardConf.hpp.

235 {
236 std::lock_guard scoped_lock(m_mutex);
237 check();
238 check_init();
240 }

◆ get_self_trigger_xcorr() [2/2]

uint64_t dunedaq::appmodel::DaphneV2BoardConf::get_self_trigger_xcorr ( ) const
inline

Get "self_trigger_xcorr" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 234 of file DaphneV2BoardConf.hpp.

235 {
236 std::lock_guard scoped_lock(m_mutex);
237 check();
238 check_init();
240 }

◆ get_slot_id() [1/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_slot_id ( ) const
inline

Get "slot_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 358 of file DaphneV2BoardConf.hpp.

359 {
360 std::lock_guard scoped_lock(m_mutex);
361 check();
362 check_init();
363 return m_slot_id;
364 }

◆ get_slot_id() [2/2]

uint16_t dunedaq::appmodel::DaphneV2BoardConf::get_slot_id ( ) const
inline

Get "slot_id" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 358 of file DaphneV2BoardConf.hpp.

359 {
360 std::lock_guard scoped_lock(m_mutex);
361 check();
362 check_init();
363 return m_slot_id;
364 }

◆ get_tp_conf() [1/2]

uint32_t dunedaq::appmodel::DaphneV2BoardConf::get_tp_conf ( ) const
inline

Get "tp_conf" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 265 of file DaphneV2BoardConf.hpp.

266 {
267 std::lock_guard scoped_lock(m_mutex);
268 check();
269 check_init();
270 return m_tp_conf;
271 }

◆ get_tp_conf() [2/2]

uint32_t dunedaq::appmodel::DaphneV2BoardConf::get_tp_conf ( ) const
inline

Get "tp_conf" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 265 of file DaphneV2BoardConf.hpp.

266 {
267 std::lock_guard scoped_lock(m_mutex);
268 check();
269 check_init();
270 return m_tp_conf;
271 }

◆ init() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Implements dunedaq::conffwk::DalObject.

Definition at line 80 of file DaphneV2BoardConf.cpp.

81 {
82 p_was_read = true;
84 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
85
86 try {
101 }
102 catch (dunedaq::conffwk::Exception & ex) {
103 throw_init_ex(ex);
104 }
105 }
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
void increment_read() noexcept
DalRegistry & p_registry
Configuration object.
bool p_was_read
is true, if the object was read
ConfigObject p_obj
Config object used by given template object.
const T * _ref(ConfigObject &obj, const std::string &name, bool read_children)
Get signle value of object's relation and instantiate result with it (multi-thread safe).
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

virtual void dunedaq::appmodel::DaphneV2BoardConf::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Implements dunedaq::conffwk::DalObject.

◆ is_afe_used() [1/2]

bool dunedaq::appmodel::DaphneV2BoardConf::is_afe_used ( size_t ch) const

check if an AFE is used

Definition at line 264 of file DaphneApplication.cpp.

264 {
265
266 auto begin = afe*8;
267 auto end = (afe+1)*8;
268 for ( size_t i = begin; i < end; ++i) {
269 if( is_channel_used(i) ) return true;
270 }
271
272 return false;
273}

◆ is_afe_used() [2/2]

bool dunedaq::appmodel::DaphneV2BoardConf::is_afe_used ( size_t ch) const

check if an AFE is used

◆ is_channel_used() [1/2]

bool dunedaq::appmodel::DaphneV2BoardConf::is_channel_used ( size_t ch) const

check if a channel is turned on

Definition at line 240 of file DaphneApplication.cpp.

240 {
241
242 for ( auto ch_p : get_active_channels() ) {
243 if ( ch_p->get_channel_id() == ch ) {
244 return true;
245 }
246 }
247
248 return false;
249}

◆ is_channel_used() [2/2]

bool dunedaq::appmodel::DaphneV2BoardConf::is_channel_used ( size_t ch) const

check if a channel is turned on

◆ print() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the DaphneV2BoardConf object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Implements dunedaq::conffwk::DalObject.

Definition at line 42 of file DaphneV2BoardConf.cpp.

43 {
44 check_init();
45
46 try {
47 const std::string str(indent+2, ' ');
48
49 if (print_header)
50 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
51
52
53 // print direct attributes
54
65
66
67 // print direct relationships
68
73 }
74 catch (dunedaq::conffwk::Exception & ex) {
76 }
77 }
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
Definition DalObject.cpp:65
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
Definition DalObject.cpp:59
void p_sv_rel(std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj)
print weak single-value relationship
void p_mv_rel(std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept
print weak multi-value relationship
void p_mv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print multi-value attribute
void p_sv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print single-value attribute

◆ print() [2/2]

virtual void dunedaq::appmodel::DaphneV2BoardConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the DaphneV2BoardConf object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Implements dunedaq::conffwk::DalObject.

◆ set_active_afes() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_active_afes ( const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & value)

Set "active_afes" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 145 of file DaphneV2BoardConf.cpp.

146 {
148 }
void _set_objects(const std::string &name, const std::vector< const T * > &value)
Helper method for generated set multi-value relationship methods.

◆ set_active_afes() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_active_afes ( const std::vector< const dunedaq::appmodel::DaphneV2AFE * > & value)

Set "active_afes" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_active_channels() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_active_channels ( const std::vector< const dunedaq::appmodel::DaphneV2Channel * > & value)

Set "active_channels" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 140 of file DaphneV2BoardConf.cpp.

141 {
143 }

◆ set_active_channels() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_active_channels ( const std::vector< const dunedaq::appmodel::DaphneV2Channel * > & value)

Set "active_channels" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_bias_ctrl() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_bias_ctrl ( uint16_t value)
inline

Set "bias_ctrl" attribute value. V bias control.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 152 of file DaphneV2BoardConf.hpp.

153 {
154 std::lock_guard scoped_lock(m_mutex);
155 check();
156 clear();
158 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_bias_ctrl() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_bias_ctrl ( uint16_t value)
inline

Set "bias_ctrl" attribute value. V bias control.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 152 of file DaphneV2BoardConf.hpp.

153 {
154 std::lock_guard scoped_lock(m_mutex);
155 check();
156 clear();
158 }

◆ set_compensator() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_compensator ( uint64_t value)
inline

Set "compensator" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 311 of file DaphneV2BoardConf.hpp.

312 {
313 std::lock_guard scoped_lock(m_mutex);
314 check();
315 clear();
317 }

◆ set_compensator() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_compensator ( uint64_t value)
inline

Set "compensator" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 311 of file DaphneV2BoardConf.hpp.

312 {
313 std::lock_guard scoped_lock(m_mutex);
314 check();
315 clear();
317 }

◆ set_crate_id() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_crate_id ( uint16_t value)
inline

Set "crate_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 404 of file DaphneV2BoardConf.hpp.

405 {
406 std::lock_guard scoped_lock(m_mutex);
407 check();
408 clear();
410 }

◆ set_crate_id() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_crate_id ( uint16_t value)
inline

Set "crate_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 404 of file DaphneV2BoardConf.hpp.

405 {
406 std::lock_guard scoped_lock(m_mutex);
407 check();
408 clear();
410 }

◆ set_default_afe() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_default_afe ( const dunedaq::appmodel::DaphneV2AFE * value)

Set "default_afe" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 155 of file DaphneV2BoardConf.cpp.

156 {
158 }
void _set_object(const std::string &name, const T *value)
Helper method for generated set single-value relationship methods.

◆ set_default_afe() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_default_afe ( const dunedaq::appmodel::DaphneV2AFE * value)

Set "default_afe" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_default_channel() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_default_channel ( const dunedaq::appmodel::DaphneV2Channel * value)

Set "default_channel" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 150 of file DaphneV2BoardConf.cpp.

151 {
153 }

◆ set_default_channel() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_default_channel ( const dunedaq::appmodel::DaphneV2Channel * value)

Set "default_channel" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_detector_id() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_detector_id ( uint16_t value)
inline

Set "detector_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 435 of file DaphneV2BoardConf.hpp.

436 {
437 std::lock_guard scoped_lock(m_mutex);
438 check();
439 clear();
441 }

◆ set_detector_id() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_detector_id ( uint16_t value)
inline

Set "detector_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 435 of file DaphneV2BoardConf.hpp.

436 {
437 std::lock_guard scoped_lock(m_mutex);
438 check();
439 clear();
441 }

◆ set_full_stream_channels() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_full_stream_channels ( const std::vector< uint8_t > & value)
inline

Set "full_stream_channels" attribute value. list of channels to be used in full stream.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 218 of file DaphneV2BoardConf.hpp.

219 {
220 std::lock_guard scoped_lock(m_mutex);
221 check();
222 clear();
224 }

◆ set_full_stream_channels() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_full_stream_channels ( const std::vector< uint8_t > & value)
inline

Set "full_stream_channels" attribute value. list of channels to be used in full stream.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 218 of file DaphneV2BoardConf.hpp.

219 {
220 std::lock_guard scoped_lock(m_mutex);
221 check();
222 clear();
224 }

◆ set_inverter() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_inverter ( uint64_t value)
inline

Set "inverter" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 342 of file DaphneV2BoardConf.hpp.

343 {
344 std::lock_guard scoped_lock(m_mutex);
345 check();
346 clear();
348 }

◆ set_inverter() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_inverter ( uint64_t value)
inline

Set "inverter" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 342 of file DaphneV2BoardConf.hpp.

343 {
344 std::lock_guard scoped_lock(m_mutex);
345 check();
346 clear();
348 }

◆ set_self_trigger_threshold() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_self_trigger_threshold ( uint64_t value)
inline

Set "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 185 of file DaphneV2BoardConf.hpp.

186 {
187 std::lock_guard scoped_lock(m_mutex);
188 check();
189 clear();
191 }

◆ set_self_trigger_threshold() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_self_trigger_threshold ( uint64_t value)
inline

Set "self_trigger_threshold" attribute value. Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the "full_stream_channels" list.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 185 of file DaphneV2BoardConf.hpp.

186 {
187 std::lock_guard scoped_lock(m_mutex);
188 check();
189 clear();
191 }

◆ set_self_trigger_xcorr() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_self_trigger_xcorr ( uint64_t value)
inline

Set "self_trigger_xcorr" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 249 of file DaphneV2BoardConf.hpp.

250 {
251 std::lock_guard scoped_lock(m_mutex);
252 check();
253 clear();
255 }

◆ set_self_trigger_xcorr() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_self_trigger_xcorr ( uint64_t value)
inline

Set "self_trigger_xcorr" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 249 of file DaphneV2BoardConf.hpp.

250 {
251 std::lock_guard scoped_lock(m_mutex);
252 check();
253 clear();
255 }

◆ set_slot_id() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_slot_id ( uint16_t value)
inline

Set "slot_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 373 of file DaphneV2BoardConf.hpp.

374 {
375 std::lock_guard scoped_lock(m_mutex);
376 check();
377 clear();
378 p_obj.set_by_val(s_slot_id, value);
379 }

◆ set_slot_id() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_slot_id ( uint16_t value)
inline

Set "slot_id" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 373 of file DaphneV2BoardConf.hpp.

374 {
375 std::lock_guard scoped_lock(m_mutex);
376 check();
377 clear();
378 p_obj.set_by_val(s_slot_id, value);
379 }

◆ set_tp_conf() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_tp_conf ( uint32_t value)
inline

Set "tp_conf" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 280 of file DaphneV2BoardConf.hpp.

281 {
282 std::lock_guard scoped_lock(m_mutex);
283 check();
284 clear();
285 p_obj.set_by_val(s_tp_conf, value);
286 }

◆ set_tp_conf() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_tp_conf ( uint32_t value)
inline

Set "tp_conf" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 280 of file DaphneV2BoardConf.hpp.

281 {
282 std::lock_guard scoped_lock(m_mutex);
283 check();
284 clear();
285 p_obj.set_by_val(s_tp_conf, value);
286 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 36 of file DaphneV2BoardConf.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 38 of file DaphneV2BoardConf.hpp.

◆ conffwk::DalObject

Definition at line 37 of file DaphneV2BoardConf.hpp.

◆ conffwk::DalRegistry

Definition at line 39 of file DaphneV2BoardConf.hpp.

Member Data Documentation

◆ m_active_afes

std::vector< const dunedaq::appmodel::DaphneV2AFE * > dunedaq::appmodel::DaphneV2BoardConf::m_active_afes
private

Definition at line 96 of file DaphneV2BoardConf.hpp.

◆ m_active_channels

std::vector< const dunedaq::appmodel::DaphneV2Channel * > dunedaq::appmodel::DaphneV2BoardConf::m_active_channels
private

Definition at line 95 of file DaphneV2BoardConf.hpp.

◆ m_bias_ctrl

uint16_t dunedaq::appmodel::DaphneV2BoardConf::m_bias_ctrl
private

Definition at line 85 of file DaphneV2BoardConf.hpp.

◆ m_compensator

uint64_t dunedaq::appmodel::DaphneV2BoardConf::m_compensator
private

Definition at line 90 of file DaphneV2BoardConf.hpp.

◆ m_crate_id

uint16_t dunedaq::appmodel::DaphneV2BoardConf::m_crate_id
private

Definition at line 93 of file DaphneV2BoardConf.hpp.

◆ m_default_afe

const dunedaq::appmodel::DaphneV2AFE * dunedaq::appmodel::DaphneV2BoardConf::m_default_afe
private

Definition at line 98 of file DaphneV2BoardConf.hpp.

◆ m_default_channel

const dunedaq::appmodel::DaphneV2Channel * dunedaq::appmodel::DaphneV2BoardConf::m_default_channel
private

Definition at line 97 of file DaphneV2BoardConf.hpp.

◆ m_detector_id

uint16_t dunedaq::appmodel::DaphneV2BoardConf::m_detector_id
private

Definition at line 94 of file DaphneV2BoardConf.hpp.

◆ m_full_stream_channels

std::vector< uint8_t > dunedaq::appmodel::DaphneV2BoardConf::m_full_stream_channels
private

Definition at line 87 of file DaphneV2BoardConf.hpp.

◆ m_inverter

uint64_t dunedaq::appmodel::DaphneV2BoardConf::m_inverter
private

Definition at line 91 of file DaphneV2BoardConf.hpp.

◆ m_self_trigger_threshold

uint64_t dunedaq::appmodel::DaphneV2BoardConf::m_self_trigger_threshold
private

Definition at line 86 of file DaphneV2BoardConf.hpp.

◆ m_self_trigger_xcorr

uint64_t dunedaq::appmodel::DaphneV2BoardConf::m_self_trigger_xcorr
private

Definition at line 88 of file DaphneV2BoardConf.hpp.

◆ m_slot_id

uint16_t dunedaq::appmodel::DaphneV2BoardConf::m_slot_id
private

Definition at line 92 of file DaphneV2BoardConf.hpp.

◆ m_tp_conf

uint32_t dunedaq::appmodel::DaphneV2BoardConf::m_tp_conf
private

Definition at line 89 of file DaphneV2BoardConf.hpp.

◆ s_active_afes

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_active_afes = "active_afes"
inlinestatic

Definition at line 447 of file DaphneV2BoardConf.hpp.

◆ s_active_channels

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_active_channels = "active_channels"
inlinestatic

Definition at line 446 of file DaphneV2BoardConf.hpp.

◆ s_bias_ctrl

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_bias_ctrl = "bias_ctrl"
inlinestatic

Definition at line 105 of file DaphneV2BoardConf.hpp.

◆ s_class_name

static const std::string & dunedaq::appmodel::DaphneV2BoardConf::s_class_name
static

The name of the configuration class.

Definition at line 51 of file DaphneV2BoardConf.hpp.

◆ s_compensator

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_compensator = "compensator"
inlinestatic

Definition at line 110 of file DaphneV2BoardConf.hpp.

◆ s_crate_id

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_crate_id = "crate_id"
inlinestatic

Definition at line 113 of file DaphneV2BoardConf.hpp.

◆ s_default_afe

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_default_afe = "default_afe"
inlinestatic

Definition at line 449 of file DaphneV2BoardConf.hpp.

◆ s_default_channel

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_default_channel = "default_channel"
inlinestatic

Definition at line 448 of file DaphneV2BoardConf.hpp.

◆ s_detector_id

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_detector_id = "detector_id"
inlinestatic

Definition at line 114 of file DaphneV2BoardConf.hpp.

◆ s_full_stream_channels

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_full_stream_channels = "full_stream_channels"
inlinestatic

Definition at line 107 of file DaphneV2BoardConf.hpp.

◆ s_inverter

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_inverter = "inverter"
inlinestatic

Definition at line 111 of file DaphneV2BoardConf.hpp.

◆ s_self_trigger_threshold

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_self_trigger_threshold = "self_trigger_threshold"
inlinestatic

Definition at line 106 of file DaphneV2BoardConf.hpp.

◆ s_self_trigger_xcorr

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_self_trigger_xcorr = "self_trigger_xcorr"
inlinestatic

Definition at line 108 of file DaphneV2BoardConf.hpp.

◆ s_slot_id

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_slot_id = "slot_id"
inlinestatic

Definition at line 112 of file DaphneV2BoardConf.hpp.

◆ s_tp_conf

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_tp_conf = "tp_conf"
inlinestatic

Definition at line 109 of file DaphneV2BoardConf.hpp.


The documentation for this class was generated from the following files: