DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
CTBRandomTrigger.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _CTBRandomTrigger_0_dunedaq__appmodel_0_appmodel_H_
4
#define _CTBRandomTrigger_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
13
#include "
conffwk/Configuration.hpp
"
14
#include "
conffwk/DalObject.hpp
"
15
16
// include files for classes used in inheritance hierarchy
17
18
#include "
appmodel/CTBTrigger.hpp
"
19
20
namespace
dunedaq
{
21
namespace
appmodel
{
22
26
27
class
CTBRandomTrigger
:
public
dunedaq::appmodel::CTBTrigger
{
28
29
friend
class
conffwk::Configuration
;
30
friend
class
conffwk::DalObject
;
31
friend
class
conffwk::DalFactory
;
32
friend
class
conffwk::DalRegistry
;
33
34
protected
:
35
36
CTBRandomTrigger
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
37
virtual
~CTBRandomTrigger
() noexcept;
38
virtual
void
init
(
bool
init_children);
39
40
public:
41
43
44
static const
std
::
string
&
s_class_name
;
45
46
55
56
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
57
58
67
68
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
69
70
71
protected:
72
73
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
74
75
76
private:
77
78
bool
m_fixed_freq
;
79
bool
m_beam_mode
;
80
uint64_t
m_period
;
81
82
83
public:
84
85
// attribute names
86
87
inline static const
std
::
string
s_fixed_freq
=
"fixed_freq"
;
88
inline static const
std
::
string
s_beam_mode
=
"beam_mode"
;
89
inline static const
std
::
string
s_period
=
"period"
;
90
91
static const
std
::
string
&
__get_fixed_freq_str
() noexcept {
return
s_fixed_freq
; }
92
static
const
std::string&
__get_beam_mode_str
() noexcept {
return
s_beam_mode
; }
93
static
const
std::string&
__get_period_str
() noexcept {
return
s_period
; }
94
95
101
102
bool
103
get_fixed_freq
()
const
104
{
105
std::lock_guard scoped_lock(
m_mutex
);
106
check
();
107
check_init
();
108
return
m_fixed_freq
;
109
}
110
116
117
void
118
set_fixed_freq
(
bool
value)
119
{
120
std::lock_guard scoped_lock(
m_mutex
);
121
check
();
122
clear
();
123
p_obj
.set_by_val(
s_fixed_freq
, value);
124
}
125
126
132
133
bool
134
get_beam_mode
()
const
135
{
136
std::lock_guard scoped_lock(
m_mutex
);
137
check
();
138
check_init
();
139
return
m_beam_mode
;
140
}
141
147
148
void
149
set_beam_mode
(
bool
value)
150
{
151
std::lock_guard scoped_lock(
m_mutex
);
152
check
();
153
clear
();
154
p_obj
.set_by_val(
s_beam_mode
, value);
155
}
156
157
163
164
uint64_t
165
get_period
()
const
166
{
167
std::lock_guard scoped_lock(
m_mutex
);
168
check
();
169
check_init
();
170
return
m_period
;
171
}
172
178
179
void
180
set_period
(uint64_t value)
181
{
182
std::lock_guard scoped_lock(
m_mutex
);
183
check
();
184
clear
();
185
p_obj
.set_by_val(
s_period
, value);
186
}
187
188
189
};
190
191
// out stream operator
192
193
inline
std::ostream&
operator<<
(std::ostream& s,
const
CTBRandomTrigger
&
obj
)
194
{
195
return
obj
.print_object(s);
196
}
197
198
typedef
std::vector<const CTBRandomTrigger*>::const_iterator
CTBRandomTriggerIterator
;
199
200
}
201
}
202
203
#endif
DalObject.hpp
dunedaq::appmodel::CTBRandomTrigger
Definition
CTBRandomTrigger.hpp:27
dunedaq::appmodel::CTBRandomTrigger::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the CTBRandomTrigger object.
Definition
CTBRandomTrigger.cpp:35
dunedaq::appmodel::CTBRandomTrigger::get_period
uint64_t get_period() const
Get "period" attribute value.
Definition
CTBRandomTrigger.hpp:165
dunedaq::appmodel::CTBRandomTrigger::s_fixed_freq
static const std::string s_fixed_freq
Definition
CTBRandomTrigger.hpp:87
dunedaq::appmodel::CTBRandomTrigger::set_period
void set_period(uint64_t value)
Set "period" attribute value.
Definition
CTBRandomTrigger.hpp:180
dunedaq::appmodel::CTBRandomTrigger::m_beam_mode
bool m_beam_mode
Definition
CTBRandomTrigger.hpp:79
dunedaq::appmodel::CTBRandomTrigger::set_beam_mode
void set_beam_mode(bool value)
Set "beam_mode" attribute value.
Definition
CTBRandomTrigger.hpp:149
dunedaq::appmodel::CTBRandomTrigger::m_fixed_freq
bool m_fixed_freq
Definition
CTBRandomTrigger.hpp:78
dunedaq::appmodel::CTBRandomTrigger::init
virtual void init(bool init_children)
Definition
CTBRandomTrigger.cpp:63
dunedaq::appmodel::CTBRandomTrigger::m_period
uint64_t m_period
Definition
CTBRandomTrigger.hpp:80
dunedaq::appmodel::CTBRandomTrigger::__get_beam_mode_str
static const std::string & __get_beam_mode_str() noexcept
Definition
CTBRandomTrigger.hpp:92
dunedaq::appmodel::CTBRandomTrigger::DalFactory
friend class conffwk::DalFactory
Definition
CTBRandomTrigger.hpp:31
dunedaq::appmodel::CTBRandomTrigger::s_class_name
static const std::string & s_class_name
Definition
CTBRandomTrigger.hpp:44
dunedaq::appmodel::CTBRandomTrigger::get_fixed_freq
bool get_fixed_freq() const
Get "fixed_freq" attribute value.
Definition
CTBRandomTrigger.hpp:103
dunedaq::appmodel::CTBRandomTrigger::s_period
static const std::string s_period
Definition
CTBRandomTrigger.hpp:89
dunedaq::appmodel::CTBRandomTrigger::get
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...
Definition
CTBRandomTrigger.cpp:83
dunedaq::appmodel::CTBRandomTrigger::DalObject
friend class conffwk::DalObject
Definition
CTBRandomTrigger.hpp:30
dunedaq::appmodel::CTBRandomTrigger::__get_fixed_freq_str
static const std::string & __get_fixed_freq_str() noexcept
Definition
CTBRandomTrigger.hpp:91
dunedaq::appmodel::CTBRandomTrigger::__get_period_str
static const std::string & __get_period_str() noexcept
Definition
CTBRandomTrigger.hpp:93
dunedaq::appmodel::CTBRandomTrigger::set_fixed_freq
void set_fixed_freq(bool value)
Set "fixed_freq" attribute value.
Definition
CTBRandomTrigger.hpp:118
dunedaq::appmodel::CTBRandomTrigger::~CTBRandomTrigger
virtual ~CTBRandomTrigger() noexcept
Definition
CTBRandomTrigger.cpp:79
dunedaq::appmodel::CTBRandomTrigger::s_beam_mode
static const std::string s_beam_mode
Definition
CTBRandomTrigger.hpp:88
dunedaq::appmodel::CTBRandomTrigger::get_beam_mode
bool get_beam_mode() const
Get "beam_mode" attribute value.
Definition
CTBRandomTrigger.hpp:134
dunedaq::appmodel::CTBRandomTrigger::CTBRandomTrigger
CTBRandomTrigger(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
CTBRandomTrigger.cpp:26
dunedaq::appmodel::CTBTrigger
Definition
CTBTrigger.hpp:37
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
dunedaq::conffwk::DalObject::clear
void clear() noexcept
Definition
DalObject.hpp:83
dunedaq::conffwk::DalObject::m_mutex
std::mutex m_mutex
Used to protect changes of DAL object.
Definition
DalObject.hpp:115
dunedaq::conffwk::DalObject::check
void check() const
Definition
DalObject.hpp:94
dunedaq::conffwk::DalObject::p_obj
ConfigObject p_obj
Config object used by given template object.
Definition
DalObject.hpp:124
dunedaq::conffwk::DalObject::check_init
void check_init() const
Check and initialize object if necessary.
Definition
DalObject.hpp:412
dunedaq::conffwk::DalRegistry
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
Definition
DalRegistry.hpp:19
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
CTBTrigger.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk.Configuration
Definition
Configuration.py:1
conffwk
Definition
__init__.py:1
dunedaq::appmodel
Definition
CardControllerWrapper.hpp:21
dunedaq::appmodel::CTBRandomTriggerIterator
std::vector< constCTBRandomTrigger * >::const_iterator CTBRandomTriggerIterator
Definition
CTBRandomTrigger.hpp:198
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.17.0