DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TAMakerHorizontalMuonAlgorithm.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TAMakerHorizontalMuonAlgorithm_0_dunedaq__appmodel_0_appmodel_H_
4#define _TAMakerHorizontalMuonAlgorithm_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
24
25 friend class conffwk::Configuration;
26 friend class conffwk::DalObject;
27 friend class conffwk::DalFactory;
28 friend class conffwk::DalRegistry;
29
30 protected:
31
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
74 uint32_t m_window_length;
78 uint32_t m_adc_threshold;
80 uint32_t m_adjacency_threshold;
81 uint32_t m_adjacency_tolerance;
82
83
84 public:
85
86 // attribute names
87
88 inline static const std::string s_window_length = "window_length";
89 inline static const std::string s_trigger_on_adc = "trigger_on_adc";
90 inline static const std::string s_trigger_on_n_channels = "trigger_on_n_channels";
91 inline static const std::string s_trigger_on_adjacency = "trigger_on_adjacency";
92 inline static const std::string s_adc_threshold = "adc_threshold";
93 inline static const std::string s_n_channels_threshold = "n_channels_threshold";
94 inline static const std::string s_adjacency_threshold = "adjacency_threshold";
95 inline static const std::string s_adjacency_tolerance = "adjacency_tolerance";
96
97 static const std::string& __get_window_length_str() noexcept { return s_window_length; }
98 static const std::string& __get_trigger_on_adc_str() noexcept { return s_trigger_on_adc; }
99 static const std::string& __get_trigger_on_n_channels_str() noexcept { return s_trigger_on_n_channels; }
100 static const std::string& __get_trigger_on_adjacency_str() noexcept { return s_trigger_on_adjacency; }
101 static const std::string& __get_adc_threshold_str() noexcept { return s_adc_threshold; }
102 static const std::string& __get_n_channels_threshold_str() noexcept { return s_n_channels_threshold; }
103 static const std::string& __get_adjacency_threshold_str() noexcept { return s_adjacency_threshold; }
104 static const std::string& __get_adjacency_tolerance_str() noexcept { return s_adjacency_tolerance; }
105
106
114 uint32_t
116 {
117 std::lock_guard scoped_lock(m_mutex);
118 check();
119 check_init();
120 return m_window_length;
121 }
122
130 void
131 set_window_length(uint32_t value)
132 {
133 std::lock_guard scoped_lock(m_mutex);
134 check();
135 clear();
137 }
138
139
147 bool
149 {
150 std::lock_guard scoped_lock(m_mutex);
151 check();
152 check_init();
153 return m_trigger_on_adc;
154 }
155
163 void
165 {
166 std::lock_guard scoped_lock(m_mutex);
167 check();
168 clear();
170 }
171
172
180 bool
182 {
183 std::lock_guard scoped_lock(m_mutex);
184 check();
185 check_init();
187 }
188
196 void
198 {
199 std::lock_guard scoped_lock(m_mutex);
200 check();
201 clear();
203 }
204
205
213 bool
215 {
216 std::lock_guard scoped_lock(m_mutex);
217 check();
218 check_init();
220 }
221
229 void
231 {
232 std::lock_guard scoped_lock(m_mutex);
233 check();
234 clear();
236 }
237
238
246 uint32_t
248 {
249 std::lock_guard scoped_lock(m_mutex);
250 check();
251 check_init();
252 return m_adc_threshold;
253 }
254
262 void
263 set_adc_threshold(uint32_t value)
264 {
265 std::lock_guard scoped_lock(m_mutex);
266 check();
267 clear();
269 }
270
271
279 uint32_t
281 {
282 std::lock_guard scoped_lock(m_mutex);
283 check();
284 check_init();
286 }
287
295 void
297 {
298 std::lock_guard scoped_lock(m_mutex);
299 check();
300 clear();
302 }
303
304
312 uint32_t
314 {
315 std::lock_guard scoped_lock(m_mutex);
316 check();
317 check_init();
319 }
320
328 void
330 {
331 std::lock_guard scoped_lock(m_mutex);
332 check();
333 clear();
335 }
336
337
345 uint32_t
347 {
348 std::lock_guard scoped_lock(m_mutex);
349 check();
350 check_init();
352 }
353
361 void
363 {
364 std::lock_guard scoped_lock(m_mutex);
365 check();
366 clear();
368 }
369
370
371 };
372
373 // out stream operator
374
375 inline std::ostream& operator<<(std::ostream& s, const TAMakerHorizontalMuonAlgorithm& obj)
376 {
377 return obj.print_object(s);
378 }
379
380 typedef std::vector<const TAMakerHorizontalMuonAlgorithm*>::const_iterator TAMakerHorizontalMuonAlgorithmIterator;
381
382 }
383}
384
385#endif
void set_adjacency_tolerance(uint32_t value)
Set "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency...
TAMakerHorizontalMuonAlgorithm(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_adjacency_threshold(uint32_t value)
Set "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
void set_trigger_on_adc(bool value)
Set "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
void set_n_channels_threshold(uint32_t value)
Set "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
bool get_trigger_on_adc() const
Get "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
void set_trigger_on_n_channels(bool value)
Set "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.
uint32_t get_adjacency_tolerance() const
Get "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency...
static const std::string & __get_trigger_on_n_channels_str() noexcept
void set_trigger_on_adjacency(bool value)
Set "trigger_on_adjacency" attribute value. Whether to trigger on adjacency.
bool get_trigger_on_adjacency() const
Get "trigger_on_adjacency" attribute value. Whether to trigger on adjacency.
bool get_trigger_on_n_channels() const
Get "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.
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_window_length(uint32_t value)
Set "window_length" attribute value. Window length (in ticks) for the algorithm.
uint32_t get_adjacency_threshold() const
Get "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
uint32_t get_n_channels_threshold() const
Get "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
uint32_t get_window_length() const
Get "window_length" attribute value. Window length (in ticks) for the algorithm.
void set_adc_threshold(uint32_t value)
Set "adc_threshold" attribute value. Threshold for the ADC integral 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::vector< constTAMakerHorizontalMuonAlgorithm * >::const_iterator TAMakerHorizontalMuonAlgorithmIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.