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 "
logging/Logging.hpp
"
// NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
17
#include "
trigger/serialize.hpp
"
18
#include "
triggeralgs/Types.hpp
"
19
20
#include <bitset>
21
#include <string>
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
165
<<
" overlaps with previous TD readout window: ["
<< td_start <<
", "
<< td_end
166
<<
"]"
,
167
((
std
::
string
)name),
168
((
int
)tc_type)((
triggeralgs
::timestamp_t)tc_timestamp)((
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
, TCDropped,
"TC timestamp "
<< time <<
" for src "
<< src, ((uint64_t)time)((uint64_t)src))
200
201
ERS_DECLARE_ISSUE
(
trigger
, TDDropped,
"TD trigger number "
<< tn <<
" time stamp "
<< ts, ((uint64_t)tn)((uint64_t)ts))
202
203
ERS_DECLARE_ISSUE_BASE
(
trigger
,
204
MLTConfigurationProblem,
205
appfwk
::
GeneralDAQModuleIssue
,
206
"Configuration error: "
<< item,
207
((
std
::
string
)name),
208
((
std
::
string
)item))
209
210
ERS_DECLARE_ISSUE_BASE
(
trigger
,
211
ReplayConfigurationProblem,
212
appfwk
::
GeneralDAQModuleIssue
,
213
"Configuration error: "
<< item,
214
((
std
::
string
)name),
215
((
std
::
string
)item))
216
217
ERS_DECLARE_ISSUE_BASE
(
trigger
,
218
ReplayChannelMapProblem,
219
appfwk
::
GeneralDAQModuleIssue
,
220
"Specified channel map: "
<< item <<
" does not exist!"
,
221
((
std
::
string
)name),
222
((
std
::
string
)item))
223
224
ERS_DECLARE_ISSUE_BASE
(
trigger
,
225
ReplayFileProblem,
226
appfwk
::
GeneralDAQModuleIssue
,
227
"Specified HDF5 file: "
<< item <<
" does not exist!"
,
228
((
std
::
string
)name),
229
((
std
::
string
)item))
230
231
ERS_DECLARE_ISSUE_BASE
(
trigger
,
232
ReplayNoFragments,
233
appfwk
::
GeneralDAQModuleIssue
,
234
"Specified HDF5 file: "
<< item <<
" does not contain valid paths!"
,
235
((
std
::
string
)name),
236
((
std
::
string
)item))
237
238
ERS_DECLARE_ISSUE_BASE
(
trigger
,
239
ReplayEmptyFrag,
240
appfwk
::
GeneralDAQModuleIssue
,
241
"Fragment from file: "
<< item <<
" is empty!"
,
242
((
std
::
string
)name),
243
((
std
::
string
)item))
244
245
ERS_DECLARE_ISSUE_BASE
(
trigger
,
246
ReplayROUError,
247
appfwk
::
GeneralDAQModuleIssue
,
248
"Cannot retrieve ROU from file: "
<< item <<
" !"
,
249
((
std
::
string
)name),
250
((
std
::
string
)item))
251
252
ERS_DECLARE_ISSUE_BASE
(
trigger
,
253
ReplayPlaneError,
254
appfwk
::
GeneralDAQModuleIssue
,
255
"Cannot retrieve plane from file: "
<< item <<
" !"
,
256
((
std
::
string
)name),
257
((
std
::
string
)item))
258
259
ERS_DECLARE_ISSUE_BASE
(
trigger
,
260
ReplayNoValidFiles,
261
appfwk
::
GeneralDAQModuleIssue
,
262
"No valid files to use!"
,
263
((
std
::
string
)name),
264
ERS_EMPTY
)
265
266
ERS_DECLARE_ISSUE_BASE
(
trigger
,
267
ReplayNoValidTPs,
268
appfwk
::
GeneralDAQModuleIssue
,
269
"TP array does not contain valid TPs!"
,
270
((
std
::
string
)name),
271
ERS_EMPTY
)
272
273
ERS_DECLARE_ISSUE_BASE
(
trigger
,
274
ReplayStreamFileError,
275
appfwk
::
GeneralDAQModuleIssue
,
276
"Duplicate stream index "
<< index <<
" for file: "
<< filename <<
" (original: "
<< original
277
<<
")"
,
278
((
std
::
string
)name),
279
((
int
)index)((
std
::
string
)filename)((
std
::
string
)original))
280
281
}
// namespace dunedaq
282
283
#endif
// TRIGGER_INCLUDE_TRIGGER_ISSUES_HPP_
DAQModule.hpp
ERS_EMPTY
#define ERS_EMPTY
Definition
IssueDeclarationMacro.hpp:23
Issue.hpp
SourceID.hpp
algorithm
algorithm
Definition
TriggerActivity_serialization.hpp:49
time_start
time_start
Definition
TriggerActivity_serialization.hpp:38
Types.hpp
Logging.hpp
appfwk
Definition
__init__.py:1
daqdataformats
Definition
__init__.py:1
dunedaq::trigger
Definition
AlgorithmPlugins.hpp:24
dunedaq
The DUNE-DAQ namespace.
Definition
cib_utilities.cpp:5
dunedaq::GeneralDAQModuleIssue
GeneralDAQModuleIssue
Definition
DAQModule.hpp:72
dunedaq::InvalidQueueFatalError
InvalidQueueFatalError
Definition
TimingIssues.hpp:34
dunedaq::ERS_DECLARE_ISSUE
ERS_DECLARE_ISSUE(cibmodules, CIBCommunicationError, " CIB Hardware Communication Error: "<< descriptor,((std::string) descriptor)) ERS_DECLARE_ISSUE(cibmodules
dunedaq::ERS_DECLARE_ISSUE_BASE
ERS_DECLARE_ISSUE_BASE(timinglibs, ProgressUpdate, appfwk::GeneralDAQModuleIssue, message,((std::string) name),((std::string) message)) ERS_DECLARE_ISSUE_BASE(timinglibs
dunedaq::size
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
Definition
FelixIssues.hpp:30
dunedaq::TriggerInhibited
TriggerInhibited
Definition
Issues.hpp:35
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
Generated on
for DUNE-DAQ by
1.18.0