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

#include <CTBRandomTrigger.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the CTBRandomTrigger 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.
 
bool get_fixed_freq () const
 Get "fixed_freq" attribute value.
 
void set_fixed_freq (bool value)
 Set "fixed_freq" attribute value.
 
bool get_beam_mode () const
 Get "beam_mode" attribute value.
 
void set_beam_mode (bool value)
 Set "beam_mode" attribute value.
 
uint64_t get_period () const
 Get "period" attribute value.
 
void set_period (uint64_t value)
 Set "period" attribute value.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the CTBRandomTrigger 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.
 
bool get_fixed_freq () const
 Get "fixed_freq" attribute value.
 
void set_fixed_freq (bool value)
 Set "fixed_freq" attribute value.
 
bool get_beam_mode () const
 Get "beam_mode" attribute value.
 
void set_beam_mode (bool value)
 Set "beam_mode" attribute value.
 
uint64_t get_period () const
 Get "period" attribute value.
 
void set_period (uint64_t value)
 Set "period" attribute value.
 
- Public Member Functions inherited from dunedaq::appmodel::CTBTrigger
const std::string & get_description () const
 Get "description" attribute value.
 
void set_description (const std::string &value)
 Set "description" attribute value.
 
nlohmann::json get_ctb_json (const dunedaq::confmodel::Session &session) const
 
const std::string & get_description () const
 Get "description" attribute value.
 
void set_description (const std::string &value)
 Set "description" attribute value.
 
nlohmann::json get_ctb_json (const dunedaq::confmodel::Session &session) const
 
- Public Member Functions inherited from dunedaq::confmodel::Jsonable
nlohmann::json to_json (bool direct=false, bool skip_name=false) const
 
nlohmann::json to_json (bool direct=false, bool skip_name=false) 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.
 
- Public Member Functions inherited from dunedaq::confmodel::Resource
- Public Member Functions inherited from dunedaq::confmodel::ResourceBase
- Public Member Functions inherited from dunedaq::confmodel::Component
void get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const
 
bool disabled (const dunedaq::confmodel::Session &session) const
 
void get_parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Component * > > &parents) const
 
bool disabled (const dunedaq::confmodel::Session &session) const
 

Static Public Member Functions

static const std::string & __get_fixed_freq_str () noexcept
 
static const std::string & __get_beam_mode_str () noexcept
 
static const std::string & __get_period_str () noexcept
 
static const std::string & __get_fixed_freq_str () noexcept
 
static const std::string & __get_beam_mode_str () noexcept
 
static const std::string & __get_period_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::CTBTrigger
static const std::string & __get_description_str () noexcept
 
static const std::string & __get_description_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_fixed_freq = "fixed_freq"
 
static const std::string s_beam_mode = "beam_mode"
 
static const std::string s_period = "period"
 
- Static Public Attributes inherited from dunedaq::appmodel::CTBTrigger
static const std::string & s_class_name
 
static const std::string s_description = "description"
 
- Static Public Attributes inherited from dunedaq::confmodel::Jsonable
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Resource
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::ResourceBase
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Component
static const std::string & s_class_name
 

