DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
build
appmodel
codegen
include
appmodel
TriggerDataHandlerModule.hpp
Go to the documentation of this file.
1
// *** this file is generated by oksdalgen, do not modify it ***
2
3
#ifndef _TriggerDataHandlerModule_0_dunedaq__appmodel_0_appmodel_H_
4
#define _TriggerDataHandlerModule_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/DataHandlerModule.hpp
"
19
20
// forward declaration for classes used in relationships and algorithms
21
22
namespace
dunedaq
{
23
namespace
appmodel
{
24
class
SourceIDConf
;
25
}
26
}
27
28
29
namespace
dunedaq
{
30
namespace
appmodel
{
31
32
class
TriggerDataHandlerModule
:
public
dunedaq::appmodel::DataHandlerModule
{
33
34
friend
class
conffwk::Configuration
;
35
friend
class
conffwk::DalObject
;
36
friend
class
conffwk::DalFactory
;
37
friend
class
conffwk::DalRegistry
;
38
39
protected
:
40
41
TriggerDataHandlerModule
(
conffwk::DalRegistry
& db,
const
conffwk::ConfigObject
&
obj
)
noexcept
;
42
virtual
~TriggerDataHandlerModule
() noexcept;
43
virtual
void
init
(
bool
init_children);
44
45
public:
46
48
49
static const
std
::
string
&
s_class_name
;
50
51
60
61
virtual
void
print
(
unsigned
int
offset
,
bool
print_header,
std
::ostream& s) const;
62
63
72
73
virtual
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>
get
(const
std
::
string
& name,
bool
upcast_unregistered = true) const;
74
75
76
protected:
77
78
bool
get
(const
std
::
string
& name,
std
::vector<const
dunedaq
::
conffwk
::
DalObject
*>& vec,
bool
upcast_unregistered,
bool
first_call) const;
79
80
81
private:
82
83
std
::vector<const
dunedaq
::
appmodel
::
SourceIDConf
*>
m_enabled_source_ids
;
84
std
::vector<const
dunedaq
::
appmodel
::
SourceIDConf
*>
m_mandatory_source_ids
;
85
86
87
public:
88
89
// relationship names
90
91
inline static const
std
::
string
s_enabled_source_ids
=
"enabled_source_ids"
;
92
inline static const
std
::
string
s_mandatory_source_ids
=
"mandatory_source_ids"
;
93
94
static const
std
::
string
&
__get_enabled_source_ids_str
() noexcept {
return
s_enabled_source_ids
; }
95
static
const
std::string&
__get_mandatory_source_ids_str
() noexcept {
return
s_mandatory_source_ids
; }
96
97
104
105
const
std::vector<const dunedaq::appmodel::SourceIDConf*>&
106
get_enabled_source_ids
()
const
107
{
108
std::lock_guard scoped_lock(
m_mutex
);
109
check
();
110
check_init
();
111
return
m_enabled_source_ids
;
112
}
113
114
121
122
void
123
set_enabled_source_ids
(
const
std::vector<const dunedaq::appmodel::SourceIDConf*>& value);
124
131
132
const
std::vector<const dunedaq::appmodel::SourceIDConf*>&
133
get_mandatory_source_ids
()
const
134
{
135
std::lock_guard scoped_lock(
m_mutex
);
136
check
();
137
check_init
();
138
return
m_mandatory_source_ids
;
139
}
140
141
148
149
void
150
set_mandatory_source_ids
(
const
std::vector<const dunedaq::appmodel::SourceIDConf*>& value);
151
152
};
153
154
// out stream operator
155
156
inline
std::ostream&
operator<<
(std::ostream& s,
const
TriggerDataHandlerModule
&
obj
)
157
{
158
return
obj
.print_object(s);
159
}
160
161
typedef
std::vector<const TriggerDataHandlerModule*>::const_iterator
TriggerDataHandlerModuleIterator
;
162
163
}
164
}
165
166
#endif
DalObject.hpp
dunedaq::appmodel::DataHandlerModule
Definition
DataHandlerModule.hpp:36
dunedaq::appmodel::SourceIDConf
Definition
SourceIDConf.hpp:20
dunedaq::appmodel::TriggerDataHandlerModule
Definition
TriggerDataHandlerModule.hpp:32
dunedaq::appmodel::TriggerDataHandlerModule::TriggerDataHandlerModule
TriggerDataHandlerModule(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
Definition
TriggerDataHandlerModule.cpp:31
dunedaq::appmodel::TriggerDataHandlerModule::s_class_name
static const std::string & s_class_name
Definition
TriggerDataHandlerModule.hpp:49
dunedaq::appmodel::TriggerDataHandlerModule::set_mandatory_source_ids
void set_mandatory_source_ids(const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
Set "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger d...
Definition
TriggerDataHandlerModule.cpp:122
dunedaq::appmodel::TriggerDataHandlerModule::print
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the TriggerDataHandlerModule object.
Definition
TriggerDataHandlerModule.cpp:40
dunedaq::appmodel::TriggerDataHandlerModule::get_enabled_source_ids
const std::vector< const dunedaq::appmodel::SourceIDConf * > & get_enabled_source_ids() const
Get "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trig...
Definition
TriggerDataHandlerModule.hpp:106
dunedaq::appmodel::TriggerDataHandlerModule::m_enabled_source_ids
std::vector< const dunedaq::appmodel::SourceIDConf * > m_enabled_source_ids
Definition
TriggerDataHandlerModule.hpp:83
dunedaq::appmodel::TriggerDataHandlerModule::__get_mandatory_source_ids_str
static const std::string & __get_mandatory_source_ids_str() noexcept
Definition
TriggerDataHandlerModule.hpp:95
dunedaq::appmodel::TriggerDataHandlerModule::s_enabled_source_ids
static const std::string s_enabled_source_ids
Definition
TriggerDataHandlerModule.hpp:91
dunedaq::appmodel::TriggerDataHandlerModule::set_enabled_source_ids
void set_enabled_source_ids(const std::vector< const dunedaq::appmodel::SourceIDConf * > &value)
Set "enabled_source_ids" relationship value. List of source IDs enabled in this session: used by trig...
Definition
TriggerDataHandlerModule.cpp:117
dunedaq::appmodel::TriggerDataHandlerModule::m_mandatory_source_ids
std::vector< const dunedaq::appmodel::SourceIDConf * > m_mandatory_source_ids
Definition
TriggerDataHandlerModule.hpp:84
dunedaq::appmodel::TriggerDataHandlerModule::get_mandatory_source_ids
const std::vector< const dunedaq::appmodel::SourceIDConf * > & get_mandatory_source_ids() const
Get "mandatory_source_ids" relationship value. Source Ids that will always be included in a trigger d...
Definition
TriggerDataHandlerModule.hpp:133
dunedaq::appmodel::TriggerDataHandlerModule::DalFactory
friend class conffwk::DalFactory
Definition
TriggerDataHandlerModule.hpp:36
dunedaq::appmodel::TriggerDataHandlerModule::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
TriggerDataHandlerModule.cpp:86
dunedaq::appmodel::TriggerDataHandlerModule::DalObject
friend class conffwk::DalObject
Definition
TriggerDataHandlerModule.hpp:35
dunedaq::appmodel::TriggerDataHandlerModule::~TriggerDataHandlerModule
virtual ~TriggerDataHandlerModule() noexcept
Definition
TriggerDataHandlerModule.cpp:82
dunedaq::appmodel::TriggerDataHandlerModule::init
virtual void init(bool init_children)
Definition
TriggerDataHandlerModule.cpp:67
dunedaq::appmodel::TriggerDataHandlerModule::s_mandatory_source_ids
static const std::string s_mandatory_source_ids
Definition
TriggerDataHandlerModule.hpp:92
dunedaq::appmodel::TriggerDataHandlerModule::__get_enabled_source_ids_str
static const std::string & __get_enabled_source_ids_str() noexcept
Definition
TriggerDataHandlerModule.hpp:94
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
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::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
DataHandlerModule.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::TriggerDataHandlerModuleIterator
std::vector< constTriggerDataHandlerModule * >::const_iterator TriggerDataHandlerModuleIterator
Definition
TriggerDataHandlerModule.hpp:161
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