DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CommonIssues.hpp
Go to the documentation of this file.
1
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
21 ERS_DECLARE_ISSUE( daphnemodules,
23 name << " failed to retrieve its conf object",
24 ((std::string)name)
25 )
26
27 ERS_DECLARE_ISSUE( daphnemodules,
29 "Invalid address: " << ip,
30 ((std::string)ip)
31 )
32
33 ERS_DECLARE_ISSUE( daphnemodules,
34 InvalidChannelConfiguration,
35 "Channel " << id << " has invalid configuration, trim: " << trim << ", offset: " << offset << ", gain:"<< gain,
36 ((uint32_t)id)((uint32_t)trim)((uint32_t)offset)((uint32_t)gain)
37 )
38
39
40 ERS_DECLARE_ISSUE( daphnemodules,
42 "Too many full stream channels. Total requested: " << tot,
43 ((size_t)tot)
44 )
45
46 ERS_DECLARE_ISSUE( daphnemodules,
47 UnsuccessfulConfiguration,
48 name << ": board reports configuration failure. Message: " << message,
49 ((std::string)name) ((std::string)message)
50 )
51
52
53 // Monitoring
54 ERS_DECLARE_ISSUE( daphnemodules,
56 "Monitoring of " << item << " failed",
57 ((std::string)item)
58 )
59
60 ERS_DECLARE_ISSUE_BASE( daphnemodules,
61 TriggerMonitoringFailed,
63 item << " failed to retrieve reponse for trigger snapshots. Message: " << message,
64 ((std::string)item),
65 ((std::string)message)
66 )
67
68
69} // namespace dunedaq
70
71#endif // DAPHNEMODULES_INCLUDE_DAPHNEMODULES_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)
double offset
The DUNE-DAQ namespace.
Invalid std::string ip Too many full stream channels Total requested
Unsupported std::string uri Execution of command failed
Definition Issues.hpp:69
ConfigurationFailed
Definition Issues.hpp:36
Both frame_count_limit and tp_count_limit were set to(disabled) in the TPCRawDataProcessor config. TPs will not send."
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)
Definition oksdalgen.cxx:85