DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
AVXThresholdProcessor.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _AVXThresholdProcessor_0_dunedaq__appmodel_0_appmodel_H_
4
#define _AVXThresholdProcessor_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/ProcessingStep.hpp
"
19
20
namespace
dunedaq
{
21
namespace
appmodel
{
22
26
27
class
AVXThresholdProcessor
:
public
dunedaq::appmodel::ProcessingStep
{
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
AVXThresholdProcessor
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
37
virtual
~AVXThresholdProcessor
() 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
int16_t
m_plane0
;
79
int16_t
m_plane1
;
80
int16_t
m_plane2
;
81
82
83
public:
84
85
// attribute names
86
87
inline static const
std
::
string
s_plane0
=
"plane0"
;
88
inline static const
std
::
string
s_plane1
=
"plane1"
;
89
inline static const
std
::
string
s_plane2
=
"plane2"
;
90
91
static const
std
::
string
&
__get_plane0_str
() noexcept {
return
s_plane0
; }
92
static
const
std::string&
__get_plane1_str
() noexcept {
return
s_plane1
; }
93
static
const
std::string&
__get_plane2_str
() noexcept {
return
s_plane2
; }
94
95
102
103
int16_t
104
get_plane0
()
const
105
{
106
std::lock_guard scoped_lock(
m_mutex
);
107
check
();
108
check_init
();
109
return
m_plane0
;
110
}
111
118
119
void
120
set_plane0
(int16_t value)
121
{
122
std::lock_guard scoped_lock(
m_mutex
);
123
check
();
124
clear
();
125
p_obj
.set_by_val(
s_plane0
, value);
126
}
127
128
135
136
int16_t
137
get_plane1
()
const
138
{
139
std::lock_guard scoped_lock(
m_mutex
);
140
check
();
141
check_init
();
142
return
m_plane1
;
143
}
144
151
152
void
153
set_plane1
(int16_t value)
154
{
155
std::lock_guard scoped_lock(
m_mutex
);
156
check
();
157
clear
();
158
p_obj
.set_by_val(
s_plane1
, value);
159
}
160
161
168
169
int16_t
170
get_plane2
()
const
171
{
172
std::lock_guard scoped_lock(
m_mutex
);
173
check
();
174
check_init
();
175
return
m_plane2
;
176
}
177
184
185
void
186
set_plane2
(int16_t value)
187
{
188
std::lock_guard scoped_lock(
m_mutex
);
189
check
();
190
clear
();
191
p_obj
.set_by_val(
s_plane2
, value);
192
}
193
194
195
};
196
197
// out stream operator
198
199
inline
std::ostream&
operator<<
(std::ostream& s,
const
AVXThresholdProcessor
&
obj
)
200
{
201
return
obj
.print_object(s);
202
}
203
204
typedef
std::vector<const AVXThresholdProcessor*>::const_iterator
AVXThresholdProcessorIterator
;
205
206
}
207
}
208
209
#endif
DalObject.hpp
dunedaq::appmodel::AVXThresholdProcessor
Definition
AVXThresholdProcessor.hpp:27
dunedaq::appmodel::AVXThresholdProcessor::set_plane0
void set_plane0(int16_t value)
Set "plane0" attribute value. Threshold for plane 0.
Definition
AVXThresholdProcessor.hpp:120
dunedaq::appmodel::AVXThresholdProcessor::s_class_name
static const std::string & s_class_name
Definition
AVXThresholdProcessor.hpp:44
dunedaq::appmodel::AVXThresholdProcessor::~AVXThresholdProcessor
virtual ~AVXThresholdProcessor() noexcept
Definition
AVXThresholdProcessor.cpp:79
dunedaq::appmodel::AVXThresholdProcessor::set_plane2
void set_plane2(int16_t value)
Set "plane2" attribute value. Threshold for plane 2.
Definition
AVXThresholdProcessor.hpp:186
dunedaq::appmodel::AVXThresholdProcessor::s_plane1
static const std::string s_plane1
Definition
AVXThresholdProcessor.hpp:88
dunedaq::appmodel::AVXThresholdProcessor::get_plane1
int16_t get_plane1() const
Get "plane1" attribute value. Threshold for plane 1.
Definition
AVXThresholdProcessor.hpp:137
dunedaq::appmodel::AVXThresholdProcessor::get_plane2
int16_t get_plane2() const
Get "plane2" attribute value. Threshold for plane 2.
Definition
AVXThresholdProcessor.hpp:170
dunedaq::appmodel::AVXThresholdProcessor::set_plane1
void set_plane1(int16_t value)
Set "plane1" attribute value. Threshold for plane 1.
Definition
AVXThresholdProcessor.hpp:153
dunedaq::appmodel::AVXThresholdProcessor::m_plane1
int16_t m_plane1
Definition
AVXThresholdProcessor.hpp:79
dunedaq::appmodel::AVXThresholdProcessor::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the AVXThresholdProcessor object.
Definition
AVXThresholdProcessor.cpp:35
dunedaq::appmodel::AVXThresholdProcessor::DalFactory
friend class conffwk::DalFactory
Definition
AVXThresholdProcessor.hpp:31
dunedaq::appmodel::AVXThresholdProcessor::s_plane2
static const std::string s_plane2
Definition
AVXThresholdProcessor.hpp:89
dunedaq::appmodel::AVXThresholdProcessor::m_plane0
int16_t m_plane0
Definition
AVXThresholdProcessor.hpp:78
dunedaq::appmodel::AVXThresholdProcessor::init
virtual void init(bool init_children)
Definition
AVXThresholdProcessor.cpp:63
dunedaq::appmodel::AVXThresholdProcessor::DalObject
friend class conffwk::DalObject
Definition
AVXThresholdProcessor.hpp:30
dunedaq::appmodel::AVXThresholdProcessor::get_plane0
int16_t get_plane0() const
Get "plane0" attribute value. Threshold for plane 0.
Definition
AVXThresholdProcessor.hpp:104
dunedaq::appmodel::AVXThresholdProcessor::__get_plane0_str
static const std::string & __get_plane0_str() noexcept
Definition
AVXThresholdProcessor.hpp:91
dunedaq::appmodel::AVXThresholdProcessor::__get_plane2_str
static const std::string & __get_plane2_str() noexcept
Definition
AVXThresholdProcessor.hpp:93
dunedaq::appmodel::AVXThresholdProcessor::m_plane2
int16_t m_plane2
Definition
AVXThresholdProcessor.hpp:80
dunedaq::appmodel::AVXThresholdProcessor::s_plane0
static const std::string s_plane0
Definition
AVXThresholdProcessor.hpp:87
dunedaq::appmodel::AVXThresholdProcessor::AVXThresholdProcessor
AVXThresholdProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
AVXThresholdProcessor.cpp:26
dunedaq::appmodel::AVXThresholdProcessor::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
AVXThresholdProcessor.cpp:83
dunedaq::appmodel::AVXThresholdProcessor::__get_plane1_str
static const std::string & __get_plane1_str() noexcept
Definition
AVXThresholdProcessor.hpp:92
dunedaq::appmodel::ProcessingStep
Definition
ProcessingStep.hpp:27
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
ProcessingStep.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::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
dunedaq::appmodel::AVXThresholdProcessorIterator
std::vector< constAVXThresholdProcessor * >::const_iterator AVXThresholdProcessorIterator
Definition
AVXThresholdProcessor.hpp:204
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