DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
AVXRunSumProcessor.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _AVXRunSumProcessor_0_dunedaq__appmodel_0_appmodel_H_
4#define _AVXRunSumProcessor_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
14#include "conffwk/DalObject.hpp"
15
16 // include files for classes used in inheritance hierarchy
17
19
20namespace dunedaq {
21 namespace appmodel {
22
27 class AVXRunSumProcessor : public dunedaq::appmodel::ProcessingStep {
28
30 friend class conffwk::DalObject;
31 friend class conffwk::DalFactory;
33
34 protected:
35
37 virtual ~AVXRunSumProcessor() noexcept;
38 virtual void init(bool init_children);
39
40 public:
41
44 static const std::string& s_class_name;
45
46
56 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
57
58
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
84
85
86 public:
87
88 // attribute names
89
90 inline static const std::string s_memory_factor_plane0 = "memory_factor_plane0";
91 inline static const std::string s_memory_factor_plane1 = "memory_factor_plane1";
92 inline static const std::string s_memory_factor_plane2 = "memory_factor_plane2";
93 inline static const std::string s_scale_factor_plane0 = "scale_factor_plane0";
94 inline static const std::string s_scale_factor_plane1 = "scale_factor_plane1";
95 inline static const std::string s_scale_factor_plane2 = "scale_factor_plane2";
96
97 static const std::string& __get_memory_factor_plane0_str() noexcept { return s_memory_factor_plane0; }
98 static const std::string& __get_memory_factor_plane1_str() noexcept { return s_memory_factor_plane1; }
99 static const std::string& __get_memory_factor_plane2_str() noexcept { return s_memory_factor_plane2; }
100 static const std::string& __get_scale_factor_plane0_str() noexcept { return s_scale_factor_plane0; }
101 static const std::string& __get_scale_factor_plane1_str() noexcept { return s_scale_factor_plane1; }
102 static const std::string& __get_scale_factor_plane2_str() noexcept { return s_scale_factor_plane2; }
103
104
112 uint8_t
114 {
115 std::lock_guard scoped_lock(m_mutex);
116 check();
117 check_init();
119 }
120
128 void
130 {
131 std::lock_guard scoped_lock(m_mutex);
132 check();
133 clear();
135 }
136
137
145 uint8_t
147 {
148 std::lock_guard scoped_lock(m_mutex);
149 check();
150 check_init();
152 }
153
161 void
163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 clear();
168 }
169
170
178 uint8_t
180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
185 }
186
194 void
196 {
197 std::lock_guard scoped_lock(m_mutex);
198 check();
199 clear();
201 }
202
203
211 uint8_t
213 {
214 std::lock_guard scoped_lock(m_mutex);
215 check();
216 check_init();
218 }
219
227 void
229 {
230 std::lock_guard scoped_lock(m_mutex);
231 check();
232 clear();
234 }
235
236
244 uint8_t
246 {
247 std::lock_guard scoped_lock(m_mutex);
248 check();
249 check_init();
251 }
252
260 void
262 {
263 std::lock_guard scoped_lock(m_mutex);
264 check();
265 clear();
267 }
268
269
277 uint8_t
279 {
280 std::lock_guard scoped_lock(m_mutex);
281 check();
282 check_init();
284 }
285
293 void
295 {
296 std::lock_guard scoped_lock(m_mutex);
297 check();
298 clear();
300 }
301
302
303 };
304
305 // out stream operator
306
307 inline std::ostream& operator<<(std::ostream& s, const AVXRunSumProcessor& obj)
308 {
309 return obj.print_object(s);
310 }
311
312 typedef std::vector<const AVXRunSumProcessor*>::const_iterator AVXRunSumProcessorIterator;
313
314 }
315}
316
317#endif
uint8_t get_scale_factor_plane2() const
Get "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.
uint8_t get_memory_factor_plane2() const
Get "memory_factor_plane2" attribute value. Running sum memory factor for plane 2....
void set_scale_factor_plane0(uint8_t value)
Set "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.
static const std::string & __get_scale_factor_plane1_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...
AVXRunSumProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string s_memory_factor_plane0
static const std::string s_scale_factor_plane0
void set_scale_factor_plane2(uint8_t value)
Set "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.
uint8_t get_scale_factor_plane1() const
Get "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.
uint8_t get_memory_factor_plane0() const
Get "memory_factor_plane0" attribute value. Running sum memory factor for plane 0....
static const std::string & __get_memory_factor_plane2_str() noexcept
void set_memory_factor_plane2(uint8_t value)
Set "memory_factor_plane2" attribute value. Running sum memory factor for plane 2....
static const std::string & __get_scale_factor_plane0_str() noexcept
virtual void init(bool init_children)
static const std::string s_scale_factor_plane1
void set_memory_factor_plane0(uint8_t value)
Set "memory_factor_plane0" attribute value. Running sum memory factor for plane 0....
uint8_t get_memory_factor_plane1() const
Get "memory_factor_plane1" attribute value. Running sum memory factor for plane 1....
static const std::string & __get_memory_factor_plane1_str() noexcept
static const std::string s_memory_factor_plane1
uint8_t get_scale_factor_plane0() const
Get "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.
static const std::string & __get_memory_factor_plane0_str() noexcept
void set_scale_factor_plane1(uint8_t value)
Set "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.
static const std::string s_scale_factor_plane2
void set_memory_factor_plane1(uint8_t value)
Set "memory_factor_plane1" attribute value. Running sum memory factor for plane 1....
static const std::string s_memory_factor_plane2
static const std::string & __get_scale_factor_plane2_str() noexcept
void set_by_val(const std::string &name, T value)
Set attribute value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
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...
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constAVXRunSumProcessor * >::const_iterator AVXRunSumProcessorIterator
Including Qt Headers.