DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingHardwareManagerBase.cpp
Go to the documentation of this file.
1
8
10
13
15#include "logging/Logging.hpp"
17
20
24
25#include <memory>
26#include <string>
27#include <utility>
28#include <vector>
29
30#define TRACE_NAME "TimingHardwareManagerBase" // NOLINT
31
32namespace dunedaq {
33
34DUNE_DAQ_SERIALIZABLE(timinglibs::timingcmd::TimingHwCmd, "TimingHwCmd");
35DUNE_DAQ_SERIALIZABLE(nlohmann::json, "JSON");
36
37namespace timinglibs {
38
40 : dunedaq::appfwk::DAQModule(name)
41 , m_hw_cmd_connection("timing_cmds")
42 , m_hw_command_receiver(nullptr)
53{
54 // register_command("start", &TimingHardwareManagerBase::do_start);
55 // register_command("stop", &TimingHardwareManagerBase::do_stop);
56 register_command("scrap", &TimingHardwareManagerBase::do_scrap);
57}
58
59void
60TimingHardwareManagerBase::init(std::shared_ptr<appfwk::ConfigurationManager> mcfg)
61{
62 auto mod_config = mcfg->get_dal<timinglibs::dal::TimingHardwareManagerBase>(get_name());
63 m_params = mod_config->get_configuration();
64
65 // set up queues
66 for (auto con : mod_config->get_inputs()) {
67 if (con->get_data_type() == datatype_to_string<timingcmd::TimingHwCmd>()) {
68 m_hw_cmd_connection = con->UID();
69 TLOG() << "m_hw_cmd_connection: " << m_hw_cmd_connection;
70 }
71 }
72
73 try {
75 } catch (const ers::Issue& excpt) {
76 throw InvalidQueueFatalError(ERS_HERE, get_name(), "input", excpt);
77 }
78
79 m_endpoint_scan_threads_clean_up_thread = std::make_unique<dunedaq::utilities::ReusableThread>(0);
80}
81
82void
110
111void
112TimingHardwareManagerBase::do_scrap(const CommandData_t& /*data*/)
113{
114 m_hw_command_receiver->remove_callback();
115
116 auto time_of_scrap = std::chrono::high_resolution_clock::now();
117 while (m_command_threads.size()) {
118 auto now = std::chrono::high_resolution_clock::now();
119 auto ms_since_scrap = std::chrono::duration_cast<std::chrono::milliseconds>(now - time_of_scrap);
120 TLOG_DEBUG(0) << "Have been waiting for " << ms_since_scrap.count() << " ms for " << m_command_threads.size()
121 << " command threads to finish...";
122 std::this_thread::sleep_for(std::chrono::microseconds(250000));
123 }
125
127
128 scrap_uhal();
129
130 m_command_threads.clear();
131 m_info_gatherers.clear();
132 m_timing_hw_cmd_map_.clear();
133 m_hw_device_map.clear();
134 m_connection_manager.reset();
135}
136
139{
140
141 if (!device_name.compare("")) {
142 std::stringstream message;
143 message << "UHAL device name is an empty string";
144 throw UHALDeviceNameIssue(ERS_HERE, message.str());
145 }
146
147 if (auto hw_device_entry = m_hw_device_map.find(device_name); hw_device_entry != m_hw_device_map.end()) {
148 return dynamic_cast<const timing::TimingNode*>(&hw_device_entry->second->getNode(""));
149 } else {
150 TLOG_DEBUG(0) << get_name() << ": hw device interface for: " << device_name
151 << " does not exist. I will try to create it.";
152
153 try {
154 std::lock_guard<std::mutex> hw_device_map_guard(m_hw_device_map_mutex);
155 m_hw_device_map.emplace(device_name,
156 std::make_unique<uhal::HwInterface>(m_connection_manager->getDevice(device_name)));
157 } catch (const uhal::exception::ConnectionUIDDoesNotExist& exception) {
158 std::stringstream message;
159 message << "UHAL device name not " << device_name << " in connections file";
160 throw UHALDeviceNameIssue(ERS_HERE, message.str(), exception);
161 }
162
163 TLOG_DEBUG(0) << get_name() << ": hw device interface for: " << device_name << " successfully created.";
164
165 return dynamic_cast<const timing::TimingNode*>(&m_hw_device_map.find(device_name)->second->getNode(""));
166 }
167}
168
169void
171{
172 auto device_name = gatherer.get_device_name();
173
174 while (gatherer.run_gathering()) {
175
176 // collect the data from the hardware
177 try {
179
180 gatherer.collect_info_from_device(*design);
181 } catch (const std::exception& excpt) {
182 ers::warning(FailedToCollectOpMonInfo(ERS_HERE, device_name, excpt));
183 }
184
185 auto prev_gather_time = std::chrono::steady_clock::now();
186 auto next_gather_time = prev_gather_time + std::chrono::microseconds(gatherer.get_gather_interval());
187
188 // check running_flag periodically
189 auto slice_period = std::chrono::microseconds(10000);
190 auto next_slice_gather_time = prev_gather_time + slice_period;
191
192 bool break_flag = false;
193 while (next_gather_time > next_slice_gather_time + slice_period) {
194 if (!gatherer.run_gathering()) {
195 TLOG_DEBUG(0) << "while waiting to gather data, negative run gatherer flag detected.";
196 break_flag = true;
197 break;
198 }
199 std::this_thread::sleep_until(next_slice_gather_time);
200 next_slice_gather_time = next_slice_gather_time + slice_period;
201 }
202 if (break_flag == false) {
203 std::this_thread::sleep_until(next_gather_time);
204 }
205 }
206}
207
208void
210 const std::string& device_name,
211 int op_mon_level)
212{
213 std::string gatherer_name = device_name + "_level_" + std::to_string(op_mon_level);
214 if (m_info_gatherers.find(gatherer_name) == m_info_gatherers.end()) {
215 std::unique_ptr<InfoGatherer> gatherer = std::make_unique<InfoGatherer>(
216 std::bind(&TimingHardwareManagerBase::gather_monitor_data, this, std::placeholders::_1),
217 gather_interval,
218 device_name,
219 op_mon_level);
220
221 TLOG_DEBUG(0) << "Registering info gatherer: " << gatherer_name;
222 m_info_gatherers.emplace(std::make_pair(gatherer_name, std::move(gatherer)));
223 } else {
224 TLOG() << "Skipping registration of " << gatherer_name << ". Already exists.";
225 }
226}
227
228void
230{
231 // start all gatherers if no device name is given
232 if (!device_name.compare("")) {
233 TLOG_DEBUG(0) << get_name() << " Starting all info gatherers";
234 for (auto it = m_info_gatherers.begin(); it != m_info_gatherers.end(); ++it)
235 it->second.get()->start_gathering_thread();
236 } else {
237 // find gatherer for suppled device name and start it
238 bool gatherer_found = false;
239 for (auto it = m_info_gatherers.lower_bound(device_name); it != m_info_gatherers.end(); ++it) {
240 TLOG_DEBUG(0) << get_name() << " Starting info gatherer: " << it->first;
241 it->second.get()->start_gathering_thread();
242 gatherer_found = true;
243 }
244 if (!gatherer_found)
245 ers::warning(AttemptedToControlNonExantInfoGatherer(ERS_HERE, "start", device_name));
246 }
247}
248
249void
251{
252 // stop all gatherers if no device name is given
253 if (!device_name.compare("")) {
254 TLOG_DEBUG(0) << get_name() << " Stopping all info gatherers";
255 for (auto it = m_info_gatherers.begin(); it != m_info_gatherers.end(); ++it)
256 it->second.get()->stop_gathering_thread();
257 } else {
258 // find gatherer for suppled device name and stop it
259 bool gatherer_found = false;
260 for (auto it = m_info_gatherers.lower_bound(device_name); it != m_info_gatherers.end(); ++it) {
261 TLOG_DEBUG(0) << get_name() << " Stopping info gatherer: " << it->first;
262 it->second.get()->stop_gathering_thread();
263 gatherer_found = true;
264 }
265 if (!gatherer_found)
266 ers::warning(AttemptedToControlNonExantInfoGatherer(ERS_HERE, "stop", device_name));
267 }
268}
269
270std::vector<std::string>
272{
273 std::vector<std::string> running_gatherers;
274 for (auto it = m_info_gatherers.lower_bound(device_name); it != m_info_gatherers.end(); ++it) {
275 TLOG_DEBUG(0) << get_name() << " Checking run state of info gatherer: " << it->first << ", and the state is "
276 << it->second.get()->run_gathering();
277 if (it->second.get()->run_gathering()) {
278 running_gatherers.push_back(it->first);
279 }
280 }
281 return running_gatherers;
282}
283
284// cmd stuff
285
286void
288{
289 std::ostringstream starting_stream;
290 starting_stream << ": Executing process_hardware_command() callback.";
291 TLOG_DEBUG(0) << get_name() << starting_stream.str();
292
294
295 TLOG_DEBUG(0) << get_name() << ": Received hardware command #" << m_received_hw_commands_counter.load()
296 << ", it is of type: " << timing_hw_cmd.id << ", targeting device: " << timing_hw_cmd.device
297 << ", with payload: " << timing_hw_cmd.payload.dump();
298
299 std::string hw_cmd_name = timing_hw_cmd.id;
300 if (auto cmd = m_timing_hw_cmd_map_.find(hw_cmd_name); cmd != m_timing_hw_cmd_map_.end()) {
301
303
304 TLOG_DEBUG(0) << "Found hw cmd: " << hw_cmd_name;
305 try {
306 std::invoke(cmd->second, timing_hw_cmd);
307 } catch (const std::exception& exception) {
308 ers::error(FailedToExecuteHardwareCommand(ERS_HERE, hw_cmd_name, timing_hw_cmd.device, exception));
310 }
311 } else {
312 ers::error(InvalidHardwareCommandID(ERS_HERE, hw_cmd_name));
314 }
315
316 std::ostringstream exiting_stream;
317 exiting_stream << ": Finished executing process_hardware_command() callback. Received "
318 << m_received_hw_commands_counter.load() << " commands";
319 TLOG_DEBUG(0) << get_name() << exiting_stream.str();
320}
321
322// common commands
323void
325{
327 timingcmd::from_json(hw_cmd.payload, cmd_payload);
328
329 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " io reset";
330
331 // io reset disrupts hw mon gathering, so stop if running
332 auto running_hw_gatherers = check_hw_mon_gatherer_is_running(hw_cmd.device);
333 for (auto& gatherer : running_hw_gatherers) {
334 stop_hw_mon_gathering(gatherer);
335 }
336
338
339 if (cmd_payload.soft) {
340 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " soft io reset";
341 design->soft_reset_io();
342 } else if (!cmd_payload.clock_config.empty()) {
343 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device
344 << " io reset, with supplied clk file: " << cmd_payload.clock_config;
345 design->reset_io(cmd_payload.clock_config);
346 } else {
347 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device
348 << " io reset, with supplied clk source: " << cmd_payload.clock_source;
349 design->reset_io(static_cast<timing::ClockSource>(cmd_payload.clock_source));
350 }
351
352 // if hw mon gathering was running previously, start it again
353 for (auto& gatherer : running_hw_gatherers) {
354 start_hw_mon_gathering(gatherer);
355 }
356}
357
358void
360{
361 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " print status";
362
364 TLOG() << std::endl << design->get_status();
365}
366
367// master commands
368void
370{
372 timingcmd::from_json(hw_cmd.payload, cmd_payload);
373
374 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device
375 << " set timestamp, with supplied ts source: " << cmd_payload.timestamp_source;
376
378 design->sync_timestamp(static_cast<timing::TimestampSource>(cmd_payload.timestamp_source));
379}
380
381void
383{
384 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " master_endpoint_scan";
385
386 std::stringstream command_thread_uid;
387 auto t = std::time(nullptr);
388 auto tm = *std::localtime(&t);
389 command_thread_uid << "enpoint_scan_cmd_at_" << std::put_time(&tm, "%d-%m-%Y %H-%M-%S") << "_cmd_num_"
391
392 if (m_command_threads.size() > 5) {
393 ers::warning(TooManyEndpointScanThreadsQueued(ERS_HERE, m_command_threads.size()));
394 } else {
395 TLOG_DEBUG(1) << "Queuing: " << command_thread_uid.str();
396
397 auto thread_key = command_thread_uid.str();
398 std::unique_lock map_lock(m_command_threads_map_mutex);
399
400 m_command_threads.emplace(
401 thread_key,
402 std::make_unique<std::thread>(std::bind(&TimingHardwareManagerBase::perform_endpoint_scan, this, hw_cmd)));
403 }
404}
405
406void
408{
410 timingcmd::from_json(hw_cmd.payload, cmd_payload);
411
412 for (auto& endpoint_location : cmd_payload.endpoints) {
413 auto endpoint_address = endpoint_location.address;
414 auto fanout_slot = endpoint_location.fanout_slot;
415 auto sfp_slot = endpoint_location.sfp_slot;
416
417 std::unique_lock<std::mutex> master_sfp_lock(master_sfp_mutex);
418
419 TLOG_DEBUG(1) << get_name() << ": " << hw_cmd.device
420 << " master_endpoint_scan starting: ept adr: " << endpoint_address << ", ept sfp: " << sfp_slot
421 << ", fanout slot: " << fanout_slot;
422
424 try {
425 // master_design->get_master_node_plain()->switch_endpoint_sfp(endpoint_address, true);
426
427 if (sfp_slot >= 0) {
428 if (fanout_slot >= 0) {
429 // configure fanout/FIB
430 try {
432 ->switch_mux(sfp_slot);
433 } catch (const UHALDeviceClassIssue& e) {
434 ers::error(e);
435 continue;
436 }
437
438 // slot 0 for board without multiple data tx paths, e.g. FMC, TLU
439 if (fanout_slot != 0) {
440 // configure GIB/MIB
441 try {
442 get_timing_device<const timing::MuxDesignInterface*>(hw_cmd.device)->switch_mux(fanout_slot - 1);
443 } catch (const UHALDeviceClassIssue& e) {
444 ers::error(e);
445 continue;
446 }
447 }
448 } else {
449 dynamic_cast<const timing::MuxDesignInterface*>(master_design)->switch_mux(sfp_slot);
450 }
451 }
452
453 auto scan_result = master_design->get_master_node_plain()->scan_endpoint(endpoint_address, true);
454 if (scan_result.alive) {
455 auto current_rtt = scan_result.round_trip_time;
456 ers::info(EndpointRTTMeasurement(ERS_HERE, fanout_slot, sfp_slot, endpoint_address, current_rtt));
457 if (m_monitored_endpoints_round_trip_times.count(endpoint_address)) {
458 auto previous_rtt = m_monitored_endpoints_round_trip_times[endpoint_address];
459 if (previous_rtt != current_rtt) {
460 // TLOG() << "New round trip time for endpoint " << endpoint_address << " measured. Previous: "
461 // << m_monitored_endpoints_round_trip_times[endpoint_address] << ", current: " << current_rtt;
462 ers::warning(ChangedEndpointRTTMeasurement(
463 ERS_HERE, fanout_slot, sfp_slot, endpoint_address, current_rtt, previous_rtt));
464 }
465 } else {
466 // TLOG() << "First measured round trip time for endpoint " << endpoint_address << " is: " << current_rtt;
467 }
468 m_monitored_endpoints_round_trip_times[endpoint_address] = current_rtt;
469 } else {
470 ers::error(EndpointUnresponsive(ERS_HERE, fanout_slot, sfp_slot, endpoint_address));
471 // TLOG() << endpoint_address << " endpoint was not alive...";
472 }
473 // master_design->get_master_node_plain()->switch_endpoint_sfp(endpoint_address, false);
474 } catch (std::exception& e) {
475 ers::error(EndpointScanFailure(ERS_HERE, e));
476 master_design->get_master_node_plain()->switch_endpoint_sfp(endpoint_address, false);
477 }
478 }
479}
480
481void
483{
484 TLOG_DEBUG(0) << "Entering clean_endpoint_scan_threads()";
485 bool break_flag = false;
486 while (!break_flag) {
487 for (auto& thread : m_command_threads) {
488 if (thread.second->joinable()) {
489 std::unique_lock map_lock(m_command_threads_map_mutex);
490 TLOG_DEBUG(2) << thread.first << " thread ready. Cleaning up.";
491 thread.second->join();
492 m_command_threads.erase(thread.first);
493 }
494 }
495
496 auto prev_clean_time = std::chrono::steady_clock::now();
497 auto next_clean_time = prev_clean_time + std::chrono::milliseconds(30);
498
499 // check running_flag periodically
500 auto flag_check_period = std::chrono::milliseconds(1);
501 auto next_flag_check_time = prev_clean_time + flag_check_period;
502
503 while (next_clean_time > next_flag_check_time + flag_check_period) {
505 TLOG_DEBUG(2) << "while waiting to clean up endpoint scan threads, negative run gatherer flag detected.";
506 break_flag = true;
507 break;
508 }
509 std::this_thread::sleep_until(next_flag_check_time);
510 next_flag_check_time = next_flag_check_time + flag_check_period;
511 }
512 if (break_flag == false) {
513 std::this_thread::sleep_until(next_clean_time);
514 }
515 }
516 TLOG_DEBUG(0) << "Exiting clean_endpoint_scan_threads()";
517}
518
519// master commands
520void
522{
523 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " set endpoint delay";
524
526 timingcmd::from_json(hw_cmd.payload, cmd_payload);
527
529 design->apply_endpoint_delay(cmd_payload.address,
530 cmd_payload.coarse_delay,
531 cmd_payload.fine_delay,
532 cmd_payload.phase_delay,
533 cmd_payload.measure_rtt,
534 cmd_payload.control_sfp,
535 cmd_payload.sfp_mux);
536}
537
538void
540{
542 timingcmd::from_json(hw_cmd.payload, cmd_payload);
543
544 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " send fl cmd. Payload: " << hw_cmd.payload.dump()
545 << ", parsed data: " << cmd_payload.fl_cmd_id << ", " << cmd_payload.channel << ", "
546 << cmd_payload.number_of_commands_to_send;
547
549 design->get_master_node_plain()->send_fl_cmd(
550 cmd_payload.fl_cmd_id, cmd_payload.channel, cmd_payload.number_of_commands_to_send);
551}
552
553// endpoint commands
554void
556{
558 timingcmd::from_json(hw_cmd.payload, cmd_payload);
559
560 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " ept enable, adr: " << cmd_payload.address
561 << ", part: " << cmd_payload.partition;
562
564 design->get_endpoint_node_plain(cmd_payload.endpoint_id)->enable(cmd_payload.address, cmd_payload.partition);
565}
566
567void
569{
571 timingcmd::from_json(hw_cmd.payload, cmd_payload);
572
573 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " ept disable";
574
576 design->get_endpoint_node_plain(cmd_payload.endpoint_id)->disable();
577}
578
579void
581{
583 timingcmd::from_json(hw_cmd.payload, cmd_payload);
584
585 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " ept reset, adr: " << cmd_payload.address
586 << ", part: " << cmd_payload.partition;
587
589 design->get_endpoint_node_plain(cmd_payload.endpoint_id)->reset(cmd_payload.address, cmd_payload.partition);
590}
591
592// hsi commands
593void
595{
596 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi reset";
597
599 design->get_hsi_node().reset_hsi();
600}
601
602void
604{
606 timingcmd::from_json(hw_cmd.payload, cmd_payload);
607
608 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi configure";
609
611 design->configure_hsi(cmd_payload.data_source,
612 cmd_payload.rising_edge_mask,
613 cmd_payload.falling_edge_mask,
614 cmd_payload.invert_edge_mask,
615 cmd_payload.random_rate);
616}
617
618void
620{
621 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi start";
622
624 design->get_hsi_node().start_hsi();
625}
626
627void
629{
630 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi stop";
631
633 design->get_hsi_node().stop_hsi();
634}
635
636void
638{
639 TLOG_DEBUG(0) << get_name() << ": " << hw_cmd.device << " hsi print status";
640
642 TLOG() << std::endl << design->get_hsi_node().get_status();
643}
644
645} // namespace timinglibs
646} // namespace dunedaq
#define ERS_HERE
#define DUNE_DAQ_SERIALIZABLE(Type, typestring)
Macro to define a type as serializable, so it can be sent over the network.
static std::shared_ptr< IOManager > get()
Definition IOManager.hpp:40
Base class for timing endpoint design nodes.
Base class for timing nodes.
std::unique_ptr< uhal::ConnectionManager > m_connection_manager
void configure_uhal(const dunedaq::timinglibs::dal::TimingHardwareInterfaceConf *mdal)
const timing::TimingNode * get_timing_device_plain(const std::string &device_name)
void hsi_stop(const timingcmd::TimingHwCmd &hw_cmd)
void io_reset(const timingcmd::TimingHwCmd &hw_cmd)
void print_status(const timingcmd::TimingHwCmd &hw_cmd)
void register_info_gatherer(uint gather_interval, const std::string &device_name, int op_mon_level)
TIMING_DEV get_timing_device(const std::string &device_name)
std::map< std::string, std::unique_ptr< uhal::HwInterface > > m_hw_device_map
virtual void perform_endpoint_scan(const timingcmd::TimingHwCmd &hw_cmd)
void endpoint_reset(const timingcmd::TimingHwCmd &hw_cmd)
void init(std::shared_ptr< appfwk::ConfigurationManager > mcfg) override
void hsi_reset(const timingcmd::TimingHwCmd &hw_cmd)
void set_endpoint_delay(const timingcmd::TimingHwCmd &hw_cmd)
virtual void process_hardware_command(timingcmd::TimingHwCmd &timing_hw_cmd)
std::unique_ptr< dunedaq::utilities::ReusableThread > m_endpoint_scan_threads_clean_up_thread
void hsi_configure(const timingcmd::TimingHwCmd &hw_cmd)
void set_timestamp(const timingcmd::TimingHwCmd &hw_cmd)
virtual void start_hw_mon_gathering(const std::string &device_name="")
virtual void stop_hw_mon_gathering(const std::string &device_name="")
void hsi_print_status(const timingcmd::TimingHwCmd &hw_cmd)
void send_fl_cmd(const timingcmd::TimingHwCmd &hw_cmd)
void hsi_start(const timingcmd::TimingHwCmd &hw_cmd)
std::map< std::string, std::unique_ptr< std::thread > > m_command_threads
std::map< timingcmd::TimingHwCmdId, std::function< void(const timingcmd::TimingHwCmd &)> > m_timing_hw_cmd_map_
void endpoint_enable(const timingcmd::TimingHwCmd &hw_cmd)
TimingHardwareManagerBase(const std::string &name)
TimingHardwareManagerBase Constructor.
void endpoint_disable(const timingcmd::TimingHwCmd &hw_cmd)
const timinglibs::dal::TimingHardwareManagerConf * m_params
virtual std::vector< std::string > check_hw_mon_gatherer_is_running(const std::string &device_name)
void master_endpoint_scan(const timingcmd::TimingHwCmd &hw_cmd)
std::map< std::string, std::unique_ptr< InfoGatherer > > m_info_gatherers
uint32_t get_gather_interval() const
Get "gather_interval" attribute value. Hardware device data gather interval [us].
const std::string & get_monitored_device_name_hsi() const
Get "monitored_device_name_hsi" attribute value. Name of hsi device to be monitored.
const std::string & get_monitored_device_name_endpoint() const
Get "monitored_device_name_endpoint" attribute value. Name of timing endpoint device to be monitored.
uint32_t get_gather_interval_debug() const
Get "gather_interval_debug" attribute value. Hardware device data gather debug interval [us].
const std::string & get_monitored_device_name_master() const
Get "monitored_device_name_master" attribute value. Name of timing master device to be monitored.
const std::vector< const dunedaq::timinglibs::dal::TimingFanoutDevice * > & get_monitored_device_names_fanout() const
Get "monitored_device_names_fanout" relationship value. Timing fanout devices to be monitored.
Base class for any user define issue.
Definition Issue.hpp:76
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:116
#define TLOG(...)
Definition macro.hpp:21
void from_json(const data_t &j, EndpointLocation &obj)
Definition Nljs.hpp:28
The DUNE-DAQ namespace.
void warning(const Issue &issue)
Definition ers.hpp:150
void info(const Issue &issue)
Definition ers.hpp:121
void error(const Issue &issue)
Definition ers.hpp:101