CbmRoot
Loading...
Searching...
No Matches
runCbmMqHistoServer.cxx
Go to the documentation of this file.
1/* Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
5#include "CbmMqHistoServer.h"
6
7#include <memory>
8
9#include "runFairMQDevice.h"
10
11namespace bpo = boost::program_options;
12
13void addCustomOptions(bpo::options_description& options)
14{
15 options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
16 "MQ channel name for histos");
17 options.add_options()("ChNameHistCfg", bpo::value<std::string>()->default_value("histo-conf"),
18 "MQ channel name for histos config");
19 options.add_options()("ChNameCanvCfg", bpo::value<std::string>()->default_value("canvas-conf"),
20 "MQ channel name for canvases config");
21 options.add_options()("HistoFileName", bpo::value<std::string>()->default_value("HistosMonitorPulser.root"),
22 ".root File name for histo saving");
23 options.add_options()("histport", bpo::value<uint32_t>()->default_value(8080), "port for histos http server");
24}
25
26FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/)
27{
28 CbmMqHistoServer* histoServer = new CbmMqHistoServer();
29
30 return histoServer;
31}
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)