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

#include <FixedTimeTCMakerModuleConf.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the FixedTimeTCMakerModuleConf 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.
 
uint64_t get_wait_time_ms () const
 Get "wait_time_ms" attribute value. Time to wait between TriggerCandidates.
 
void set_wait_time_ms (uint64_t value)
 Set "wait_time_ms" attribute value. Time to wait between TriggerCandidates.
 
const std::string & get_tc_type_name () const
 Get "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.
 
void set_tc_type_name (const std::string &value)
 Set "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.
 
const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > & get_triggers () const
 Get "triggers" relationship value. Timestamps for the TCs to generate.
 
void set_triggers (const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > &value)
 Set "triggers" relationship value. Timestamps for the TCs to generate.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the FixedTimeTCMakerModuleConf 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.
 
uint64_t get_wait_time_ms () const
 Get "wait_time_ms" attribute value. Time to wait between TriggerCandidates.
 
void set_wait_time_ms (uint64_t value)
 Set "wait_time_ms" attribute value. Time to wait between TriggerCandidates.
 
const std::string & get_tc_type_name () const
 Get "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.
 
void set_tc_type_name (const std::string &value)
 Set "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.
 
const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > & get_triggers () const
 Get "triggers" relationship value. Timestamps for the TCs to generate.
 
void set_triggers (const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > &value)
 Set "triggers" relationship value. Timestamps for the TCs to generate.
 
- Public Member Functions inherited from dunedaq::appmodel::StandaloneTCMakerConf
const std::string & get_template_for () const
 Get "template_for" attribute value.
 
void set_template_for (const std::string &value)
 Set "template_for" attribute value.
 
const std::string & get_timestamp_method () const
 Get "timestamp_method" attribute value. Option to pick source for timing (system / timesync)
 
void set_timestamp_method (const std::string &value)
 Set "timestamp_method" attribute value. Option to pick source for timing (system / timesync)
 
bool get_latency_monitoring () const
 Get "latency_monitoring" attribute value. Should we monitor latency in Grafana?
 
void set_latency_monitoring (bool value)
 Set "latency_monitoring" attribute value. Should we monitor latency in Grafana?
 
const std::string & get_template_for () const
 Get "template_for" attribute value.
 
void set_template_for (const std::string &value)
 Set "template_for" attribute value.
 
const std::string & get_timestamp_method () const
 Get "timestamp_method" attribute value. Option to pick source for timing (system / timesync)
 
void set_timestamp_method (const std::string &value)
 Set "timestamp_method" attribute value. Option to pick source for timing (system / timesync)
 
bool get_latency_monitoring () const
 Get "latency_monitoring" attribute value. Should we monitor latency in Grafana?
 
void set_latency_monitoring (bool value)
 Set "latency_monitoring" attribute value. Should we monitor latency in Grafana?
 
- 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_wait_time_ms_str () noexcept
 
static const std::string & __get_tc_type_name_str () noexcept
 
static const std::string & __get_triggers_str () noexcept
 
static const std::string & __get_wait_time_ms_str () noexcept
 
static const std::string & __get_tc_type_name_str () noexcept
 
static const std::string & __get_triggers_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::StandaloneTCMakerConf
static const std::string & __get_template_for_str () noexcept
 
static const std::string & __get_timestamp_method_str () noexcept
 
static const std::string & __get_latency_monitoring_str () noexcept
 
static const std::string & __get_template_for_str () noexcept
 
static const std::string & __get_timestamp_method_str () noexcept
 
static const std::string & __get_latency_monitoring_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_wait_time_ms = "wait_time_ms"
 
static const std::string s_tc_type_name = "tc_type_name"
 
static const std::string s_triggers = "triggers"
 
- Static Public Attributes inherited from dunedaq::appmodel::StandaloneTCMakerConf
static const std::string & s_class_name
 
static const std::string s_template_for = "template_for"
 
static const std::string s_timestamp_method = "timestamp_method"
 
static const std::string s_latency_monitoring = "latency_monitoring"
 

