DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TCMakerChannelAdjacencyAlgorithm.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TCMakerChannelAdjacencyAlgorithm_0_dunedaq__appmodel_0_appmodel_H_
4#define _TCMakerChannelAdjacencyAlgorithm_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
23 class TCMakerChannelAdjacencyAlgorithm : public dunedaq::appmodel::TCAlgorithm {
24
26 friend class conffwk::DalObject;
27 friend class conffwk::DalFactory;
29
30 protected:
31
33 virtual ~TCMakerChannelAdjacencyAlgorithm() noexcept;
34 virtual void init(bool init_children);
35
36 public:
37
40 static const std::string& s_class_name;
41
42
52 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
53
54
64 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
65
66
67 protected:
68
69 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
70
71
72 private:
73
79
80
81 public:
82
83 // attribute names
84
85 inline static const std::string s_window_length = "window_length";
86 inline static const std::string s_trigger_on_adc = "trigger_on_adc";
87 inline static const std::string s_trigger_on_n_channels = "trigger_on_n_channels";
88 inline static const std::string s_adc_threshold = "adc_threshold";
89 inline static const std::string s_n_channels_threshold = "n_channels_threshold";
90
91 static const std::string& __get_window_length_str() noexcept { return s_window_length; }
92 static const std::string& __get_trigger_on_adc_str() noexcept { return s_trigger_on_adc; }
93 static const std::string& __get_trigger_on_n_channels_str() noexcept { return s_trigger_on_n_channels; }
94 static const std::string& __get_adc_threshold_str() noexcept { return s_adc_threshold; }
95 static const std::string& __get_n_channels_threshold_str() noexcept { return s_n_channels_threshold; }
96
97
105 uint32_t
107 {
108 std::lock_guard scoped_lock(m_mutex);
109 check();
110 check_init();
111 return m_window_length;
112 }
113
121 void
122 set_window_length(uint32_t value)
123 {
124 std::lock_guard scoped_lock(m_mutex);
125 check();
126 clear();
128 }
129
130
138 bool
140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 check_init();
144 return m_trigger_on_adc;
145 }
146
154 void
156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }
162
163
171 bool
173 {
174 std::lock_guard scoped_lock(m_mutex);
175 check();
176 check_init();
178 }
179
187 void
189 {
190 std::lock_guard scoped_lock(m_mutex);
191 check();
192 clear();
194 }
195
196
204 uint32_t
206 {
207 std::lock_guard scoped_lock(m_mutex);
208 check();
209 check_init();
210 return m_adc_threshold;
211 }
212
220 void
221 set_adc_threshold(uint32_t value)
222 {
223 std::lock_guard scoped_lock(m_mutex);
224 check();
225 clear();
227 }
228
229
237 uint32_t
239 {
240 std::lock_guard scoped_lock(m_mutex);
241 check();
242 check_init();
244 }
245
253 void
255 {
256 std::lock_guard scoped_lock(m_mutex);
257 check();
258 clear();
260 }
261
262
263 };
264
265 // out stream operator
266
267 inline std::ostream& operator<<(std::ostream& s, const TCMakerChannelAdjacencyAlgorithm& obj)
268 {
269 return obj.print_object(s);
270 }
271
272 typedef std::vector<const TCMakerChannelAdjacencyAlgorithm*>::const_iterator TCMakerChannelAdjacencyAlgorithmIterator;
273
274 }
275}
276
277#endif
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...
bool get_trigger_on_n_channels() const
Get "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.
uint32_t get_adc_threshold() const
Get "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
bool get_trigger_on_adc() const
Get "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
void set_trigger_on_adc(bool value)
Set "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
uint32_t get_window_length() const
Get "window_length" attribute value. Window length (in ticks) for the algorithm.
void set_trigger_on_n_channels(bool value)
Set "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.
void set_adc_threshold(uint32_t value)
Set "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
void set_n_channels_threshold(uint32_t value)
Set "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
uint32_t get_n_channels_threshold() const
Get "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
TCMakerChannelAdjacencyAlgorithm(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_window_length(uint32_t value)
Set "window_length" attribute value. Window length (in ticks) for the algorithm.
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< constTCMakerChannelAdjacencyAlgorithm * >::const_iterator TCMakerChannelAdjacencyAlgorithmIterator
Including Qt Headers.