8#include <daq/dqm/DqmMemFile.h>
9#include <daq/rfarm/event/hltsocket/HLTMainLoop.h>
10#include <framework/logging/Logger.h>
12#include <boost/program_options.hpp>
18namespace po = boost::program_options;
21int main(
int argc,
char* argv[])
23 std::string dqmFileName;
25 po::options_description
26 desc(
"b2hlt_read_histos - helper tool to check the content of a DQM shared memory file repeatedly (every 5s).");
28 (
"help,h",
"Print this help message")
29 (
"dqmFileName", po::value<std::string>(&dqmFileName)->required(),
30 "where to read the shared memory from");
32 po::positional_options_description p;
37 po::command_line_parser(argc, argv).options(desc).positional(p).run(), vm);
38 }
catch (std::exception& e) {
42 if (vm.count(
"help")) {
43 std::cout << desc << std::endl;
49 }
catch (std::exception& e) {
55 while (mainLoop.isRunning()) {
57 auto memFile = file.LoadMemFile();
58 memFile->GetListOfKeys()->Print();
60 using namespace std::chrono_literals;
61 std::this_thread::sleep_for(5s);
Abstract base class for different kinds of events.