DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TAMakerPlaneCoincidenceAlgorithm.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TAMakerPlaneCoincidenceAlgorithm_0_dunedaq__appmodel_0_appmodel_H_
4#define _TAMakerPlaneCoincidenceAlgorithm_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 TAMakerPlaneCoincidenceAlgorithm : public dunedaq::appmodel::TAAlgorithm {
24
26 friend class conffwk::DalObject;
27 friend class conffwk::DalFactory;
29
30 protected:
31
33 virtual ~TAMakerPlaneCoincidenceAlgorithm() 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
78
79
80 public:
81
82 // attribute names
83
84 inline static const std::string s_window_length = "window_length";
85 inline static const std::string s_adc_threshold = "adc_threshold";
86 inline static const std::string s_adjacency_threshold = "adjacency_threshold";
87 inline static const std::string s_adjacency_tolerance = "adjacency_tolerance";
88
89 static const std::string& __get_window_length_str() noexcept { return s_window_length; }
90 static const std::string& __get_adc_threshold_str() noexcept { return s_adc_threshold; }
91 static const std::string& __get_adjacency_threshold_str() noexcept { return s_adjacency_threshold; }
92 static const std::string& __get_adjacency_tolerance_str() noexcept { return s_adjacency_tolerance; }
93
94
102 uint32_t
104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 return m_window_length;
109 }
110
118 void
119 set_window_length(uint32_t value)
120 {
121 std::lock_guard scoped_lock(m_mutex);
122 check();
123 clear();
125 }
126
127
135 uint32_t
137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
141 return m_adc_threshold;
142 }
143
151 void
152 set_adc_threshold(uint32_t value)
153 {
154 std::lock_guard scoped_lock(m_mutex);
155 check();
156 clear();
158 }
159
160
168 uint32_t
170 {
171 std::lock_guard scoped_lock(m_mutex);
172 check();
173 check_init();
175 }
176
184 void
186 {
187 std::lock_guard scoped_lock(m_mutex);
188 check();
189 clear();
191 }
192
193
201 uint32_t
203 {
204 std::lock_guard scoped_lock(m_mutex);
205 check();
206 check_init();
208 }
209
217 void
219 {
220 std::lock_guard scoped_lock(m_mutex);
221 check();
222 clear();
224 }
225
226
227 };
228
229 // out stream operator
230
231 inline std::ostream& operator<<(std::ostream& s, const TAMakerPlaneCoincidenceAlgorithm& obj)
232 {
233 return obj.print_object(s);
234 }
235
236 typedef std::vector<const TAMakerPlaneCoincidenceAlgorithm*>::const_iterator TAMakerPlaneCoincidenceAlgorithmIterator;
237
238 }
239}
240
241#endif
uint32_t get_adjacency_tolerance() const
Get "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency...
void set_window_length(uint32_t value)
Set "window_length" attribute value. Window length (in ticks) for the algorithm.
uint32_t get_adc_threshold() const
Get "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
TAMakerPlaneCoincidenceAlgorithm(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_adc_threshold(uint32_t value)
Set "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
void set_adjacency_tolerance(uint32_t value)
Set "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency...
uint32_t get_window_length() const
Get "window_length" attribute value. Window length (in ticks) for the algorithm.
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_adjacency_threshold(uint32_t value)
Set "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
uint32_t get_adjacency_threshold() const
Get "adjacency_threshold" attribute value. Threshold for the adjacency 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< constTAMakerPlaneCoincidenceAlgorithm * >::const_iterator TAMakerPlaneCoincidenceAlgorithmIterator
Including Qt Headers.