DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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
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 AVXThresholdProcessor : public dunedaq::appmodel::ProcessingStep {
28
30 friend class conffwk::DalObject;
31 friend class conffwk::DalFactory;
33
34 protected:
35
37 virtual ~AVXThresholdProcessor() 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
78 uint16_t m_plane0;
79 uint16_t m_plane1;
80 uint16_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
103 uint16_t
105 {
106 std::lock_guard scoped_lock(m_mutex);
107 check();
108 check_init();
109 return m_plane0;
110 }
111
119 void
120 set_plane0(uint16_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
136 uint16_t
138 {
139 std::lock_guard scoped_lock(m_mutex);
140 check();
141 check_init();
142 return m_plane1;
143 }
144
152 void
153 set_plane1(uint16_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
169 uint16_t
171 {
172 std::lock_guard scoped_lock(m_mutex);
173 check();
174 check_init();
175 return m_plane2;
176 }
177
185 void
186 set_plane2(uint16_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
void set_plane0(uint16_t value)
Set "plane0" attribute value. Threshold for plane 0.
uint16_t get_plane0() const
Get "plane0" attribute value. Threshold for plane 0.
void set_plane1(uint16_t value)
Set "plane1" attribute value. Threshold for plane 1.
uint16_t get_plane1() const
Get "plane1" attribute value. Threshold for plane 1.
static const std::string & __get_plane0_str() noexcept
uint16_t get_plane2() const
Get "plane2" attribute value. Threshold for plane 2.
static const std::string & __get_plane2_str() noexcept
AVXThresholdProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) 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...
void set_plane2(uint16_t value)
Set "plane2" attribute value. Threshold for plane 2.
static const std::string & __get_plane1_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< constAVXThresholdProcessor * >::const_iterator AVXThresholdProcessorIterator
Including Qt Headers.