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
90
91
92 public:
93
94 // attribute names
95
96 inline static const std::string s_memory_factor_plane0 = "memory_factor_plane0";
97 inline static const std::string s_memory_factor_plane1 = "memory_factor_plane1";
98 inline static const std::string s_memory_factor_plane2 = "memory_factor_plane2";
99 inline static const std::string s_memory_divisor_plane0 = "memory_divisor_plane0";
100 inline static const std::string s_memory_divisor_plane1 = "memory_divisor_plane1";
101 inline static const std::string s_memory_divisor_plane2 = "memory_divisor_plane2";
102 inline static const std::string s_scale_factor_plane0 = "scale_factor_plane0";
103 inline static const std::string s_scale_factor_plane1 = "scale_factor_plane1";
104 inline static const std::string s_scale_factor_plane2 = "scale_factor_plane2";
105 inline static const std::string s_scale_divisor_plane0 = "scale_divisor_plane0";
106 inline static const std::string s_scale_divisor_plane1 = "scale_divisor_plane1";
107 inline static const std::string s_scale_divisor_plane2 = "scale_divisor_plane2";
108
109 static const std::string& __get_memory_factor_plane0_str() noexcept { return s_memory_factor_plane0; }
110 static const std::string& __get_memory_factor_plane1_str() noexcept { return s_memory_factor_plane1; }
111 static const std::string& __get_memory_factor_plane2_str() noexcept { return s_memory_factor_plane2; }
112 static const std::string& __get_memory_divisor_plane0_str() noexcept { return s_memory_divisor_plane0; }
113 static const std::string& __get_memory_divisor_plane1_str() noexcept { return s_memory_divisor_plane1; }
114 static const std::string& __get_memory_divisor_plane2_str() noexcept { return s_memory_divisor_plane2; }
115 static const std::string& __get_scale_factor_plane0_str() noexcept { return s_scale_factor_plane0; }
116 static const std::string& __get_scale_factor_plane1_str() noexcept { return s_scale_factor_plane1; }
117 static const std::string& __get_scale_factor_plane2_str() noexcept { return s_scale_factor_plane2; }
118 static const std::string& __get_scale_divisor_plane0_str() noexcept { return s_scale_divisor_plane0; }
119 static const std::string& __get_scale_divisor_plane1_str() noexcept { return s_scale_divisor_plane1; }
120 static const std::string& __get_scale_divisor_plane2_str() noexcept { return s_scale_divisor_plane2; }
121
122
130 uint8_t
132 {
133 std::lock_guard scoped_lock(m_mutex);
134 check();
135 check_init();
137 }
138
146 void
148 {
149 std::lock_guard scoped_lock(m_mutex);
150 check();
151 clear();
153 }
154
155
163 uint8_t
165 {
166 std::lock_guard scoped_lock(m_mutex);
167 check();
168 check_init();
170 }
171
179 void
181 {
182 std::lock_guard scoped_lock(m_mutex);
183 check();
184 clear();
186 }
187
188
196 uint8_t
198 {
199 std::lock_guard scoped_lock(m_mutex);
200 check();
201 check_init();
203 }
204
212 void
214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 clear();
219 }
220
221
229 uint8_t
231 {
232 std::lock_guard scoped_lock(m_mutex);
233 check();
234 check_init();
236 }
237
245 void
247 {
248 std::lock_guard scoped_lock(m_mutex);
249 check();
250 clear();
252 }
253
254
262 uint8_t
264 {
265 std::lock_guard scoped_lock(m_mutex);
266 check();
267 check_init();
269 }
270
278 void
280 {
281 std::lock_guard scoped_lock(m_mutex);
282 check();
283 clear();
285 }
286
287
295 uint8_t
297 {
298 std::lock_guard scoped_lock(m_mutex);
299 check();
300 check_init();
302 }
303
311 void
313 {
314 std::lock_guard scoped_lock(m_mutex);
315 check();
316 clear();
318 }
319
320
328 uint8_t
330 {
331 std::lock_guard scoped_lock(m_mutex);
332 check();
333 check_init();
335 }
336
344 void
346 {
347 std::lock_guard scoped_lock(m_mutex);
348 check();
349 clear();
351 }
352
353
361 uint8_t
363 {
364 std::lock_guard scoped_lock(m_mutex);
365 check();
366 check_init();
368 }
369
377 void
379 {
380 std::lock_guard scoped_lock(m_mutex);
381 check();
382 clear();
384 }
385
386
394 uint8_t
396 {
397 std::lock_guard scoped_lock(m_mutex);
398 check();
399 check_init();
401 }
402
410 void
412 {
413 std::lock_guard scoped_lock(m_mutex);
414 check();
415 clear();
417 }
418
419
427 uint8_t
429 {
430 std::lock_guard scoped_lock(m_mutex);
431 check();
432 check_init();
434 }
435
443 void
445 {
446 std::lock_guard scoped_lock(m_mutex);
447 check();
448 clear();
450 }
451
452
460 uint8_t
462 {
463 std::lock_guard scoped_lock(m_mutex);
464 check();
465 check_init();
467 }
468
476 void
478 {
479 std::lock_guard scoped_lock(m_mutex);
480 check();
481 clear();
483 }
484
485
493 uint8_t
495 {
496 std::lock_guard scoped_lock(m_mutex);
497 check();
498 check_init();
500 }
501
509 void
511 {
512 std::lock_guard scoped_lock(m_mutex);
513 check();
514 clear();
516 }
517
518
519 };
520
521 // out stream operator
522
523 inline std::ostream& operator<<(std::ostream& s, const AVXRunSumProcessor& obj)
524 {
525 return obj.print_object(s);
526 }
527
528 typedef std::vector<const AVXRunSumProcessor*>::const_iterator AVXRunSumProcessorIterator;
529
530 }
531}
532
533#endif
uint8_t get_scale_factor_plane2() const
Get "scale_factor_plane2" attribute value. Running sum scale factor for plane 2.
void set_scale_divisor_plane2(uint8_t value)
Set "scale_divisor_plane2" attribute value. Running sum scale divisor for plane 2.
uint8_t get_memory_factor_plane2() const
Get "memory_factor_plane2" attribute value. Running sum memory factor for plane 2.
uint8_t get_memory_divisor_plane1() const
Get "memory_divisor_plane1" attribute value. Running sum memory divisor for plane 1.
uint8_t get_scale_divisor_plane0() const
Get "scale_divisor_plane0" attribute value. Running sum scale divisor for plane 0.
void set_scale_factor_plane0(uint8_t value)
Set "scale_factor_plane0" attribute value. Running sum scale factor for plane 0.
void set_scale_divisor_plane1(uint8_t value)
Set "scale_divisor_plane1" attribute value. Running sum scale divisor for plane 1.
uint8_t get_memory_divisor_plane0() const
Get "memory_divisor_plane0" attribute value. Running sum memory divisor for plane 0.
void set_memory_divisor_plane1(uint8_t value)
Set "memory_divisor_plane1" attribute value. Running sum memory divisor for plane 1.
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
void set_scale_factor_plane2(uint8_t value)
Set "scale_factor_plane2" attribute value. Running sum scale factor for plane 2.
uint8_t get_scale_factor_plane1() const
Get "scale_factor_plane1" attribute value. Running sum scale factor for plane 1.
static const std::string & __get_scale_divisor_plane0_str() noexcept
uint8_t get_scale_divisor_plane2() const
Get "scale_divisor_plane2" attribute value. Running sum scale divisor for plane 2.
static const std::string & __get_memory_divisor_plane0_str() noexcept
static const std::string s_scale_divisor_plane2
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
static const std::string & __get_scale_divisor_plane2_str() noexcept
virtual void init(bool init_children)
static const std::string s_memory_divisor_plane2
void set_memory_divisor_plane0(uint8_t value)
Set "memory_divisor_plane0" attribute value. Running sum memory divisor for plane 0.
static const std::string & __get_memory_divisor_plane2_str() noexcept
void set_memory_divisor_plane2(uint8_t value)
Set "memory_divisor_plane2" attribute value. Running sum memory divisor for plane 2.
static const std::string s_memory_divisor_plane1
void set_memory_factor_plane0(uint8_t value)
Set "memory_factor_plane0" attribute value. Running sum memory factor for plane 0.
static const std::string & __get_memory_divisor_plane1_str() noexcept
static const std::string s_scale_divisor_plane1
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_scale_divisor_plane1_str() noexcept
static const std::string s_scale_divisor_plane0
static const std::string & __get_memory_factor_plane1_str() noexcept
uint8_t get_scale_divisor_plane1() const
Get "scale_divisor_plane1" attribute value. Running sum scale divisor for plane 1.
static const std::string s_memory_factor_plane1
static const std::string s_memory_divisor_plane0
uint8_t get_scale_factor_plane0() const
Get "scale_factor_plane0" attribute value. Running sum scale factor for plane 0.
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.
void set_memory_factor_plane1(uint8_t value)
Set "memory_factor_plane1" attribute value. Running sum memory factor for plane 1.
void set_scale_divisor_plane0(uint8_t value)
Set "scale_divisor_plane0" attribute value. Running sum scale divisor for plane 0.
static const std::string s_memory_factor_plane2
static const std::string & __get_scale_factor_plane2_str() noexcept
uint8_t get_memory_divisor_plane2() const
Get "memory_divisor_plane2" attribute value. Running sum memory divisor for plane 2.
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
The DUNE-DAQ namespace.
msgpack::object obj