DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
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"
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
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
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
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
195 TADropped,
196 "TA timestamp " << time << " for channel " << channel,
197 ((uint64_t)time)((uint64_t)channel))
198
199ERS_DECLARE_ISSUE(trigger, TCDropped, "TC timestamp " << time << " for src " << src, ((uint64_t)time)((uint64_t)src))
200
201ERS_DECLARE_ISSUE(trigger, TDDropped, "TD trigger number " << tn << " time stamp " << ts, ((uint64_t)tn)((uint64_t)ts))
202
204 MLTConfigurationProblem,
206 "Configuration error: " << item,
207 ((std::string)name),
208 ((std::string)item))
209
211 ReplayConfigurationProblem,
213 "Configuration error: " << item,
214 ((std::string)name),
215 ((std::string)item))
216
218 ReplayChannelMapProblem,
220 "Specified channel map: " << item << " does not exist!",
221 ((std::string)name),
222 ((std::string)item))
223
225 ReplayFileProblem,
227 "Specified HDF5 file: " << item << " does not exist!",
228 ((std::string)name),
229 ((std::string)item))
230
232 ReplayNoFragments,
234 "Specified HDF5 file: " << item << " does not contain valid paths!",
235 ((std::string)name),
236 ((std::string)item))
237
239 ReplayEmptyFrag,
241 "Fragment from file: " << item << " is empty!",
242 ((std::string)name),
243 ((std::string)item))
244
246 ReplayROUError,
248 "Cannot retrieve ROU from file: " << item << " !",
249 ((std::string)name),
250 ((std::string)item))
251
253 ReplayPlaneError,
255 "Cannot retrieve plane from file: " << item << " !",
256 ((std::string)name),
257 ((std::string)item))
258
260 ReplayNoValidFiles,
262 "No valid files to use!",
263 ((std::string)name),
264 ERS_EMPTY)
265
267 ReplayNoValidTPs,
269 "TP array does not contain valid TPs!",
270 ((std::string)name),
271 ERS_EMPTY)
272
274 ReplayStreamFileError,
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_
#define ERS_EMPTY
The DUNE-DAQ namespace.
GeneralDAQModuleIssue
Definition DAQModule.hpp:72
ERS_DECLARE_ISSUE(cibmodules, CIBCommunicationError, " CIB Hardware Communication Error: "<< descriptor,((std::string) descriptor)) ERS_DECLARE_ISSUE(cibmodules
ERS_DECLARE_ISSUE_BASE(timinglibs, ProgressUpdate, appfwk::GeneralDAQModuleIssue, message,((std::string) name),((std::string) message)) ERS_DECLARE_ISSUE_BASE(timinglibs
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
Factory couldn t std::string alg_name InvalidConfiguration
Definition Issues.hpp:33