Protected Member Functions

 CTBRandomTrigger (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~CTBRandomTrigger () 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
 
 CTBRandomTrigger (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~CTBRandomTrigger () 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::CTBTrigger
 CTBTrigger (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~CTBTrigger () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 CTBTrigger (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~CTBTrigger () 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::confmodel::Jsonable
 Jsonable (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Jsonable () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Jsonable (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Jsonable () 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.
 
- Protected Member Functions inherited from dunedaq::confmodel::Resource
 Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Resource () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Resource () 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::confmodel::ResourceBase
 ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceBase () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ResourceBase (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ResourceBase () 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::confmodel::Component
 Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Component () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Component (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Component () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 

Private Attributes

bool m_fixed_freq
 
bool m_beam_mode
 
uint64_t m_period
 

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

Period of the trigger in clock ticks units

Definition at line 27 of file CTBRandomTrigger.hpp.

Constructor & Destructor Documentation

◆ CTBRandomTrigger() [1/2]

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

Definition at line 26 of file CTBRandomTrigger.cpp.

26 :
28 CTBTrigger(db, o)
29
30 {
31 ;
32 }
CTBTrigger(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~CTBRandomTrigger() [1/2]

dunedaq::appmodel::CTBRandomTrigger::~CTBRandomTrigger ( )
protectedvirtualnoexcept

Definition at line 79 of file CTBRandomTrigger.cpp.

80 {
81 }

◆ CTBRandomTrigger() [2/2]

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

◆ ~CTBRandomTrigger() [2/2]

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

Member Function Documentation

◆ __get_beam_mode_str() [1/2]

static const std::string & dunedaq::appmodel::CTBRandomTrigger::__get_beam_mode_str ( )
inlinestaticnoexcept

Definition at line 92 of file CTBRandomTrigger.hpp.

92{ return s_beam_mode; }

◆ __get_beam_mode_str() [2/2]

static const std::string & dunedaq::appmodel::CTBRandomTrigger::__get_beam_mode_str ( )
inlinestaticnoexcept

Definition at line 92 of file CTBRandomTrigger.hpp.

92{ return s_beam_mode; }

◆ __get_fixed_freq_str() [1/2]

static const std::string & dunedaq::appmodel::CTBRandomTrigger::__get_fixed_freq_str ( )
inlinestaticnoexcept

Definition at line 91 of file CTBRandomTrigger.hpp.

91{ return s_fixed_freq; }
static const std::string s_fixed_freq

◆ __get_fixed_freq_str() [2/2]

static const std::string & dunedaq::appmodel::CTBRandomTrigger::__get_fixed_freq_str ( )
inlinestaticnoexcept

Definition at line 91 of file CTBRandomTrigger.hpp.

91{ return s_fixed_freq; }

◆ __get_period_str() [1/2]

static const std::string & dunedaq::appmodel::CTBRandomTrigger::__get_period_str ( )
inlinestaticnoexcept

Definition at line 93 of file CTBRandomTrigger.hpp.

93{ return s_period; }

◆ __get_period_str() [2/2]

static const std::string & dunedaq::appmodel::CTBRandomTrigger::__get_period_str ( )
inlinestaticnoexcept

Definition at line 93 of file CTBRandomTrigger.hpp.

93{ return s_period; }

◆ get() [1/4]

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

Definition at line 83 of file CTBRandomTrigger.cpp.

84 {
85 std::vector<const dunedaq::conffwk::DalObject *> vec;
86
87 if (!get(name, vec, upcast_unregistered, true))
88 throw_get_ex(name, s_class_name, this);
89
90 return vec;
91 }
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::CTBRandomTrigger::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::CTBTrigger.

◆ get() [3/4]

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

Definition at line 93 of file CTBRandomTrigger.cpp.

94 {
95 if (first_call)
96 {
97 std::lock_guard scoped_lock(m_mutex);
98
99 check();
100 check_init();
101
102 if (get_rel_objects(name, upcast_unregistered, vec))
103 return true;
104 }
105
106 if (CTBTrigger::get(name, vec, upcast_unregistered, false)) return true;
107
108 if (first_call)
109 return get_algo_objects(name, vec);
110
111 return false;
112 }
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::CTBRandomTrigger::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_beam_mode() [1/2]

bool dunedaq::appmodel::CTBRandomTrigger::get_beam_mode ( ) const
inline

Get "beam_mode" attribute value.

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

Definition at line 134 of file CTBRandomTrigger.hpp.

135 {
136 std::lock_guard scoped_lock(m_mutex);
137 check();
138 check_init();
139 return m_beam_mode;
140 }

◆ get_beam_mode() [2/2]

bool dunedaq::appmodel::CTBRandomTrigger::get_beam_mode ( ) const
inline

Get "beam_mode" attribute value.

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

Definition at line 134 of file CTBRandomTrigger.hpp.

135 {
136 std::lock_guard scoped_lock(m_mutex);
137 check();
138 check_init();
139 return m_beam_mode;
140 }

◆ get_fixed_freq() [1/2]

bool dunedaq::appmodel::CTBRandomTrigger::get_fixed_freq ( ) const
inline

Get "fixed_freq" attribute value.

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

Definition at line 103 of file CTBRandomTrigger.hpp.

104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 return m_fixed_freq;
109 }

◆ get_fixed_freq() [2/2]

bool dunedaq::appmodel::CTBRandomTrigger::get_fixed_freq ( ) const
inline

Get "fixed_freq" attribute value.

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

Definition at line 103 of file CTBRandomTrigger.hpp.

104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 return m_fixed_freq;
109 }

◆ get_period() [1/2]

uint64_t dunedaq::appmodel::CTBRandomTrigger::get_period ( ) const
inline

Get "period" attribute value.

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

Definition at line 165 of file CTBRandomTrigger.hpp.

166 {
167 std::lock_guard scoped_lock(m_mutex);
168 check();
169 check_init();
170 return m_period;
171 }

◆ get_period() [2/2]

uint64_t dunedaq::appmodel::CTBRandomTrigger::get_period ( ) const
inline

Get "period" attribute value.

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

Definition at line 165 of file CTBRandomTrigger.hpp.

166 {
167 std::lock_guard scoped_lock(m_mutex);
168 check();
169 check_init();
170 return m_period;
171 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::CTBTrigger.

Definition at line 63 of file CTBRandomTrigger.cpp.

64 {
65 CTBTrigger::init(init_children);
66
67 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
68
69 try {
73 }
74 catch (dunedaq::conffwk::Exception & ex) {
75 throw_init_ex(ex);
76 }
77 }
virtual void init(bool init_children)
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
ConfigObject p_obj
Config object used by given template object.
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

virtual void dunedaq::appmodel::CTBRandomTrigger::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::CTBTrigger.

◆ print() [1/2]

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

Print details of the CTBRandomTrigger 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::CTBTrigger.

Definition at line 35 of file CTBRandomTrigger.cpp.

36 {
37 check_init();
38
39 try {
40 const std::string str(indent+2, ' ');
41
42 if (print_header)
43 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
44
45
46 // print direct super-classes
47
49
50
51 // print direct attributes
52
56 }
57 catch (dunedaq::conffwk::Exception & ex) {
59 }
60 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the CTBTrigger 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_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::CTBRandomTrigger::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the CTBRandomTrigger 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::CTBTrigger.

◆ set_beam_mode() [1/2]

void dunedaq::appmodel::CTBRandomTrigger::set_beam_mode ( bool value)
inline

Set "beam_mode" attribute value.

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

Definition at line 149 of file CTBRandomTrigger.hpp.

150 {
151 std::lock_guard scoped_lock(m_mutex);
152 check();
153 clear();
155 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_beam_mode() [2/2]

void dunedaq::appmodel::CTBRandomTrigger::set_beam_mode ( bool value)
inline

Set "beam_mode" attribute value.

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

Definition at line 149 of file CTBRandomTrigger.hpp.

150 {
151 std::lock_guard scoped_lock(m_mutex);
152 check();
153 clear();
155 }

◆ set_fixed_freq() [1/2]

void dunedaq::appmodel::CTBRandomTrigger::set_fixed_freq ( bool value)
inline

Set "fixed_freq" attribute value.

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

Definition at line 118 of file CTBRandomTrigger.hpp.

119 {
120 std::lock_guard scoped_lock(m_mutex);
121 check();
122 clear();
124 }

◆ set_fixed_freq() [2/2]

void dunedaq::appmodel::CTBRandomTrigger::set_fixed_freq ( bool value)
inline

Set "fixed_freq" attribute value.

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

Definition at line 118 of file CTBRandomTrigger.hpp.

119 {
120 std::lock_guard scoped_lock(m_mutex);
121 check();
122 clear();
124 }

◆ set_period() [1/2]

void dunedaq::appmodel::CTBRandomTrigger::set_period ( uint64_t value)
inline

Set "period" attribute value.

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

Definition at line 180 of file CTBRandomTrigger.hpp.

181 {
182 std::lock_guard scoped_lock(m_mutex);
183 check();
184 clear();
185 p_obj.set_by_val(s_period, value);
186 }

◆ set_period() [2/2]

void dunedaq::appmodel::CTBRandomTrigger::set_period ( uint64_t value)
inline

Set "period" attribute value.

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

Definition at line 180 of file CTBRandomTrigger.hpp.

181 {
182 std::lock_guard scoped_lock(m_mutex);
183 check();
184 clear();
185 p_obj.set_by_val(s_period, value);
186 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 29 of file CTBRandomTrigger.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 31 of file CTBRandomTrigger.hpp.

◆ conffwk::DalObject

Definition at line 30 of file CTBRandomTrigger.hpp.

◆ conffwk::DalRegistry

Definition at line 32 of file CTBRandomTrigger.hpp.

Member Data Documentation

◆ m_beam_mode

bool dunedaq::appmodel::CTBRandomTrigger::m_beam_mode
private

Definition at line 79 of file CTBRandomTrigger.hpp.

◆ m_fixed_freq

bool dunedaq::appmodel::CTBRandomTrigger::m_fixed_freq
private

Definition at line 78 of file CTBRandomTrigger.hpp.

◆ m_period

uint64_t dunedaq::appmodel::CTBRandomTrigger::m_period
private

Definition at line 80 of file CTBRandomTrigger.hpp.

◆ s_beam_mode

static const std::string dunedaq::appmodel::CTBRandomTrigger::s_beam_mode = "beam_mode"
inlinestatic

Definition at line 88 of file CTBRandomTrigger.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 44 of file CTBRandomTrigger.hpp.

◆ s_fixed_freq

static const std::string dunedaq::appmodel::CTBRandomTrigger::s_fixed_freq = "fixed_freq"
inlinestatic

Definition at line 87 of file CTBRandomTrigger.hpp.

◆ s_period

static const std::string dunedaq::appmodel::CTBRandomTrigger::s_period = "period"
inlinestatic

Definition at line 89 of file CTBRandomTrigger.hpp.


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