DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CommonIssues.hpp
Go to the documentation of this file.
1
10
11#ifndef DAPHNEMODULES_INCLUDE_DAPHNEMODULES_COMMONISSUES_HPP_
12#define DAPHNEMODULES_INCLUDE_DAPHNEMODULES_COMMONISSUES_HPP_
13
14#include "ers/Issue.hpp"
15#include "logging/Logging.hpp" // NOTE: if ISSUES ARE DECLARED BEFORE include logging/Logging.hpp, TLOG_DEBUG<<issue wont work.
16
17#include <string>
18
19namespace dunedaq {
20
23 name << " failed to retrieve its conf object",
24 ((std::string)name))
25
26ERS_DECLARE_ISSUE(daphnemodules, InvalidIPAddress, "Invalid address: " << ip, ((std::string)ip))
27
29 InvalidChannelConfiguration,
30 "Channel " << id << " has invalid configuration, trim: " << trim << ", offset: " << offset
31 << ", gain:" << gain,
32 ((uint32_t)id)((uint32_t)trim)((uint32_t)offset)((uint32_t)gain))
33
36 "Too many full stream channels. Total requested: " << tot,
37 ((size_t)tot))
38
40 UnsuccessfulConfiguration,
41 name << ": board reports configuration failure. Message: " << message,
42 ((std::string)name)((std::string)message))
43
44// Monitoring
45ERS_DECLARE_ISSUE(daphnemodules, MonitoringFailed, "Monitoring of " << item << " failed", ((std::string)item))
46
48 TriggerMonitoringFailed,
50 item << " failed to retrieve reponse for trigger snapshots. Message: " << message,
51 ((std::string)item),
52 ((std::string)message))
53
54} // namespace dunedaq
55
56#endif // DAPHNEMODULES_INCLUDE_DAPHNEMODULES_COMMONISSUES_HPP_
double offset
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
Invalid std::string ip Too many full stream channels Total size_t tot MonitoringFailed
Invalid std::string ip TooManyChannels
std::string trim(const std::string &s)