DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
trigger
include
trigger
Issues.hpp
Go to the documentation of this file.
1
8
9
#ifndef TRIGGER_INCLUDE_TRIGGER_ISSUES_HPP_
10
#define TRIGGER_INCLUDE_TRIGGER_ISSUES_HPP_
11
12
#include "
appfwk/DAQModule.hpp
"
13
#include "
daqdataformats/SourceID.hpp
"
14
#include "
daqdataformats/Types.hpp
"
15
#include "
ers/Issue.hpp
"
16
#include "
triggeralgs/Types.hpp
"
17
#include "
trigger/serialize.hpp
"
18
#include "
logging/Logging.hpp
"
// NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
19
20
#include <string>
21
#include <bitset>
22
23
// NOLINTNEXTLINE(build/define_used)
24
#define TLVL_ENTER_EXIT_METHODS 10
25
// NOLINTNEXTLINE(build/define_used)
26
#define TLVL_GENERATION 11
27
// NOLINTNEXTLINE(build/define_used)
28
#define TLVL_CANDIDATE 15
29
30
namespace
dunedaq
{
31
32
ERS_DECLARE_ISSUE
(
trigger
,
InvalidConfiguration
,
"Invalid configuration error:"
<< conferror, ((std::string)conferror))
33
ERS_DECLARE_ISSUE
(
trigger
, TriggerActive,
"Trigger is active now"
,
ERS_EMPTY
)
34
ERS_DECLARE_ISSUE
(
trigger
, TriggerPaused,
"Trigger is paused"
,
ERS_EMPTY
)
35
ERS_DECLARE_ISSUE
(
trigger
,
TriggerInhibited
,
"Trigger is inhibited in run "
<< runno, ((int64_t)runno))
36
ERS_DECLARE_ISSUE
(
trigger
, TriggerStartOfRun,
"Start of run "
<< runno, ((int64_t)runno))
37
ERS_DECLARE_ISSUE
(
trigger
, TriggerEndOfRun,
"End of run "
<< runno, ((int64_t)runno))
38
39
ERS_DECLARE_ISSUE
(
trigger
, UnknownGeoID,
"Unknown SourceID: "
<< source_id, ((
daqdataformats
::SourceID)source_id))
40
ERS_DECLARE_ISSUE
(
trigger
, InvalidSystemType,
"Unknown system type "
<< type, ((
std
::
string
)type))
41
42
ERS_DECLARE_ISSUE_BASE
(
trigger
,
43
SignalTypeError,
44
appfwk
::
GeneralDAQModuleIssue
,
45
"Signal type "
<< signal_type <<
" invalid."
,
46
((
std
::
string
)name),
47
((uint32_t)signal_type))
// NOLINT(build/unsigned)
48
49
ERS_DECLARE_ISSUE_BASE
(
trigger
,
50
InvalidQueueFatalError
,
51
appfwk
::
GeneralDAQModuleIssue
,
52
"The "
<< queueType <<
" queue was not successfully created."
,
53
((
std
::
string
)name),
54
((
std
::
string
)queueType))
55
56
ERS_DECLARE_ISSUE_BASE
(
trigger
,
57
AlgorithmFatalError,
58
appfwk
::
GeneralDAQModuleIssue
,
59
"The "
<<
algorithm
<<
" failed to run."
,
60
((
std
::
string
)name),
61
((
std
::
string
)
algorithm
))
62
63
ERS_DECLARE_ISSUE_BASE
(
trigger
,
64
UnknownSetError,
65
appfwk
::
GeneralDAQModuleIssue
,
66
"The "
<<
algorithm
<<
" encountered an unknown Set type."
,
67
((
std
::
string
)name),
68
((
std
::
string
)
algorithm
))
69
70
ERS_DECLARE_ISSUE_BASE
(
trigger
,
71
InconsistentSetTimeError,
72
appfwk
::
GeneralDAQModuleIssue
,
73
"The "
<<
algorithm
<<
" maker encountered Sets with inconsistent start/end times."
,
74
((
std
::
string
)name),
75
((
std
::
string
)
algorithm
))
76
77
// clang-format off
78
ERS_DECLARE_ISSUE_BASE
(
trigger
,
79
TardyOutputError,
80
appfwk
::
GeneralDAQModuleIssue
,
81
"The "
<<
algorithm
<<
" maker generated a tardy output, which will be dropped."
82
<<
" Output's time is "
<< output_time <<
", last sent time is "
<< last_sent_time,
83
((
std
::
string
)name),
84
((
std
::
string
)
algorithm
)
85
((
daqdataformats
::timestamp_t)output_time)
86
((
daqdataformats
::timestamp_t)last_sent_time))
87
88
ERS_DECLARE_ISSUE_BASE
(
trigger
,
89
UnalignedHeartbeat,
90
appfwk
::
GeneralDAQModuleIssue
,
91
"The "
<<
algorithm
<<
" maker received a heartbeat with start time "
<<
start_time
92
<<
", not aligned to a window time boundary "
<< window_time,
93
((
std
::
string
)name),
94
((
std
::
string
)
algorithm
)
95
((
daqdataformats
::timestamp_t)
start_time
)
96
((
daqdataformats
::timestamp_t)window_time))
97
98
ERS_DECLARE_ISSUE_BASE
(
trigger
,
99
TardyInputSet,
100
appfwk
::
GeneralDAQModuleIssue
,
101
"Tardy input set from element "
<< element
102
<<
". Set start time "
<<
start_time
<<
" but last sent time "
<< last_sent_time,
103
((
std
::
string
)name),
104
((uint32_t)element)
// NOLINT(build/unsigned)
105
((
daqdataformats
::timestamp_t)
start_time
)
106
((
daqdataformats
::timestamp_t)last_sent_time))
107
// clang-format on
108
109
ERS_DECLARE_ISSUE_BASE
(
trigger
,
110
OutOfOrderSets,
111
appfwk
::
GeneralDAQModuleIssue
,
112
"Received sets with start_times out of order: previous was "
<< previous <<
" current is "
113
<< current,
114
((
std
::
string
)name),
115
((
triggeralgs
::timestamp_t)previous)((
triggeralgs
::timestamp_t)current))
116
117
ERS_DECLARE_ISSUE_BASE
(
trigger
,
118
AlgorithmFailedToSend,
119
appfwk
::
GeneralDAQModuleIssue
,
120
"The "
<<
algorithm
<<
" maker failed to add output to a queue, which will be dropped."
,
121
((
std
::
string
)name),
122
((
std
::
string
)
algorithm
))
123
124
ERS_DECLARE_ISSUE_BASE
(
trigger
,
125
AlgorithmFailedToHeartbeat,
126
appfwk
::
GeneralDAQModuleIssue
,
127
"The "
<<
algorithm
<<
" maker failed to add a heartbeat to a queue, which will be dropped."
,
128
((
std
::
string
)name),
129
((
std
::
string
)
algorithm
))
130
131
ERS_DECLARE_ISSUE_BASE
(
trigger
,
132
WindowlessOutputError,
133
appfwk
::
GeneralDAQModuleIssue
,
134
"The "
<<
algorithm
135
<<
" maker generated an output that was not in any input window, which will be dropped."
,
136
((
std
::
string
)name),
137
((
std
::
string
)
algorithm
))
138
139
ERS_DECLARE_ISSUE_BASE
(
trigger
,
140
BadTPInputFile,
141
appfwk
::
GeneralDAQModuleIssue
,
142
"Problem opening file "
<<
filename
,
143
((
std
::
string
)name),
144
((
std
::
string
)
filename
))
145
146
ERS_DECLARE_ISSUE_BASE
(
trigger
,
147
UnsortedTP,
148
appfwk
::
GeneralDAQModuleIssue
,
149
"TP with time_start "
<<
time_start
150
<<
"is higher than time_start of last TP and will be ignored."
,
151
((
std
::
string
)name),
152
((int64_t)
time_start
))
153
154
ERS_DECLARE_ISSUE_BASE
(
trigger
,
155
BadTriggerBitmask,
156
appfwk
::
GeneralDAQModuleIssue
,
157
"The trigger type contains high bits: "
<< trigger_type,
158
((
std
::
string
)name),
159
((
std
::bitset<16>)trigger_type))
160
161
ERS_DECLARE_ISSUE_BASE
(
trigger
,
162
TCOutOfTimeout,
163
appfwk
::
GeneralDAQModuleIssue
,
164
"TC of type "
<< tc_type <<
", timestamp "
<< tc_timestamp <<
" overlaps with previous TD readout window: ["
<< td_start <<
", "
<< td_end <<
"]"
,
165
((
std
::
string
)name),
166
((
int
)tc_type)
167
((
triggeralgs
::timestamp_t)tc_timestamp)
168
((
triggeralgs
::timestamp_t)td_start)
169
((
triggeralgs
::timestamp_t)td_end))
170
171
ERS_DECLARE_ISSUE_BASE
(
trigger
,
172
TCTimestampsSizeError,
173
appfwk
::
GeneralDAQModuleIssue
,
174
"There are no next timestamps!"
,
175
((
std
::
string
)name),
176
((
int
)
size
))
177
178
ERS_DECLARE_ISSUE_BASE
(
trigger
,
179
InvalidHSIEventRunNumber,
180
appfwk
::
GeneralDAQModuleIssue
,
181
"An invalid run number was received in an HSIEvent, "
182
<<
"received="
<< received <<
", expected="
<< expected <<
", timestamp="
<< ts
183
<<
", sequence_count="
<< seq,
184
((
std
::
string
)name),
185
((
size_t
)received)((
size_t
)expected)((
size_t
)ts)((
size_t
)seq))
186
187
ERS_DECLARE_ISSUE_BASE
(
trigger
,
188
MissingFactoryItemError,
189
appfwk
::
GeneralDAQModuleIssue
,
190
"Factory could not find requested item "
<< item <<
"."
,
191
((
std
::
string
)item),
192
ERS_EMPTY
)
193
194
ERS_DECLARE_ISSUE
(
trigger
,
195
TADropped,
196
"TA timestamp "
<< time <<
" for channel "
<< channel,
197
((uint64_t)time) ((uint64_t)channel))
198
199
ERS_DECLARE_ISSUE
(
trigger
,
200
TCDropped,
201
"TC timestamp "
<< time <<
" for src "
<< src,
202
((uint64_t)time) ((uint64_t)src))
203
204
ERS_DECLARE_ISSUE
(
trigger
,
205
TDDropped,
206
"TD trigger number "
<< tn <<
" time stamp "
<< ts,
207
((uint64_t)tn) ((uint64_t)ts))
208
209
ERS_DECLARE_ISSUE_BASE
(
trigger
,
210
MLTConfigurationProblem,
211
appfwk
::
GeneralDAQModuleIssue
,
212
"Configuration error: "
<< item,
213
((
std
::
string
)name),
214
((
std
::
string
)item))
215
216
ERS_DECLARE_ISSUE_BASE
(
trigger
,
217
ReplayConfigurationProblem,
218
appfwk
::
GeneralDAQModuleIssue
,
219
"Configuration error: "
<< item,
220
((
std
::
string
)name),
221
((
std
::
string
)item))
222
223
ERS_DECLARE_ISSUE_BASE
(
trigger
,
224
ReplayChannelMapProblem,
225
appfwk
::
GeneralDAQModuleIssue
,
226
"Specified channel map: "
<< item <<
" does not exist!"
,
227
((
std
::
string
)name),
228
((
std
::
string
)item))
229
230
ERS_DECLARE_ISSUE_BASE
(
trigger
,
231
ReplayFileProblem,
232
appfwk
::
GeneralDAQModuleIssue
,
233
"Specified HDF5 file: "
<< item <<
" does not exist!"
,
234
((
std
::
string
)name),
235
((
std
::
string
)item))
236
237
ERS_DECLARE_ISSUE_BASE
(
trigger
,
238
ReplayNoFragments,
239
appfwk
::
GeneralDAQModuleIssue
,
240
"Specified HDF5 file: "
<< item <<
" does not contain valid paths!"
,
241
((
std
::
string
)name),
242
((
std
::
string
)item))
243
244
ERS_DECLARE_ISSUE_BASE
(
trigger
,
245
ReplayEmptyFrag,
246
appfwk
::
GeneralDAQModuleIssue
,
247
"Fragment from file: "
<< item <<
" is empty!"
,
248
((
std
::
string
)name),
249
((
std
::
string
)item))
250
251
ERS_DECLARE_ISSUE_BASE
(
trigger
,
252
ReplayROUError,
253
appfwk
::
GeneralDAQModuleIssue
,
254
"Cannot retrieve ROU from file: "
<< item <<
" !"
,
255
((
std
::
string
)name),
256
((
std
::
string
)item))
257
258
ERS_DECLARE_ISSUE_BASE
(
trigger
,
259
ReplayPlaneError,
260
appfwk
::
GeneralDAQModuleIssue
,
261
"Cannot retrieve plane from file: "
<< item <<
" !"
,
262
((
std
::
string
)name),
263
((
std
::
string
)item))
264
265
ERS_DECLARE_ISSUE_BASE
(
trigger
,
266
ReplayNoValidFiles,
267
appfwk
::
GeneralDAQModuleIssue
,
268
"No valid files to use!"
,
269
((
std
::
string
)name),
270
ERS_EMPTY
)
271
272
ERS_DECLARE_ISSUE_BASE
(
trigger
,
273
ReplayNoValidTPs,
274
appfwk
::
GeneralDAQModuleIssue
,
275
"TP array does not contain valid TPs!"
,
276
((
std
::
string
)name),
277
ERS_EMPTY
)
278
279
ERS_DECLARE_ISSUE_BASE
(
trigger
,
280
ReplayStreamFileError,
281
appfwk
::
GeneralDAQModuleIssue
,
282
"Duplicate stream index "
<< index
283
<<
" for file: "
<<
filename
284
<<
" (original: "
<< original <<
")"
,
285
((
std
::
string
)name),
286
((
int
)index)((
std
::
string
)
filename
)((
std
::
string
)original))
287
288
}
// namespace dunedaq
289
290
#endif
// TRIGGER_INCLUDE_TRIGGER_ISSUES_HPP_
DAQModule.hpp
ERS_EMPTY
#define ERS_EMPTY
Definition
IssueDeclarationMacro.hpp:22
Issue.hpp
SourceID.hpp
algorithm
algorithm
Definition
TriggerActivity_serialization.hpp:49
time_start
time_start
Definition
TriggerActivity_serialization.hpp:38
Types.hpp
Logging.hpp
ERS_DECLARE_ISSUE
#define ERS_DECLARE_ISSUE( namespace_name, class_name, message_, attributes)
Definition
macro.hpp:65
appfwk
Definition
__init__.py:1
daqdataformats
Definition
__init__.py:1
dunedaq::trigger
Definition
AlgorithmPlugins.hpp:24
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::GeneralDAQModuleIssue
GeneralDAQModuleIssue
Definition
DAQModule.hpp:72
dunedaq::InvalidQueueFatalError
InvalidQueueFatalError
Definition
CommonIssues.hpp:32
dunedaq::ERS_DECLARE_ISSUE_BASE
DAQModule std::string name ERS_DECLARE_ISSUE_BASE(appfwk, DAQModuleInitFailed, appfwk::GeneralDAQModuleIssue, " init failed.",((std::string) name), ERS_EMPTY) ERS_DECLARE_ISSUE_BASE(appfwk
Initialization failed ERS Issue (used by DAQModuleManager).
dunedaq::size
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
Definition
FelixIssues.hpp:28
dunedaq::TriggerInhibited
TriggerInhibited
Definition
Issues.hpp:35
dunedaq::ERS_DECLARE_ISSUE
ERS_DECLARE_ISSUE(snbmodules, InvalidGroupTransferIDError, "InvalidGroupTransferIDError: Transfer ID "<< transfer_id<< " not found in "<< location,((std::string) transfer_id)((std::string) location)) ERS_DECLARE_ISSUE(snbmodules
dunedaq::start_time
Cannot add TPSet with start_time
Definition
TPBundleHandler.hpp:41
std
Definition
SchemaUtils.hpp:118
triggeralgs
Definition
AbstractFactory.hpp:18
serialize.hpp
InvalidConfiguration
Factory couldn t std::string alg_name InvalidConfiguration
Definition
Issues.hpp:33
Types.hpp
tablepositions::filename
@ filename
Definition
ui_constants.hpp:11
Generated on
for DUNE-DAQ by
1.17.0