DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CommonIssues.hpp
Go to the documentation of this file.
1
12#ifndef DFMODULES_SRC_DFMODULES_COMMONISSUES_HPP_
13#define DFMODULES_SRC_DFMODULES_COMMONISSUES_HPP_
14
15#include "appfwk/DAQModule.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
22namespace dunedaq {
23
24// Disable coverage checking LCOV_EXCL_START
25
27 ProgressUpdate,
28 appfwk::GeneralDAQModuleIssue,
29 message,
30 ((std::string)name),
31 ((std::string)message))
32
35 appfwk::GeneralDAQModuleIssue,
36 "The " << queue_type << " queue was not successfully created.",
37 ((std::string)name),
38 ((std::string)queue_type))
39
41 InvalidHDF5Group,
42 appfwk::GeneralDAQModuleIssue,
43 "The HDF5 Group associated with name \"" << group_name << "\" is invalid.",
44 ((std::string)name),
45 ((std::string)group_name))
46
48 UnableToConfigure,
49 appfwk::GeneralDAQModuleIssue,
50 "Unable to successfully configure.",
51 ((std::string)name),
53
55 UnableToStart,
56 appfwk::GeneralDAQModuleIssue,
57 "Unable to start run " << run_number << ".",
58 ((std::string)name),
59 ((size_t)run_number))
60
62 ProblemDuringStop,
63 appfwk::GeneralDAQModuleIssue,
64 "A problem was enountered during the stopping of run " << run_number << ".",
65 ((std::string)name),
66 ((size_t)run_number))
67
68
71ERS_DECLARE_ISSUE(dfmodules,
72 DRSenderLookupFailed,
73 "Unable to determine the Data Request message sender for SourceID ["
74 << sid << "]. No DataRequest will be sent to this data source for run/trigger/sequence number "
75 << runno << "/" << trigno << "/" << seqno << ".",
80)
81
82
85ERS_DECLARE_ISSUE(dfmodules,
86 InvalidSystemType,
87 "Unknown system type " << type,
88 ((std::string)type)
89)
90
91
94ERS_DECLARE_ISSUE(dfmodules,
95 DRSenderSendFailed,
96 "Failed to send Data Request message. Run: " << runno << ", trigger: " << trigno << ", sequence: "
97 << seqno << ", requested component: " << sid << ".",
102)
103// Re-enable coverage checking LCOV_EXCL_STOP
104
105} // namespace dunedaq
106
107#endif // DFMODULES_SRC_DFMODULES_COMMONISSUES_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
uint32_t run_number_t
Type used to represent run number.
Definition Types.hpp:20
uint64_t trigger_number_t
Type used to represent trigger number.
Definition Types.hpp:24
uint16_t sequence_number_t
Type used to represent sequence within a trigger record.
Definition Types.hpp:45
Including Qt Headers.
SourceID is a generalized representation of the source of a piece of data in the DAQ....
Definition SourceID.hpp:32