DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
TAMakerProtoDUNEBSMWindowAlgorithm.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _TAMakerProtoDUNEBSMWindowAlgorithm_0_dunedaq__appmodel_0_appmodel_H_
4
#define _TAMakerProtoDUNEBSMWindowAlgorithm_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
TAMakerProtoDUNEBSMWindowAlgorithm
:
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
TAMakerProtoDUNEBSMWindowAlgorithm
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
33
virtual
~TAMakerProtoDUNEBSMWindowAlgorithm
() 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
std
::
string
m_channel_map_name
;
75
uint32_t
m_adc_threshold_induction
;
76
float
m_bdt_threshold
;
77
78
79
public:
80
81
// attribute names
82
83
inline static const
std
::
string
s_channel_map_name
=
"channel_map_name"
;
84
inline static const
std
::
string
s_adc_threshold_induction
=
"adc_threshold_induction"
;
85
inline static const
std
::
string
s_bdt_threshold
=
"bdt_threshold"
;
86
87
static const
std
::
string
&
__get_channel_map_name_str
() noexcept {
return
s_channel_map_name
; }
88
static
const
std::string&
__get_adc_threshold_induction_str
() noexcept {
return
s_adc_threshold_induction
; }
89
static
const
std::string&
__get_bdt_threshold_str
() noexcept {
return
s_bdt_threshold
; }
90
91
98
99
const
std::string&
100
get_channel_map_name
()
const
101
{
102
std::lock_guard scoped_lock(
m_mutex
);
103
check
();
104
check_init
();
105
return
m_channel_map_name
;
106
}
107
114
115
void
116
set_channel_map_name
(
const
std::string& value)
117
{
118
std::lock_guard scoped_lock(
m_mutex
);
119
check
();
120
clear
();
121
p_obj
.set_by_ref(
s_channel_map_name
, value);
122
}
123
124
131
132
uint32_t
133
get_adc_threshold_induction
()
const
134
{
135
std::lock_guard scoped_lock(
m_mutex
);
136
check
();
137
check_init
();
138
return
m_adc_threshold_induction
;
139
}
140
147
148
void
149
set_adc_threshold_induction
(uint32_t value)
150
{
151
std::lock_guard scoped_lock(
m_mutex
);
152
check
();
153
clear
();
154
p_obj
.set_by_val(
s_adc_threshold_induction
, value);
155
}
156
157
164
165
float
166
get_bdt_threshold
()
const
167
{
168
std::lock_guard scoped_lock(
m_mutex
);
169
check
();
170
check_init
();
171
return
m_bdt_threshold
;
172
}
173
180
181
void
182
set_bdt_threshold
(
float
value)
183
{
184
std::lock_guard scoped_lock(
m_mutex
);
185
check
();
186
clear
();
187
p_obj
.set_by_val(
s_bdt_threshold
, value);
188
}
189
190
191
};
192
193
// out stream operator
194
195
inline
std::ostream&
operator<<
(std::ostream& s,
const
TAMakerProtoDUNEBSMWindowAlgorithm
&
obj
)
196
{
197
return
obj
.print_object(s);
198
}
199
200
typedef
std::vector<const TAMakerProtoDUNEBSMWindowAlgorithm*>::const_iterator
TAMakerProtoDUNEBSMWindowAlgorithmIterator
;
201
202
}
203
}
204
205
#endif
DalObject.hpp
dunedaq::appmodel::TAAlgorithm
Definition
TAAlgorithm.hpp:27
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:23
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::get_adc_threshold_induction
uint32_t get_adc_threshold_induction() const
Get "adc_threshold_induction" attribute value. Threshold for the SADC sum on induction planes.
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:133
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::TAMakerProtoDUNEBSMWindowAlgorithm
TAMakerProtoDUNEBSMWindowAlgorithm(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.cpp:26
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::m_channel_map_name
std::string m_channel_map_name
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:74
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::init
virtual void init(bool init_children)
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.cpp:63
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::~TAMakerProtoDUNEBSMWindowAlgorithm
virtual ~TAMakerProtoDUNEBSMWindowAlgorithm() noexcept
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.cpp:79
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::m_bdt_threshold
float m_bdt_threshold
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:76
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::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
TAMakerProtoDUNEBSMWindowAlgorithm.cpp:83
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::get_channel_map_name
const std::string & get_channel_map_name() const
Get "channel_map_name" attribute value. Channel map for TA algorithm.
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:100
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::set_channel_map_name
void set_channel_map_name(const std::string &value)
Set "channel_map_name" attribute value. Channel map for TA algorithm.
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:116
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::m_adc_threshold_induction
uint32_t m_adc_threshold_induction
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:75
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::s_channel_map_name
static const std::string s_channel_map_name
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:83
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::DalFactory
friend class conffwk::DalFactory
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:27
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::__get_adc_threshold_induction_str
static const std::string & __get_adc_threshold_induction_str() noexcept
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:88
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::s_class_name
static const std::string & s_class_name
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:40
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::s_adc_threshold_induction
static const std::string s_adc_threshold_induction
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:84
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::__get_bdt_threshold_str
static const std::string & __get_bdt_threshold_str() noexcept
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:89
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::DalObject
friend class conffwk::DalObject
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:26
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the TAMakerProtoDUNEBSMWindowAlgorithm object.
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.cpp:35
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::__get_channel_map_name_str
static const std::string & __get_channel_map_name_str() noexcept
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:87
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::set_adc_threshold_induction
void set_adc_threshold_induction(uint32_t value)
Set "adc_threshold_induction" attribute value. Threshold for the SADC sum on induction planes.
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:149
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::s_bdt_threshold
static const std::string s_bdt_threshold
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:85
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::get_bdt_threshold
float get_bdt_threshold() const
Get "bdt_threshold" attribute value. BDT score threshold. Must be a float between 0 and 1.
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:166
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithm::set_bdt_threshold
void set_bdt_threshold(float value)
Set "bdt_threshold" attribute value. BDT score threshold. Must be a float between 0 and 1.
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:182
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
ConfigurationHelper.hpp:27
dunedaq::appmodel::operator<<
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Definition
AVXAbsRunSumProcessor.hpp:80
dunedaq::appmodel::TAMakerProtoDUNEBSMWindowAlgorithmIterator
std::vector< constTAMakerProtoDUNEBSMWindowAlgorithm * >::const_iterator TAMakerProtoDUNEBSMWindowAlgorithmIterator
Definition
TAMakerProtoDUNEBSMWindowAlgorithm.hpp:200
dunedaq
The DUNE-DAQ namespace.
Definition
access.hpp:13
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
std
Definition
SchemaUtils.hpp:118
Generated on
for DUNE-DAQ by
1.17.0