3#ifndef _SSPLEDCalibModule_0_dunedaq__appmodel_0_appmodel_H_
4#define _SSPLEDCalibModule_0_dunedaq__appmodel_0_appmodel_H_
47 virtual
void init(
bool init_children);
65 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
152 std::lock_guard scoped_lock(
m_mutex);
168 std::lock_guard scoped_lock(
m_mutex);
185 std::lock_guard scoped_lock(
m_mutex);
201 std::lock_guard scoped_lock(
m_mutex);
218 std::lock_guard scoped_lock(
m_mutex);
234 std::lock_guard scoped_lock(
m_mutex);
251 std::lock_guard scoped_lock(
m_mutex);
267 std::lock_guard scoped_lock(
m_mutex);
284 std::lock_guard scoped_lock(
m_mutex);
300 std::lock_guard scoped_lock(
m_mutex);
317 std::lock_guard scoped_lock(
m_mutex);
333 std::lock_guard scoped_lock(
m_mutex);
350 std::lock_guard scoped_lock(
m_mutex);
366 std::lock_guard scoped_lock(
m_mutex);
383 std::lock_guard scoped_lock(
m_mutex);
399 std::lock_guard scoped_lock(
m_mutex);
411 inline static const std::string
Single =
"single";
412 inline static const std::string
Double =
"double";
413 inline static const std::string
Burst =
"burst";
425 std::lock_guard scoped_lock(
m_mutex);
440 std::lock_guard scoped_lock(
m_mutex);
457 std::lock_guard scoped_lock(
m_mutex);
473 std::lock_guard scoped_lock(
m_mutex);
490 std::lock_guard scoped_lock(
m_mutex);
506 std::lock_guard scoped_lock(
m_mutex);
523 std::lock_guard scoped_lock(
m_mutex);
539 std::lock_guard scoped_lock(
m_mutex);
556 std::lock_guard scoped_lock(
m_mutex);
572 std::lock_guard scoped_lock(
m_mutex);
589 std::lock_guard scoped_lock(
m_mutex);
605 std::lock_guard scoped_lock(
m_mutex);
622 std::lock_guard scoped_lock(
m_mutex);
638 std::lock_guard scoped_lock(
m_mutex);
658 const std::vector<const dunedaq::appmodel::SSPRegister*>&
661 std::lock_guard scoped_lock(
m_mutex);
683 return obj.print_object(s);
static const std::string & __get_module_id_str() noexcept
static const std::string s_partition_number
uint32_t get_pulse2_width_ticks() const
Get "pulse2_width_ticks" attribute value. width of second pulse.
static const std::string s_card_id
static const std::string s_board_id
static const std::string & __get_timing_address_str() noexcept
static const std::string s_burst_count
static const std::string & __get_pulse_bias_percent_270nm_str() noexcept
void set_pulse2_width_ticks(uint32_t value)
Set "pulse2_width_ticks" attribute value. width of second pulse.
void set_pulse_mode(const std::string &value)
Set "pulse_mode" attribute value.
void set_number_channels(uint32_t value)
Set "number_channels" attribute value. Decimal number of the number of channels in the card,...
uint32_t get_card_id() const
Get "card_id" attribute value. Physical card identifier (in the same host)
uint32_t m_pulse1_width_ticks
virtual ~SSPLEDCalibModule() noexcept
static const std::string & s_class_name
const std::string & get_pulse_mode() const
Get "pulse_mode" attribute value.
void set_pulse1_width_ticks(uint32_t value)
Set "pulse1_width_ticks" attribute value. Width of first pulse in time ticks.
void set_double_pulse_delay_ticks(uint32_t value)
Set "double_pulse_delay_ticks" attribute value. number of ticks between first and second pulse in dou...
void set_hardware_configuration(const std::vector< const dunedaq::appmodel::SSPRegister * > &value)
Set "hardware_configuration" relationship value.
std::vector< const dunedaq::appmodel::SSPRegister * > m_hardware_configuration
static const std::string & __get_board_id_str() noexcept
static const std::string s_pulse2_width_ticks
static const std::string & __get_pulse1_width_ticks_str() noexcept
static const std::string & __get_board_ip_str() noexcept
uint32_t m_pulse_bias_percent_270nm
uint32_t get_pulse1_width_ticks() const
Get "pulse1_width_ticks" attribute value. Width of first pulse in time ticks.
static const std::string s_module_id
static const std::string s_pulse1_width_ticks
static const std::string & __get_partition_number_str() noexcept
static const std::string s_pulse_bias_percent_270nm
static const std::string & __get_card_id_str() noexcept
uint32_t get_timing_address() const
Get "timing_address" attribute value. Timing address of the SSP board.
SSPLEDCalibModule(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string s_pulse_mode
uint32_t m_timing_address
static const std::string & __get_hardware_configuration_str() noexcept
static const std::string s_board_ip
void set_pulse_bias_percent_270nm(uint32_t value)
Set "pulse_bias_percent_270nm" attribute value. the fraction of bias applied to 270 nm LED.
uint32_t get_channel_mask() const
Get "channel_mask" attribute value. Decimal number for the 12-bit channel mask where 1 is on,...
uint32_t m_number_channels
static const std::string s_channel_mask
static const std::string & __get_number_channels_str() noexcept
uint32_t m_pulse2_width_ticks
friend class conffwk::DalFactory
uint32_t m_pulse_bias_percent_367nm
uint32_t get_number_channels() const
Get "number_channels" attribute value. Decimal number of the number of channels in the card,...
static const std::string & __get_burst_count_str() noexcept
static const std::string & __get_pulse2_width_ticks_str() noexcept
uint32_t get_partition_number() const
Get "partition_number" attribute value. FIXME: partition number for the SSP board.
uint32_t get_board_id() const
Get "board_id" attribute value. Board ID used for configuration and metric tracking.
static const std::string & __get_pulse_mode_str() noexcept
uint32_t get_pulse_bias_percent_367nm() const
Get "pulse_bias_percent_367nm" attribute value. the fraction of bias applied to 367 nm LEDs.
uint32_t get_module_id() const
Get "module_id" attribute value. Module ID used for configuration and metric tracking.
uint32_t get_pulse_bias_percent_270nm() const
Get "pulse_bias_percent_270nm" attribute value. the fraction of bias applied to 270 nm LED.
static const std::string & __get_double_pulse_delay_ticks_str() noexcept
void set_board_ip(const std::string &value)
Set "board_ip" attribute value. IP address of the board.
virtual void init(bool init_children)
uint32_t get_burst_count() const
Get "burst_count" attribute value. Number of LED calib pulses to send in a burst.
const std::vector< const dunedaq::appmodel::SSPRegister * > & get_hardware_configuration() const
Get "hardware_configuration" relationship value.
void set_timing_address(uint32_t value)
Set "timing_address" attribute value. Timing address of the SSP board.
static const std::string s_double_pulse_delay_ticks
friend class conffwk::DalObject
static const std::string s_number_channels
void set_card_id(uint32_t value)
Set "card_id" attribute value. Physical card identifier (in the same host)
static const std::string & __get_pulse_bias_percent_367nm_str() noexcept
void set_module_id(uint32_t value)
Set "module_id" attribute value. Module ID used for configuration and metric tracking.
void set_partition_number(uint32_t value)
Set "partition_number" attribute value. FIXME: partition number for the SSP board.
static const std::string s_timing_address
uint32_t m_double_pulse_delay_ticks
static const std::string s_pulse_bias_percent_367nm
void set_burst_count(uint32_t value)
Set "burst_count" attribute value. Number of LED calib pulses to send in a burst.
static const std::string s_hardware_configuration
void set_channel_mask(uint32_t value)
Set "channel_mask" attribute value. Decimal number for the 12-bit channel mask where 1 is on,...
static const std::string & __get_channel_mask_str() noexcept
void set_pulse_bias_percent_367nm(uint32_t value)
Set "pulse_bias_percent_367nm" attribute value. the fraction of bias applied to 367 nm LEDs.
uint32_t get_double_pulse_delay_ticks() const
Get "double_pulse_delay_ticks" attribute value. number of ticks between first and second pulse in dou...
const std::string & get_board_ip() const
Get "board_ip" attribute value. IP address of the board.
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...
uint32_t m_partition_number
void set_board_id(uint32_t value)
Set "board_id" attribute value. Board ID used for configuration and metric tracking.
void set_by_val(const std::string &name, T value)
Set attribute value.
void set_by_ref(const std::string &name, T &value)
Set attribute value.
void set_enum(const std::string &name, const std::string &value)
Set attribute enumeration value.
The base class for any generated DAL object.
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constSSPLEDCalibModule * >::const_iterator SSPLEDCalibModuleIterator
static const std::string Single
static const std::string Double
static const std::string Burst