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.
 
const std::string & get_address () const
 Get "address" attribute value. ip address of the board.
 
void set_address (const std::string &value)
 Set "address" attribute value. ip address of the board.
 
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.
 
const std::string & get_address () const
 Get "address" attribute value. ip address of the board.
 
void set_address (const std::string &value)
 Set "address" attribute value. ip address of the board.
 
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_address_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_address_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_address = "address"
 
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
 
std::string m_address
 
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 109 of file DaphneV2BoardConf.cpp.

110 {
111 }

◆ 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 488 of file DaphneV2BoardConf.hpp.

488{ 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 488 of file DaphneV2BoardConf.hpp.

488{ 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 487 of file DaphneV2BoardConf.hpp.

487{ 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 487 of file DaphneV2BoardConf.hpp.

487{ return s_active_channels; }

◆ __get_address_str() [1/2]

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

Definition at line 125 of file DaphneV2BoardConf.hpp.

125{ return s_address; }

◆ __get_address_str() [2/2]

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

Definition at line 125 of file DaphneV2BoardConf.hpp.

125{ return s_address; }

◆ __get_bias_ctrl_str() [1/2]

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

Definition at line 118 of file DaphneV2BoardConf.hpp.

118{ 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 118 of file DaphneV2BoardConf.hpp.

118{ return s_bias_ctrl; }

◆ __get_compensator_str() [1/2]

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

Definition at line 123 of file DaphneV2BoardConf.hpp.

123{ return s_compensator; }

◆ __get_compensator_str() [2/2]

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

Definition at line 123 of file DaphneV2BoardConf.hpp.

123{ return s_compensator; }

◆ __get_crate_id_str() [1/2]

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

Definition at line 127 of file DaphneV2BoardConf.hpp.

127{ 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 127 of file DaphneV2BoardConf.hpp.

127{ 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 490 of file DaphneV2BoardConf.hpp.

490{ 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 490 of file DaphneV2BoardConf.hpp.

490{ 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 489 of file DaphneV2BoardConf.hpp.

489{ 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 489 of file DaphneV2BoardConf.hpp.

489{ 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 128 of file DaphneV2BoardConf.hpp.

128{ 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 128 of file DaphneV2BoardConf.hpp.

128{ 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 120 of file DaphneV2BoardConf.hpp.

120{ 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 120 of file DaphneV2BoardConf.hpp.

120{ return s_full_stream_channels; }

◆ __get_inverter_str() [1/2]

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

Definition at line 124 of file DaphneV2BoardConf.hpp.

124{ return s_inverter; }

◆ __get_inverter_str() [2/2]

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

Definition at line 124 of file DaphneV2BoardConf.hpp.

124{ 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 119 of file DaphneV2BoardConf.hpp.

119{ 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 119 of file DaphneV2BoardConf.hpp.

119{ 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 121 of file DaphneV2BoardConf.hpp.

121{ 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 121 of file DaphneV2BoardConf.hpp.

121{ 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 126 of file DaphneV2BoardConf.hpp.

126{ 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 126 of file DaphneV2BoardConf.hpp.

126{ 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 122 of file DaphneV2BoardConf.hpp.

122{ 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 122 of file DaphneV2BoardConf.hpp.

122{ 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 113 of file DaphneV2BoardConf.cpp.

114 {
115 std::vector<const dunedaq::conffwk::DalObject *> vec;
116
117 if (!get(name, vec, upcast_unregistered, true))
118 throw_get_ex(name, s_class_name, this);
119
120 return vec;
121 }
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 123 of file DaphneV2BoardConf.cpp.

124 {
125 if (first_call)
126 {
127 std::lock_guard scoped_lock(m_mutex);
128
129 check();
130 check_init();
131
132 if (get_rel_objects(name, upcast_unregistered, vec))
133 return true;
134 }
135
136 if (first_call)
137 return get_algo_objects(name, vec);
138
139 return false;
140 }
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 525 of file DaphneV2BoardConf.hpp.

526 {
527 std::lock_guard scoped_lock(m_mutex);
528 check();
529 check_init();
530 return m_active_afes;
531 }
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 525 of file DaphneV2BoardConf.hpp.

526 {
527 std::lock_guard scoped_lock(m_mutex);
528 check();
529 check_init();
530 return m_active_afes;
531 }

◆ 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 500 of file DaphneV2BoardConf.hpp.

501 {
502 std::lock_guard scoped_lock(m_mutex);
503 check();
504 check_init();
505 return m_active_channels;
506 }
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 500 of file DaphneV2BoardConf.hpp.

501 {
502 std::lock_guard scoped_lock(m_mutex);
503 check();
504 check_init();
505 return m_active_channels;
506 }

◆ get_address() [1/2]

const std::string & dunedaq::appmodel::DaphneV2BoardConf::get_address ( ) const
inline

Get "address" attribute value. ip address of the board.

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

Definition at line 362 of file DaphneV2BoardConf.hpp.

363 {
364 std::lock_guard scoped_lock(m_mutex);
365 check();
366 check_init();
367 return m_address;
368 }

◆ get_address() [2/2]

const std::string & dunedaq::appmodel::DaphneV2BoardConf::get_address ( ) const
inline

Get "address" attribute value. ip address of the board.

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

Definition at line 362 of file DaphneV2BoardConf.hpp.

363 {
364 std::lock_guard scoped_lock(m_mutex);
365 check();
366 check_init();
367 return m_address;
368 }

◆ get_afe() [1/2]

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

retrieve the correct afe configuration

Definition at line 262 of file DaphneApplication.cpp.

262 {
263
264 if ( ! is_afe_used(ch) ) return *get_default_afe();
265
266 for ( auto afe_p : get_active_afes() ) {
267 if ( afe_p->get_afe_id() == ch ) {
268 return *afe_p;
269 }
270 }
271
272 throw appmodel::MissingAFE(ERS_HERE, UID(), ch);
273}
#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.
const std::string & UID() const noexcept

◆ 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 139 of file DaphneV2BoardConf.hpp.

140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 check_init();
144 return m_bias_ctrl;
145 }

◆ 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 139 of file DaphneV2BoardConf.hpp.

140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 check_init();
144 return m_bias_ctrl;
145 }

◆ get_channel() [1/2]

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

Retrieve the correct channel configuration

Definition at line 238 of file DaphneApplication.cpp.

238 {
239
240 for ( auto ch_p : get_active_channels() ) {
241 if ( ch_p->get_channel_id() == ch ) {
242 return *ch_p;
243 }
244 }
245
246 return *get_default_channel();
247}
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 299 of file DaphneV2BoardConf.hpp.

300 {
301 std::lock_guard scoped_lock(m_mutex);
302 check();
303 check_init();
304 return m_compensator;
305 }

◆ 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 299 of file DaphneV2BoardConf.hpp.

300 {
301 std::lock_guard scoped_lock(m_mutex);
302 check();
303 check_init();
304 return m_compensator;
305 }

◆ 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 425 of file DaphneV2BoardConf.hpp.

426 {
427 std::lock_guard scoped_lock(m_mutex);
428 check();
429 check_init();
430 return m_crate_id;
431 }

◆ 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 425 of file DaphneV2BoardConf.hpp.

426 {
427 std::lock_guard scoped_lock(m_mutex);
428 check();
429 check_init();
430 return m_crate_id;
431 }

◆ 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 581 of file DaphneV2BoardConf.hpp.

582 {
583 std::lock_guard scoped_lock(m_mutex);
584 check();
585 check_init();
586 if (!m_default_afe)
587 {
588 std::ostringstream text;
589 text << "relationship \"" << s_default_afe << "\" of object " << this << " is not set";
590 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
591 }
592 return m_default_afe;
593 }
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 581 of file DaphneV2BoardConf.hpp.

582 {
583 std::lock_guard scoped_lock(m_mutex);
584 check();
585 check_init();
586 if (!m_default_afe)
587 {
588 std::ostringstream text;
589 text << "relationship \"" << s_default_afe << "\" of object " << this << " is not set";
590 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
591 }
592 return m_default_afe;
593 }

◆ 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 550 of file DaphneV2BoardConf.hpp.

551 {
552 std::lock_guard scoped_lock(m_mutex);
553 check();
554 check_init();
556 {
557 std::ostringstream text;
558 text << "relationship \"" << s_default_channel << "\" of object " << this << " is not set";
559 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
560 }
561 return m_default_channel;
562 }

◆ 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 550 of file DaphneV2BoardConf.hpp.

551 {
552 std::lock_guard scoped_lock(m_mutex);
553 check();
554 check_init();
556 {
557 std::ostringstream text;
558 text << "relationship \"" << s_default_channel << "\" of object " << this << " is not set";
559 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
560 }
561 return m_default_channel;
562 }

◆ 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 456 of file DaphneV2BoardConf.hpp.

457 {
458 std::lock_guard scoped_lock(m_mutex);
459 check();
460 check_init();
461 return m_detector_id;
462 }

◆ 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 456 of file DaphneV2BoardConf.hpp.

457 {
458 std::lock_guard scoped_lock(m_mutex);
459 check();
460 check_init();
461 return m_detector_id;
462 }

◆ 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 205 of file DaphneV2BoardConf.hpp.

206 {
207 std::lock_guard scoped_lock(m_mutex);
208 check();
209 check_init();
211 }
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 205 of file DaphneV2BoardConf.hpp.

206 {
207 std::lock_guard scoped_lock(m_mutex);
208 check();
209 check_init();
211 }

◆ 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 330 of file DaphneV2BoardConf.hpp.

331 {
332 std::lock_guard scoped_lock(m_mutex);
333 check();
334 check_init();
335 return m_inverter;
336 }

◆ 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 330 of file DaphneV2BoardConf.hpp.

331 {
332 std::lock_guard scoped_lock(m_mutex);
333 check();
334 check_init();
335 return m_inverter;
336 }

◆ 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 172 of file DaphneV2BoardConf.hpp.

173 {
174 std::lock_guard scoped_lock(m_mutex);
175 check();
176 check_init();
178 }

◆ 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 172 of file DaphneV2BoardConf.hpp.

173 {
174 std::lock_guard scoped_lock(m_mutex);
175 check();
176 check_init();
178 }

◆ 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 237 of file DaphneV2BoardConf.hpp.

238 {
239 std::lock_guard scoped_lock(m_mutex);
240 check();
241 check_init();
243 }

◆ 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 237 of file DaphneV2BoardConf.hpp.

238 {
239 std::lock_guard scoped_lock(m_mutex);
240 check();
241 check_init();
243 }

◆ 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 394 of file DaphneV2BoardConf.hpp.

395 {
396 std::lock_guard scoped_lock(m_mutex);
397 check();
398 check_init();
399 return m_slot_id;
400 }

◆ 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 394 of file DaphneV2BoardConf.hpp.

395 {
396 std::lock_guard scoped_lock(m_mutex);
397 check();
398 check_init();
399 return m_slot_id;
400 }

◆ 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 268 of file DaphneV2BoardConf.hpp.

269 {
270 std::lock_guard scoped_lock(m_mutex);
271 check();
272 check_init();
273 return m_tp_conf;
274 }

◆ 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 268 of file DaphneV2BoardConf.hpp.

269 {
270 std::lock_guard scoped_lock(m_mutex);
271 check();
272 check_init();
273 return m_tp_conf;
274 }

◆ 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 81 of file DaphneV2BoardConf.cpp.

82 {
83 p_was_read = true;
85 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
86
87 try {
103 }
104 catch (dunedaq::conffwk::Exception & ex) {
105 throw_init_ex(ex);
106 }
107 }
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 250 of file DaphneApplication.cpp.

250 {
251
252 auto begin = afe*8;
253 auto end = (afe+1)*8;
254 for ( size_t i = begin; i < end; ++i) {
255 if( is_channel_used(i) ) return true;
256 }
257
258 return false;
259}

◆ 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 226 of file DaphneApplication.cpp.

226 {
227
228 for ( auto ch_p : get_active_channels() ) {
229 if ( ch_p->get_channel_id() == ch ) {
230 return true;
231 }
232 }
233
234 return false;
235}

◆ 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
66
67
68 // print direct relationships
69
74 }
75 catch (dunedaq::conffwk::Exception & ex) {
77 }
78 }
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 147 of file DaphneV2BoardConf.cpp.

148 {
150 }
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 142 of file DaphneV2BoardConf.cpp.

143 {
145 }

◆ 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_address() [1/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_address ( const std::string & value)
inline

Set "address" attribute value. ip address of the board.

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

Definition at line 378 of file DaphneV2BoardConf.hpp.

379 {
380 std::lock_guard scoped_lock(m_mutex);
381 check();
382 clear();
383 p_obj.set_by_ref(s_address, value);
384 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_address() [2/2]

void dunedaq::appmodel::DaphneV2BoardConf::set_address ( const std::string & value)
inline

Set "address" attribute value. ip address of the board.

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

Definition at line 378 of file DaphneV2BoardConf.hpp.

379 {
380 std::lock_guard scoped_lock(m_mutex);
381 check();
382 clear();
383 p_obj.set_by_ref(s_address, value);
384 }

◆ 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 155 of file DaphneV2BoardConf.hpp.

156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }
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 155 of file DaphneV2BoardConf.hpp.

156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }

◆ 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 314 of file DaphneV2BoardConf.hpp.

315 {
316 std::lock_guard scoped_lock(m_mutex);
317 check();
318 clear();
320 }

◆ 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 314 of file DaphneV2BoardConf.hpp.

315 {
316 std::lock_guard scoped_lock(m_mutex);
317 check();
318 clear();
320 }

◆ 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 440 of file DaphneV2BoardConf.hpp.

441 {
442 std::lock_guard scoped_lock(m_mutex);
443 check();
444 clear();
446 }

◆ 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 440 of file DaphneV2BoardConf.hpp.

441 {
442 std::lock_guard scoped_lock(m_mutex);
443 check();
444 clear();
446 }

◆ 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 157 of file DaphneV2BoardConf.cpp.

158 {
160 }
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 152 of file DaphneV2BoardConf.cpp.

153 {
155 }

◆ 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 471 of file DaphneV2BoardConf.hpp.

472 {
473 std::lock_guard scoped_lock(m_mutex);
474 check();
475 clear();
477 }

◆ 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 471 of file DaphneV2BoardConf.hpp.

472 {
473 std::lock_guard scoped_lock(m_mutex);
474 check();
475 clear();
477 }

◆ 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 221 of file DaphneV2BoardConf.hpp.

222 {
223 std::lock_guard scoped_lock(m_mutex);
224 check();
225 clear();
227 }

◆ 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 221 of file DaphneV2BoardConf.hpp.

222 {
223 std::lock_guard scoped_lock(m_mutex);
224 check();
225 clear();
227 }

◆ 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 345 of file DaphneV2BoardConf.hpp.

346 {
347 std::lock_guard scoped_lock(m_mutex);
348 check();
349 clear();
351 }

◆ 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 345 of file DaphneV2BoardConf.hpp.

346 {
347 std::lock_guard scoped_lock(m_mutex);
348 check();
349 clear();
351 }

◆ 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 188 of file DaphneV2BoardConf.hpp.

189 {
190 std::lock_guard scoped_lock(m_mutex);
191 check();
192 clear();
194 }

◆ 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 188 of file DaphneV2BoardConf.hpp.

189 {
190 std::lock_guard scoped_lock(m_mutex);
191 check();
192 clear();
194 }

◆ 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 252 of file DaphneV2BoardConf.hpp.

253 {
254 std::lock_guard scoped_lock(m_mutex);
255 check();
256 clear();
258 }

◆ 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 252 of file DaphneV2BoardConf.hpp.

253 {
254 std::lock_guard scoped_lock(m_mutex);
255 check();
256 clear();
258 }

◆ 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 409 of file DaphneV2BoardConf.hpp.

410 {
411 std::lock_guard scoped_lock(m_mutex);
412 check();
413 clear();
414 p_obj.set_by_val(s_slot_id, value);
415 }

◆ 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 409 of file DaphneV2BoardConf.hpp.

410 {
411 std::lock_guard scoped_lock(m_mutex);
412 check();
413 clear();
414 p_obj.set_by_val(s_slot_id, value);
415 }

◆ 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 283 of file DaphneV2BoardConf.hpp.

284 {
285 std::lock_guard scoped_lock(m_mutex);
286 check();
287 clear();
288 p_obj.set_by_val(s_tp_conf, value);
289 }

◆ 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 283 of file DaphneV2BoardConf.hpp.

284 {
285 std::lock_guard scoped_lock(m_mutex);
286 check();
287 clear();
288 p_obj.set_by_val(s_tp_conf, value);
289 }

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 97 of file DaphneV2BoardConf.hpp.

◆ m_active_channels

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

Definition at line 96 of file DaphneV2BoardConf.hpp.

◆ m_address

std::string dunedaq::appmodel::DaphneV2BoardConf::m_address
private

Definition at line 92 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 94 of file DaphneV2BoardConf.hpp.

◆ m_default_afe

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

Definition at line 99 of file DaphneV2BoardConf.hpp.

◆ m_default_channel

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

Definition at line 98 of file DaphneV2BoardConf.hpp.

◆ m_detector_id

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

Definition at line 95 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 93 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 483 of file DaphneV2BoardConf.hpp.

◆ s_active_channels

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

Definition at line 482 of file DaphneV2BoardConf.hpp.

◆ s_address

static const std::string dunedaq::appmodel::DaphneV2BoardConf::s_address = "address"
inlinestatic

Definition at line 113 of file DaphneV2BoardConf.hpp.

◆ s_bias_ctrl

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

Definition at line 106 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 111 of file DaphneV2BoardConf.hpp.

◆ s_crate_id

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

Definition at line 115 of file DaphneV2BoardConf.hpp.

◆ s_default_afe

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

Definition at line 485 of file DaphneV2BoardConf.hpp.

◆ s_default_channel

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

Definition at line 484 of file DaphneV2BoardConf.hpp.

◆ s_detector_id

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

Definition at line 116 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 108 of file DaphneV2BoardConf.hpp.

◆ s_inverter

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

Definition at line 112 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 107 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 109 of file DaphneV2BoardConf.hpp.

◆ s_slot_id

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

Definition at line 114 of file DaphneV2BoardConf.hpp.

◆ s_tp_conf

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

Definition at line 110 of file DaphneV2BoardConf.hpp.


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