DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FakeHSIEventGeneratorConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _FakeHSIEventGeneratorConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _FakeHSIEventGeneratorConf_0_dunedaq__appmodel_0_appmodel_H_
5
6#include <stdint.h> // to define 64 bits types
7#include <iostream>
8#include <sstream>
9#include <string>
10#include <map>
11#include <vector>
12
14#include "conffwk/DalObject.hpp"
15
16
17namespace dunedaq {
18 namespace appmodel {
19
20 class FakeHSIEventGeneratorConf : public virtual dunedaq::conffwk::DalObject {
21
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
26
27 protected:
28
30 virtual ~FakeHSIEventGeneratorConf() noexcept;
31 virtual void init(bool init_children);
32
33 public:
34
37 static const std::string& s_class_name;
38
39
49 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
50
51
61 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
62
63
64 protected:
65
66 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
67
68
69 private:
70
77
78
79 public:
80
81 // attribute names
82
83 inline static const std::string s_timestamp_offset = "timestamp_offset";
84 inline static const std::string s_trigger_rate = "trigger_rate";
85 inline static const std::string s_hsi_device_id = "hsi_device_id";
86 inline static const std::string s_mean_signal_multiplicity = "mean_signal_multiplicity";
87 inline static const std::string s_enabled_signals = "enabled_signals";
88 inline static const std::string s_signal_emulation_mode = "signal_emulation_mode";
89
90 static const std::string& __get_timestamp_offset_str() noexcept { return s_timestamp_offset; }
91 static const std::string& __get_trigger_rate_str() noexcept { return s_trigger_rate; }
92 static const std::string& __get_hsi_device_id_str() noexcept { return s_hsi_device_id; }
93 static const std::string& __get_mean_signal_multiplicity_str() noexcept { return s_mean_signal_multiplicity; }
94 static const std::string& __get_enabled_signals_str() noexcept { return s_enabled_signals; }
95 static const std::string& __get_signal_emulation_mode_str() noexcept { return s_signal_emulation_mode; }
96
97
105 int64_t
107 {
108 std::lock_guard scoped_lock(m_mutex);
109 check();
110 check_init();
111 return m_timestamp_offset;
112 }
113
121 void
122 set_timestamp_offset(int64_t value)
123 {
124 std::lock_guard scoped_lock(m_mutex);
125 check();
126 clear();
128 }
129
130
138 double
140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 check_init();
144 return m_trigger_rate;
145 }
146
154 void
155 set_trigger_rate(double value)
156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }
162
163
171 uint32_t
173 {
174 std::lock_guard scoped_lock(m_mutex);
175 check();
176 check_init();
177 return m_hsi_device_id;
178 }
179
187 void
188 set_hsi_device_id(uint32_t value)
189 {
190 std::lock_guard scoped_lock(m_mutex);
191 check();
192 clear();
194 }
195
196
204 uint32_t
206 {
207 std::lock_guard scoped_lock(m_mutex);
208 check();
209 check_init();
211 }
212
220 void
222 {
223 std::lock_guard scoped_lock(m_mutex);
224 check();
225 clear();
227 }
228
229
237 uint32_t
239 {
240 std::lock_guard scoped_lock(m_mutex);
241 check();
242 check_init();
243 return m_enabled_signals;
244 }
245
253 void
254 set_enabled_signals(uint32_t value)
255 {
256 std::lock_guard scoped_lock(m_mutex);
257 check();
258 clear();
260 }
261
262
270 uint32_t
272 {
273 std::lock_guard scoped_lock(m_mutex);
274 check();
275 check_init();
277 }
278
286 void
288 {
289 std::lock_guard scoped_lock(m_mutex);
290 check();
291 clear();
293 }
294
295
296 };
297
298 // out stream operator
299
300 inline std::ostream& operator<<(std::ostream& s, const FakeHSIEventGeneratorConf& obj)
301 {
302 return obj.print_object(s);
303 }
304
305 typedef std::vector<const FakeHSIEventGeneratorConf*>::const_iterator FakeHSIEventGeneratorConfIterator;
306
307 }
308}
309
310#endif
void set_hsi_device_id(uint32_t value)
Set "hsi_device_id" attribute value. HSI device ID for emulated HSIEvent messages.
FakeHSIEventGeneratorConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_hsi_device_id_str() noexcept
uint32_t get_hsi_device_id() const
Get "hsi_device_id" attribute value. HSI device ID for emulated HSIEvent messages.
void set_trigger_rate(double value)
Set "trigger_rate" attribute value. Trigger rate (in Hz) for the HSIEvent generation.
void set_signal_emulation_mode(uint32_t value)
Set "signal_emulation_mode" attribute value. Signal bit map emulation mode. 0: enabled signals always...
static const std::string & __get_mean_signal_multiplicity_str() noexcept
static const std::string & __get_timestamp_offset_str() noexcept
int64_t get_timestamp_offset() const
Get "timestamp_offset" attribute value. Offset for HSIEvent timestamps in units of clock ticks....
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
void set_mean_signal_multiplicity(uint32_t value)
Set "mean_signal_multiplicity" attribute value. Mean number of edges expected per signal....
void set_timestamp_offset(int64_t value)
Set "timestamp_offset" attribute value. Offset for HSIEvent timestamps in units of clock ticks....
uint32_t get_enabled_signals() const
Get "enabled_signals" attribute value. Which signals or bit of the 32 bit signal bit map are enabled,...
static const std::string & __get_enabled_signals_str() noexcept
static const std::string & __get_trigger_rate_str() noexcept
double get_trigger_rate() const
Get "trigger_rate" attribute value. Trigger rate (in Hz) for the HSIEvent generation.
uint32_t get_mean_signal_multiplicity() const
Get "mean_signal_multiplicity" attribute value. Mean number of edges expected per signal....
static const std::string & __get_signal_emulation_mode_str() noexcept
uint32_t get_signal_emulation_mode() const
Get "signal_emulation_mode" attribute value. Signal bit map emulation mode. 0: enabled signals always...
void set_enabled_signals(uint32_t value)
Set "enabled_signals" attribute value. Which signals or bit of the 32 bit signal bit map are enabled,...
void set_by_val(const std::string &name, T value)
Set attribute value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
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...
conffwk entry point
double offset
std::vector< constFakeHSIEventGeneratorConf * >::const_iterator FakeHSIEventGeneratorConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.