DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Issues.hpp
Go to the documentation of this file.
1
9#ifndef TRIGGER_INCLUDE_TRIGGER_ISSUES_HPP_
10#define TRIGGER_INCLUDE_TRIGGER_ISSUES_HPP_
11
12#include "appfwk/DAQModule.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
30namespace dunedaq {
31
32ERS_DECLARE_ISSUE(trigger, InvalidConfiguration, "Invalid configuration error:" << conferror, ((std::string)conferror))
33ERS_DECLARE_ISSUE(trigger, TriggerActive, "Trigger is active now", ERS_EMPTY)
34ERS_DECLARE_ISSUE(trigger, TriggerPaused, "Trigger is paused", ERS_EMPTY)
35ERS_DECLARE_ISSUE(trigger, TriggerInhibited, "Trigger is inhibited in run " << runno, ((int64_t)runno))
36ERS_DECLARE_ISSUE(trigger, TriggerStartOfRun, "Start of run " << runno, ((int64_t)runno))
37ERS_DECLARE_ISSUE(trigger, TriggerEndOfRun, "End of run " << runno, ((int64_t)runno))
38
39ERS_DECLARE_ISSUE(trigger, UnknownGeoID, "Unknown SourceID: " << source_id, ((daqdataformats::SourceID)source_id))
40ERS_DECLARE_ISSUE(trigger, InvalidSystemType, "Unknown system type " << type, ((std::string)type))
41
43 SignalTypeError,
45 "Signal type " << signal_type << " invalid.",
46 ((std::string)name),
47 ((uint32_t)signal_type)) // NOLINT(build/unsigned)
48
52 "The " << queueType << " queue was not successfully created.",
53 ((std::string)name),
54 ((std::string)queueType))
55
57 AlgorithmFatalError,
59 "The " << algorithm << " failed to run.",
60 ((std::string)name),
61 ((std::string)algorithm))
62
64 UnknownSetError,
66 "The " << algorithm << " encountered an unknown Set type.",
67 ((std::string)name),
68 ((std::string)algorithm))
69
71 InconsistentSetTimeError,
73 "The " << algorithm << " maker encountered Sets with inconsistent start/end times.",
74 ((std::string)name),
75 ((std::string)algorithm))
76
77// clang-format off
79 TardyOutputError,
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
89 UnalignedHeartbeat,
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
99 TardyInputSet,
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
110 OutOfOrderSets,
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
118 AlgorithmFailedToSend,
120 "The " << algorithm << " maker failed to add output to a queue, which will be dropped.",
121 ((std::string)name),
122 ((std::string)algorithm))
123
125 AlgorithmFailedToHeartbeat,
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
132 WindowlessOutputError,
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
140 BadTPInputFile,
142 "Problem opening file " << filename,
143 ((std::string)name),
144 ((std::string)filename))
145
147 UnsortedTP,
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
155 BadTriggerBitmask,
157 "The trigger type contains high bits: " << trigger_type,
158 ((std::string)name),
159 ((std::bitset<16>)trigger_type))
160
162 TCOutOfTimeout,
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
172 TCTimestampsSizeError,
174 "There are no next timestamps!",
175 ((std::string)name),
176 ((int)size))
177
179 InvalidHSIEventRunNumber,
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
188 MissingFactoryItemError,
190 "Factory could not find requested item " << item << ".",
191 ((std::string)item),
192 ERS_EMPTY)
193
194ERS_DECLARE_ISSUE(trigger,
195 TADropped,
196 "TA timestamp " << time << " for channel " << channel,
197 ((uint64_t)time) ((uint64_t)channel))
198
199ERS_DECLARE_ISSUE(trigger,
200 TCDropped,
201 "TC timestamp " << time << " for src " << src,
202 ((uint64_t)time) ((uint64_t)src))
203
204ERS_DECLARE_ISSUE(trigger,
205 TDDropped,
206 "TD trigger number " << tn << " time stamp " << ts,
207 ((uint64_t)tn) ((uint64_t)ts))
208
210 MLTConfigurationProblem,
212 "Configuration error: " << item,
213 ((std::string)name),
214 ((std::string)item))
215
217 ReplayConfigurationProblem,
219 "Configuration error: " << item,
220 ((std::string)name),
221 ((std::string)item))
222
224 ReplayChannelMapProblem,
226 "Specified channel map: " << item << " does not exist!",
227 ((std::string)name),
228 ((std::string)item))
229
231 ReplayFileProblem,
233 "Specified HDF5 file: " << item << " does not exist!",
234 ((std::string)name),
235 ((std::string)item))
236
238 ReplayNoFragments,
240 "Specified HDF5 file: " << item << " does not contain valid paths!",
241 ((std::string)name),
242 ((std::string)item))
243
245 ReplayEmptyFrag,
247 "Fragment from file: " << item << " is empty!",
248 ((std::string)name),
249 ((std::string)item))
250
252 ReplayROUError,
254 "Cannot retrieve ROU from file: " << item << " !",
255 ((std::string)name),
256 ((std::string)item))
257
259 ReplayPlaneError,
261 "Cannot retrieve plane from file: " << item << " !",
262 ((std::string)name),
263 ((std::string)item))
264
266 ReplayNoValidFiles,
268 "No valid files to use!",
269 ((std::string)name),
270 ERS_EMPTY)
271
273 ReplayNoValidTPs,
275 "TP array does not contain valid TPs!",
276 ((std::string)name),
277 ERS_EMPTY)
278
280 ReplayStreamFileError,
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_
#define ERS_DECLARE_ISSUE_BASE(namespace_name, class_name, base_class_name, message, base_attributes, attributes)
#define ERS_DECLARE_ISSUE(namespace_name, class_name, message, attributes)
#define ERS_EMPTY
static volatile sig_atomic_t run
Including Qt Headers.
GeneralDAQModuleIssue
Definition DAQModule.hpp:72
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk int ParserOps couldn t push to queue !Failed std::string chunk Invalid FELIX block size and trailer configuration requested
Unsupported std::string uri Execution of command failed
Definition Issues.hpp:69
FELIX Initialization std::string initerror FELIX queue timed out
FELIX Initialization std::string initerror FELIX queue timed std::string queuename Unexpected chunk size
TriggerInhibited
Definition Issues.hpp:35
Cannot add TPSet with start_time
Monitoring thread not set
PDS Frame with unphysical timestamp detected with ts
Factory couldn t find
Definition Issues.hpp:24
Factory couldn t std::string alg_name Invalid configuration error
Definition Issues.hpp:34
Factory couldn t std::string alg_name InvalidConfiguration
Definition Issues.hpp:33