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 WIBMOD_INCLUDE_WIBMOD_ISSUES_HPP_
10#define WIBMOD_INCLUDE_WIBMOD_ISSUES_HPP_
11
12#include "appfwk/DAQModule.hpp"
13#include "ers/Issue.hpp"
14#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
15
16#include <iomanip>
17#include <string>
18
19// NOLINTNEXTLINE(build/define_used)
20#define TLVL_ENTER_EXIT_METHODS 10
21// NOLINTNEXTLINE(build/define_used)
22#define TLVL_GENERATION 11
23// NOLINTNEXTLINE(build/define_used)
24#define TLVL_CANDIDATE 15
25
26namespace dunedaq {
27
29 UnreachableError,
30 appfwk::GeneralDAQModuleIssue,
31 "An unreachable part of the code has been reached.",
32 ((std::string)name),
34
37 appfwk::GeneralDAQModuleIssue,
38 "WIB " << name << " failed to configure. Additional information: " << info,
39 ((std::string)name),
40 ((std::string)info))
41
42// WIB1 Issues
43
45 InvalidPartitionNumber,
46 appfwk::GeneralDAQModuleIssue,
47 "partition_number must be 0-15, not: " << partition_number,
48 ((std::string)name),
49 ((int)partition_number))
50
52 WrongFirmwareMode,
53 appfwk::GeneralDAQModuleIssue,
54 "WIB Firmware setup in " << fw_mode << " readout mode but configure expects " << fw_expect,
55 ((std::string)name),
56 ((std::string)fw_mode)((std::string)fw_expect))
57
59 UnknownFirmwareMode,
60 appfwk::GeneralDAQModuleIssue,
61 "WIB Firmware setup in unknown readout mode",
62 ((std::string)name),
64
66 IncorrectFirmwareVersion,
67 appfwk::GeneralDAQModuleIssue,
68 type << " firmware version is " << std::hex << std::setw(8) << std::setfill('0') << fw_version
69 << " but expected " << std::hex << std::setw(8) << std::setfill('0') << expected_fw_version
70 << " version",
71 ((std::string)name),
72 ((std::string)type)((uint32_t)fw_version)((uint32_t)expected_fw_version))
73
75 BadDuplicationMode,
76 appfwk::GeneralDAQModuleIssue,
77 "WIB is set to duplicate data from links 1 and 2 to 3 and 4. This shouldn't happen!",
78 ((std::string)name),
80
82 WIBCommunicationError,
83 appfwk::GeneralDAQModuleIssue,
84 "WIB communication error:" << what,
85 ((std::string)name),
86 ((std::string)what))
87
89 UnhandledBUException,
90 appfwk::GeneralDAQModuleIssue,
91 "Unhandled BUException: " << what << " : " << description,
92 ((std::string)name),
93 ((std::string)what)((std::string)description))
94
96 InvalidFEMBSetting,
97 appfwk::GeneralDAQModuleIssue,
98 message,
99 ((std::string)name),
100 ((std::string)message))
101
103 CommandFailed,
104 appfwk::GeneralDAQModuleIssue,
105 message,
106 ((std::string)name),
107 ((std::string)message))
108
110 CannotReadFromFEMB,
111 appfwk::GeneralDAQModuleIssue,
112 message,
113 ((std::string)name),
114 ((std::string)message))
115
116ERS_DECLARE_ISSUE(wibmod, WaitingForAlignment, "Waiting for alignment constants from PDTS", ERS_EMPTY)
117
118ERS_DECLARE_ISSUE(wibmod, WaitingForTimestamp, "Waiting for timestamp from PDTS", ERS_EMPTY)
119
120} // namespace dunedaq
121
122#endif // WIBMOD_INCLUDE_WIBMOD_ISSUES_HPP_
#define ERS_EMPTY
The DUNE-DAQ namespace.
ConfigurationFailed
Definition Issues.hpp:36
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