Protected Member Functions

 FixedTimeTCMakerModuleConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~FixedTimeTCMakerModuleConf () 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
 
 FixedTimeTCMakerModuleConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~FixedTimeTCMakerModuleConf () 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::appmodel::StandaloneTCMakerConf
 StandaloneTCMakerConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~StandaloneTCMakerConf () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 StandaloneTCMakerConf (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~StandaloneTCMakerConf () noexcept
 
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

uint64_t m_wait_time_ms
 
std::string m_tc_type_name
 
std::vector< const dunedaq::appmodel::FixedTimeTCConf * > m_triggers
 

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

Definition at line 32 of file FixedTimeTCMakerModuleConf.hpp.

Constructor & Destructor Documentation

◆ FixedTimeTCMakerModuleConf() [1/2]

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

Definition at line 31 of file FixedTimeTCMakerModuleConf.cpp.

31 :
34
35 {
36 ;
37 }
StandaloneTCMakerConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~FixedTimeTCMakerModuleConf() [1/2]

dunedaq::appmodel::FixedTimeTCMakerModuleConf::~FixedTimeTCMakerModuleConf ( )
protectedvirtualnoexcept

Definition at line 88 of file FixedTimeTCMakerModuleConf.cpp.

89 {
90 }

◆ FixedTimeTCMakerModuleConf() [2/2]

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

◆ ~FixedTimeTCMakerModuleConf() [2/2]

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

Member Function Documentation

◆ __get_tc_type_name_str() [1/2]

static const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::__get_tc_type_name_str ( )
inlinestaticnoexcept

Definition at line 96 of file FixedTimeTCMakerModuleConf.hpp.

◆ __get_tc_type_name_str() [2/2]

static const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::__get_tc_type_name_str ( )
inlinestaticnoexcept

Definition at line 96 of file FixedTimeTCMakerModuleConf.hpp.

96{ return s_tc_type_name; }

◆ __get_triggers_str() [1/2]

static const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::__get_triggers_str ( )
inlinestaticnoexcept

Definition at line 169 of file FixedTimeTCMakerModuleConf.hpp.

◆ __get_triggers_str() [2/2]

static const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::__get_triggers_str ( )
inlinestaticnoexcept

Definition at line 169 of file FixedTimeTCMakerModuleConf.hpp.

169{ return s_triggers; }

◆ __get_wait_time_ms_str() [1/2]

static const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::__get_wait_time_ms_str ( )
inlinestaticnoexcept

Definition at line 95 of file FixedTimeTCMakerModuleConf.hpp.

◆ __get_wait_time_ms_str() [2/2]

static const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::__get_wait_time_ms_str ( )
inlinestaticnoexcept

Definition at line 95 of file FixedTimeTCMakerModuleConf.hpp.

95{ return s_wait_time_ms; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::FixedTimeTCMakerModuleConf::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

Reimplemented from dunedaq::appmodel::StandaloneTCMakerConf.

Definition at line 92 of file FixedTimeTCMakerModuleConf.cpp.

93 {
94 std::vector<const dunedaq::conffwk::DalObject *> vec;
95
96 if (!get(name, vec, upcast_unregistered, true))
97 throw_get_ex(name, s_class_name, this);
98
99 return vec;
100 }
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::FixedTimeTCMakerModuleConf::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

Reimplemented from dunedaq::appmodel::StandaloneTCMakerConf.

◆ get() [3/4]

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

Definition at line 102 of file FixedTimeTCMakerModuleConf.cpp.

103 {
104 if (first_call)
105 {
106 std::lock_guard scoped_lock(m_mutex);
107
108 check();
109 check_init();
110
111 if (get_rel_objects(name, upcast_unregistered, vec))
112 return true;
113 }
114
115 if (StandaloneTCMakerConf::get(name, vec, upcast_unregistered, false)) return true;
116
117 if (first_call)
118 return get_algo_objects(name, vec);
119
120 return false;
121 }
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...
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::FixedTimeTCMakerModuleConf::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_tc_type_name() [1/2]

const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::get_tc_type_name ( ) const
inline

Get "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.

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

Definition at line 140 of file FixedTimeTCMakerModuleConf.hpp.

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

◆ get_tc_type_name() [2/2]

const std::string & dunedaq::appmodel::FixedTimeTCMakerModuleConf::get_tc_type_name ( ) const
inline

Get "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.

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

Definition at line 140 of file FixedTimeTCMakerModuleConf.hpp.

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

◆ get_triggers() [1/2]

const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > & dunedaq::appmodel::FixedTimeTCMakerModuleConf::get_triggers ( ) const
inline

Get "triggers" relationship value. Timestamps for the TCs to generate.

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

Definition at line 180 of file FixedTimeTCMakerModuleConf.hpp.

181 {
182 std::lock_guard scoped_lock(m_mutex);
183 check();
184 check_init();
185 if (m_triggers.empty())
186 {
187 std::ostringstream text;
188 text << "relationship \"" << s_triggers << "\" of object " << this << " is empty";
189 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
190 }
191 return m_triggers;
192 }
#define ERS_HERE
std::vector< const dunedaq::appmodel::FixedTimeTCConf * > m_triggers
Generic configuration exception.

◆ get_triggers() [2/2]

const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > & dunedaq::appmodel::FixedTimeTCMakerModuleConf::get_triggers ( ) const
inline

Get "triggers" relationship value. Timestamps for the TCs to generate.

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

Definition at line 180 of file FixedTimeTCMakerModuleConf.hpp.

181 {
182 std::lock_guard scoped_lock(m_mutex);
183 check();
184 check_init();
185 if (m_triggers.empty())
186 {
187 std::ostringstream text;
188 text << "relationship \"" << s_triggers << "\" of object " << this << " is empty";
189 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
190 }
191 return m_triggers;
192 }

◆ get_wait_time_ms() [1/2]

uint64_t dunedaq::appmodel::FixedTimeTCMakerModuleConf::get_wait_time_ms ( ) const
inline

Get "wait_time_ms" attribute value. Time to wait between TriggerCandidates.

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

Definition at line 107 of file FixedTimeTCMakerModuleConf.hpp.

108 {
109 std::lock_guard scoped_lock(m_mutex);
110 check();
111 check_init();
112 return m_wait_time_ms;
113 }

◆ get_wait_time_ms() [2/2]

uint64_t dunedaq::appmodel::FixedTimeTCMakerModuleConf::get_wait_time_ms ( ) const
inline

Get "wait_time_ms" attribute value. Time to wait between TriggerCandidates.

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

Definition at line 107 of file FixedTimeTCMakerModuleConf.hpp.

108 {
109 std::lock_guard scoped_lock(m_mutex);
110 check();
111 check_init();
112 return m_wait_time_ms;
113 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::StandaloneTCMakerConf.

Definition at line 72 of file FixedTimeTCMakerModuleConf.cpp.

73 {
74 StandaloneTCMakerConf::init(init_children);
75
76 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
77
78 try {
82 }
83 catch (dunedaq::conffwk::Exception & ex) {
84 throw_init_ex(ex);
85 }
86 }
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
DalRegistry & p_registry
Configuration object.
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::FixedTimeTCMakerModuleConf::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::StandaloneTCMakerConf.

◆ print() [1/2]

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

Print details of the FixedTimeTCMakerModuleConf 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

Reimplemented from dunedaq::appmodel::StandaloneTCMakerConf.

Definition at line 40 of file FixedTimeTCMakerModuleConf.cpp.

41 {
42 check_init();
43
44 try {
45 const std::string str(indent+2, ' ');
46
47 if (print_header)
48 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
49
50
51 // print direct super-classes
52
54
55
56 // print direct attributes
57
60
61
62 // print direct relationships
63
65 }
66 catch (dunedaq::conffwk::Exception & ex) {
68 }
69 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the StandaloneTCMakerConf object.
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_mv_rel(std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept
print weak multi-value relationship
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::FixedTimeTCMakerModuleConf::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the FixedTimeTCMakerModuleConf 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

Reimplemented from dunedaq::appmodel::StandaloneTCMakerConf.

◆ set_tc_type_name() [1/2]

void dunedaq::appmodel::FixedTimeTCMakerModuleConf::set_tc_type_name ( const std::string & value)
inline

Set "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.

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

Definition at line 156 of file FixedTimeTCMakerModuleConf.hpp.

157 {
158 std::lock_guard scoped_lock(m_mutex);
159 check();
160 clear();
162 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_tc_type_name() [2/2]

void dunedaq::appmodel::FixedTimeTCMakerModuleConf::set_tc_type_name ( const std::string & value)
inline

Set "tc_type_name" attribute value. Enumerator name of the TC type, e.g. kTiming.

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

Definition at line 156 of file FixedTimeTCMakerModuleConf.hpp.

157 {
158 std::lock_guard scoped_lock(m_mutex);
159 check();
160 clear();
162 }

◆ set_triggers() [1/2]

void dunedaq::appmodel::FixedTimeTCMakerModuleConf::set_triggers ( const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > & value)

Set "triggers" relationship value. Timestamps for the TCs to generate.

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

Definition at line 123 of file FixedTimeTCMakerModuleConf.cpp.

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

◆ set_triggers() [2/2]

void dunedaq::appmodel::FixedTimeTCMakerModuleConf::set_triggers ( const std::vector< const dunedaq::appmodel::FixedTimeTCConf * > & value)

Set "triggers" relationship value. Timestamps for the TCs to generate.

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

◆ set_wait_time_ms() [1/2]

void dunedaq::appmodel::FixedTimeTCMakerModuleConf::set_wait_time_ms ( uint64_t value)
inline

Set "wait_time_ms" attribute value. Time to wait between TriggerCandidates.

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

Definition at line 123 of file FixedTimeTCMakerModuleConf.hpp.

124 {
125 std::lock_guard scoped_lock(m_mutex);
126 check();
127 clear();
129 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_wait_time_ms() [2/2]

void dunedaq::appmodel::FixedTimeTCMakerModuleConf::set_wait_time_ms ( uint64_t value)
inline

Set "wait_time_ms" attribute value. Time to wait between TriggerCandidates.

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

Definition at line 123 of file FixedTimeTCMakerModuleConf.hpp.

124 {
125 std::lock_guard scoped_lock(m_mutex);
126 check();
127 clear();
129 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 34 of file FixedTimeTCMakerModuleConf.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 36 of file FixedTimeTCMakerModuleConf.hpp.

◆ conffwk::DalObject

Definition at line 35 of file FixedTimeTCMakerModuleConf.hpp.

◆ conffwk::DalRegistry

Definition at line 37 of file FixedTimeTCMakerModuleConf.hpp.

Member Data Documentation

◆ m_tc_type_name

std::string dunedaq::appmodel::FixedTimeTCMakerModuleConf::m_tc_type_name
private

Definition at line 84 of file FixedTimeTCMakerModuleConf.hpp.

◆ m_triggers

std::vector< const dunedaq::appmodel::FixedTimeTCConf * > dunedaq::appmodel::FixedTimeTCMakerModuleConf::m_triggers
private

Definition at line 85 of file FixedTimeTCMakerModuleConf.hpp.

◆ m_wait_time_ms

uint64_t dunedaq::appmodel::FixedTimeTCMakerModuleConf::m_wait_time_ms
private

Definition at line 83 of file FixedTimeTCMakerModuleConf.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 49 of file FixedTimeTCMakerModuleConf.hpp.

◆ s_tc_type_name

static const std::string dunedaq::appmodel::FixedTimeTCMakerModuleConf::s_tc_type_name = "tc_type_name"
inlinestatic

Definition at line 93 of file FixedTimeTCMakerModuleConf.hpp.

◆ s_triggers

static const std::string dunedaq::appmodel::FixedTimeTCMakerModuleConf::s_triggers = "triggers"
inlinestatic

Definition at line 167 of file FixedTimeTCMakerModuleConf.hpp.

◆ s_wait_time_ms

static const std::string dunedaq::appmodel::FixedTimeTCMakerModuleConf::s_wait_time_ms = "wait_time_ms"
inlinestatic

Definition at line 92 of file FixedTimeTCMakerModuleConf.hpp.


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