3#ifndef _RandomTCMakerConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _RandomTCMakerConf_0_dunedaq__appmodel_0_appmodel_H_
34 virtual
void init(
bool init_children);
52 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
113 std::lock_guard scoped_lock(
m_mutex);
128 std::lock_guard scoped_lock(
m_mutex);
145 std::lock_guard scoped_lock(
m_mutex);
161 std::lock_guard scoped_lock(
m_mutex);
173 inline static const std::string
KUniform =
"kUniform";
174 inline static const std::string
KPoisson =
"kPoisson";
187 std::lock_guard scoped_lock(
m_mutex);
203 std::lock_guard scoped_lock(
m_mutex);
220 std::lock_guard scoped_lock(
m_mutex);
236 std::lock_guard scoped_lock(
m_mutex);
253 std::lock_guard scoped_lock(
m_mutex);
269 std::lock_guard scoped_lock(
m_mutex);
286 std::lock_guard scoped_lock(
m_mutex);
302 std::lock_guard scoped_lock(
m_mutex);
319 std::lock_guard scoped_lock(
m_mutex);
335 std::lock_guard scoped_lock(
m_mutex);
346 inline std::ostream&
operator<<(std::ostream& s,
const RandomTCMakerConf&
obj)
348 return obj.print_object(s);
void set_trigger_rate_hz(float value)
Set "trigger_rate_hz" attribute value. Trigger rate (in Hz) for the RandomTCMaker to produce the TCs.
std::string m_candidate_type_name
uint32_t get_candidate_window_before_ts() const
Get "candidate_window_before_ts" attribute value. Candidate extension before its central time.
static const std::string & s_class_name
void set_candidate_window_after_ts(uint32_t value)
Set "candidate_window_after_ts" attribute value. Candidate extension after its central time.
const std::string & get_time_distribution() const
Get "time_distribution" attribute value. Type of distribution used for random timestamps (uniform or ...
static const std::string & __get_trigger_rate_hz_str() noexcept
void set_candidate_window_before_ts(uint32_t value)
Set "candidate_window_before_ts" attribute value. Candidate extension before its central time.
static const std::string & __get_candidate_window_before_ts_str() noexcept
std::string m_template_for
static const std::string & __get_template_for_str() noexcept
static const std::string & __get_candidate_type_name_str() noexcept
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
static const std::string s_time_distribution
void set_time_distribution(const std::string &value)
Set "time_distribution" attribute value. Type of distribution used for random timestamps (uniform or ...
static const std::string & __get_candidate_window_after_ts_str() noexcept
friend class conffwk::DalFactory
static const std::string s_candidate_window_before_ts
virtual ~RandomTCMakerConf() noexcept
void set_candidate_backshift_ts(int64_t value)
Set "candidate_backshift_ts" attribute value. Time backshift applied to the TC central time at the cr...
static const std::string & __get_candidate_backshift_ts_str() noexcept
uint32_t get_candidate_window_after_ts() const
Get "candidate_window_after_ts" attribute value. Candidate extension after its central time.
static const std::string s_candidate_type_name
static const std::string s_candidate_backshift_ts
static const std::string s_candidate_window_after_ts
void set_candidate_type_name(const std::string &value)
Set "candidate_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.
void set_template_for(const std::string &value)
Set "template_for" attribute value.
uint32_t m_candidate_window_after_ts
friend class conffwk::DalObject
const std::string & get_candidate_type_name() const
Get "candidate_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.
int64_t m_candidate_backshift_ts
static const std::string s_template_for
static const std::string s_trigger_rate_hz
float get_trigger_rate_hz() const
Get "trigger_rate_hz" attribute value. Trigger rate (in Hz) for the RandomTCMaker to produce the TCs.
int64_t get_candidate_backshift_ts() const
Get "candidate_backshift_ts" attribute value. Time backshift applied to the TC central time at the cr...
std::string m_time_distribution
static const std::string & __get_time_distribution_str() noexcept
uint32_t m_candidate_window_before_ts
const std::string & get_template_for() const
Get "template_for" attribute value.
RandomTCMakerConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
virtual void init(bool init_children)
void set_by_val(const std::string &name, T value)
Set attribute value.
void set_class(const std::string &name, const std::string &value)
Set attribute class 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< constRandomTCMakerConf * >::const_iterator RandomTCMakerConfIterator
static const std::string KUniform
static const std::string KPoisson