DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TAMakerChannelAdjacencyAlgorithm.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TAMakerChannelAdjacencyAlgorithm_0_dunedaq__appmodel_0_appmodel_H_
4#define _TAMakerChannelAdjacencyAlgorithm_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;
75 uint32_t m_adjacency_threshold;
76 uint32_t m_adjacency_tolerance;
77
78
79 public:
80
81 // attribute names
82
83 inline static const std::string s_window_length = "window_length";
84 inline static const std::string s_adjacency_threshold = "adjacency_threshold";
85 inline static const std::string s_adjacency_tolerance = "adjacency_tolerance";
86
87 static const std::string& __get_window_length_str() noexcept { return s_window_length; }
88 static const std::string& __get_adjacency_threshold_str() noexcept { return s_adjacency_threshold; }
89 static const std::string& __get_adjacency_tolerance_str() noexcept { return s_adjacency_tolerance; }
90
91
99 uint32_t
101 {
102 std::lock_guard scoped_lock(m_mutex);
103 check();
104 check_init();
105 return m_window_length;
106 }
107
115 void
116 set_window_length(uint32_t value)
117 {
118 std::lock_guard scoped_lock(m_mutex);
119 check();
120 clear();
122 }
123
124
132 uint32_t
134 {
135 std::lock_guard scoped_lock(m_mutex);
136 check();
137 check_init();
139 }
140
148 void
150 {
151 std::lock_guard scoped_lock(m_mutex);
152 check();
153 clear();
155 }
156
157
165 uint32_t
167 {
168 std::lock_guard scoped_lock(m_mutex);
169 check();
170 check_init();
172 }
173
181 void
183 {
184 std::lock_guard scoped_lock(m_mutex);
185 check();
186 clear();
188 }
189
190
191 };
192
193 // out stream operator
194
195 inline std::ostream& operator<<(std::ostream& s, const TAMakerChannelAdjacencyAlgorithm& obj)
196 {
197 return obj.print_object(s);
198 }
199
200 typedef std::vector<const TAMakerChannelAdjacencyAlgorithm*>::const_iterator TAMakerChannelAdjacencyAlgorithmIterator;
201
202 }
203}
204
205#endif
TAMakerChannelAdjacencyAlgorithm(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_adjacency_tolerance(uint32_t value)
Set "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency...
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...
uint32_t get_adjacency_threshold() const
Get "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
void set_adjacency_threshold(uint32_t value)
Set "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
uint32_t get_adjacency_tolerance() const
Get "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.
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< constTAMakerChannelAdjacencyAlgorithm * >::const_iterator TAMakerChannelAdjacencyAlgorithmIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.