DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SamplesOverThresholdMinima.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _SamplesOverThresholdMinima_0_dunedaq__appmodel_0_appmodel_H_
4#define _SamplesOverThresholdMinima_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
17namespace dunedaq {
18 namespace appmodel {
19
21
22 friend class conffwk::Configuration;
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
25 friend class conffwk::DalRegistry;
26
27 protected:
28
30 virtual ~SamplesOverThresholdMinima() noexcept;
31 virtual void init(bool init_children);
32
33 public:
34
37 static const std::string& s_class_name;
38
39
49 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
50
51
61 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
62
63
64 protected:
65
66 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
67
68
69 private:
70
71 uint16_t m_sot_minimum_plane0;
72 uint16_t m_sot_minimum_plane1;
73 uint16_t m_sot_minimum_plane2;
74
75
76 public:
77
78 // attribute names
79
80 inline static const std::string s_sot_minimum_plane0 = "sot_minimum_plane0";
81 inline static const std::string s_sot_minimum_plane1 = "sot_minimum_plane1";
82 inline static const std::string s_sot_minimum_plane2 = "sot_minimum_plane2";
83
84 static const std::string& __get_sot_minimum_plane0_str() noexcept { return s_sot_minimum_plane0; }
85 static const std::string& __get_sot_minimum_plane1_str() noexcept { return s_sot_minimum_plane1; }
86 static const std::string& __get_sot_minimum_plane2_str() noexcept { return s_sot_minimum_plane2; }
87
88
96 uint16_t
98 {
99 std::lock_guard scoped_lock(m_mutex);
100 check();
101 check_init();
103 }
104
112 void
114 {
115 std::lock_guard scoped_lock(m_mutex);
116 check();
117 clear();
119 }
120
121
129 uint16_t
131 {
132 std::lock_guard scoped_lock(m_mutex);
133 check();
134 check_init();
136 }
137
145 void
147 {
148 std::lock_guard scoped_lock(m_mutex);
149 check();
150 clear();
152 }
153
154
162 uint16_t
164 {
165 std::lock_guard scoped_lock(m_mutex);
166 check();
167 check_init();
169 }
170
178 void
180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 clear();
185 }
186
187
188 };
189
190 // out stream operator
191
192 inline std::ostream& operator<<(std::ostream& s, const SamplesOverThresholdMinima& obj)
193 {
194 return obj.print_object(s);
195 }
196
197 typedef std::vector<const SamplesOverThresholdMinima*>::const_iterator SamplesOverThresholdMinimaIterator;
198
199 }
200}
201
202#endif
void set_sot_minimum_plane1(uint16_t value)
Set "sot_minimum_plane1" attribute value. Minimum TP samples over threshold for plane 1.
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...
uint16_t get_sot_minimum_plane2() const
Get "sot_minimum_plane2" attribute value. Minimum TP samples over threshold for plane 2.
void set_sot_minimum_plane2(uint16_t value)
Set "sot_minimum_plane2" attribute value. Minimum TP samples over threshold for plane 2.
void set_sot_minimum_plane0(uint16_t value)
Set "sot_minimum_plane0" attribute value. Minimum TP samples over threshold for plane 0.
uint16_t get_sot_minimum_plane1() const
Get "sot_minimum_plane1" attribute value. Minimum TP samples over threshold for plane 1.
static const std::string & __get_sot_minimum_plane1_str() noexcept
SamplesOverThresholdMinima(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_sot_minimum_plane0_str() noexcept
static const std::string & __get_sot_minimum_plane2_str() noexcept
uint16_t get_sot_minimum_plane0() const
Get "sot_minimum_plane0" attribute value. Minimum TP samples over threshold for plane 0.
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< constSamplesOverThresholdMinima * >::const_iterator SamplesOverThresholdMinimaIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.