DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
TAMakerADCSimpleWindowAlgorithm.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _TAMakerADCSimpleWindowAlgorithm_0_dunedaq__appmodel_0_appmodel_H_
4
#define _TAMakerADCSimpleWindowAlgorithm_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
13
#include "
conffwk/Configuration.hpp
"
14
#include "
conffwk/DalObject.hpp
"
15
16
// include files for classes used in inheritance hierarchy
17
18
#include "
appmodel/TAAlgorithm.hpp
"
19
20
namespace
dunedaq
{
21
namespace
appmodel
{
22
23
class
TAMakerADCSimpleWindowAlgorithm
:
public
dunedaq::appmodel::TAAlgorithm
{
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
32
TAMakerADCSimpleWindowAlgorithm
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
33
virtual
~TAMakerADCSimpleWindowAlgorithm
() noexcept;
34
virtual
void
init
(
bool
init_children);
35
36
public:
37
39
40
static const
std
::
string
&
s_class_name
;
41
42
51
52
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
53
54
63
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_adc_threshold
;
75
uint32_t
m_window_length
;
76
77
78
public:
79
80
// attribute names
81
82
inline static const
std
::
string
s_adc_threshold
=
"adc_threshold"
;
83
inline static const
std
::
string
s_window_length
=
"window_length"
;
84
85
static const
std
::
string
&
__get_adc_threshold_str
() noexcept {
return
s_adc_threshold
; }
86
static
const
std::string&
__get_window_length_str
() noexcept {
return
s_window_length
; }
87
88
95
96
uint32_t
97
get_adc_threshold
()
const
98
{
99
std::lock_guard scoped_lock(
m_mutex
);
100
check
();
101
check_init
();
102
return
m_adc_threshold
;
103
}
104
111
112
void
113
set_adc_threshold
(uint32_t value)
114
{
115
std::lock_guard scoped_lock(
m_mutex
);
116
check
();
117
clear
();
118
p_obj
.set_by_val(
s_adc_threshold
, value);
119
}
120
121
128
129
uint32_t
130
get_window_length
()
const
131
{
132
std::lock_guard scoped_lock(
m_mutex
);
133
check
();
134
check_init
();
135
return
m_window_length
;
136
}
137
144
145
void
146
set_window_length
(uint32_t value)
147
{
148
std::lock_guard scoped_lock(
m_mutex
);
149
check
();
150
clear
();
151
p_obj
.set_by_val(
s_window_length
, value);
152
}
153
154
155
};
156
157
// out stream operator
158
159
inline
std::ostream&
operator<<
(std::ostream& s,
const
TAMakerADCSimpleWindowAlgorithm
&
obj
)
160
{
161
return
obj
.print_object(s);
162
}
163
164
typedef
std::vector<const TAMakerADCSimpleWindowAlgorithm*>::const_iterator
TAMakerADCSimpleWindowAlgorithmIterator
;
165
166
}
167
}
168
169
#endif
DalObject.hpp
dunedaq::appmodel::TAAlgorithm
Definition
TAAlgorithm.hpp:27
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:23
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::s_class_name
static const std::string & s_class_name
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:40
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::m_adc_threshold
uint32_t m_adc_threshold
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:74
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::s_adc_threshold
static const std::string s_adc_threshold
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:82
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::set_window_length
void set_window_length(uint32_t value)
Set "window_length" attribute value. Window length (in ticks) for the ADC integral algorithm.
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:146
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::m_window_length
uint32_t m_window_length
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:75
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::get_adc_threshold
uint32_t get_adc_threshold() const
Get "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:97
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::set_adc_threshold
void set_adc_threshold(uint32_t value)
Set "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:113
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::~TAMakerADCSimpleWindowAlgorithm
virtual ~TAMakerADCSimpleWindowAlgorithm() noexcept
Definition
TAMakerADCSimpleWindowAlgorithm.cpp:77
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::TAMakerADCSimpleWindowAlgorithm
TAMakerADCSimpleWindowAlgorithm(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
TAMakerADCSimpleWindowAlgorithm.cpp:26
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::get_window_length
uint32_t get_window_length() const
Get "window_length" attribute value. Window length (in ticks) for the ADC integral algorithm.
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:130
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::DalFactory
friend class conffwk::DalFactory
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:27
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::s_window_length
static const std::string s_window_length
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:83
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the TAMakerADCSimpleWindowAlgorithm object.
Definition
TAMakerADCSimpleWindowAlgorithm.cpp:35
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::__get_adc_threshold_str
static const std::string & __get_adc_threshold_str() noexcept
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:85
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::__get_window_length_str
static const std::string & __get_window_length_str() noexcept
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:86
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::DalObject
friend class conffwk::DalObject
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:26
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::get
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...
Definition
TAMakerADCSimpleWindowAlgorithm.cpp:81
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithm::init
virtual void init(bool init_children)
Definition
TAMakerADCSimpleWindowAlgorithm.cpp:62
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
dunedaq::conffwk::DalObject::clear
void clear() noexcept
Definition
DalObject.hpp:83
dunedaq::conffwk::DalObject::m_mutex
std::mutex m_mutex
Used to protect changes of DAL object.
Definition
DalObject.hpp:115
dunedaq::conffwk::DalObject::check
void check() const
Definition
DalObject.hpp:94
dunedaq::conffwk::DalObject::p_obj
ConfigObject p_obj
Config object used by given template object.
Definition
DalObject.hpp:124
dunedaq::conffwk::DalObject::check_init
void check_init() const
Check and initialize object if necessary.
Definition
DalObject.hpp:412
dunedaq::conffwk::DalRegistry
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
Definition
DalRegistry.hpp:19
Configuration.hpp
conffwk entry point
offset
double offset
Definition
conversions-impl.hh:28
TAAlgorithm.hpp
conffwk.ConfigObject
Definition
ConfigObject.py:1
conffwk.Configuration
Definition
Configuration.py:1
conffwk
Definition
__init__.py:1
dunedaq::appmodel
Definition
CardControllerWrapper.hpp:21
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
dunedaq::appmodel::TAMakerADCSimpleWindowAlgorithmIterator
std::vector< constTAMakerADCSimpleWindowAlgorithm * >::const_iterator TAMakerADCSimpleWindowAlgorithmIterator
Definition
TAMakerADCSimpleWindowAlgorithm.hpp:164
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.17.0