CbmRoot
runCbmMqHistoServer.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #include <memory>
9 
10 #include "runFairMQDevice.h"
11 
12 #include "CbmMqHistoServer.h"
13 
14 namespace bpo = boost::program_options;
15 
16 void addCustomOptions(bpo::options_description& options) {
17  options.add_options()(
18  "ChNameIn",
19  bpo::value<std::string>()->default_value("histogram-in"),
20  "MQ channel name for histos");
21  options.add_options()("ChNameHistCfg",
22  bpo::value<std::string>()->default_value("histo-conf"),
23  "MQ channel name for histos config");
24  options.add_options()("ChNameCanvCfg",
25  bpo::value<std::string>()->default_value("canvas-conf"),
26  "MQ channel name for canvases config");
27  options.add_options()(
28  "HistoFileName",
29  bpo::value<std::string>()->default_value("HistosMonitorPulser.root"),
30  ".root File name for histo saving");
31  options.add_options()("histport",
32  bpo::value<uint32_t>()->default_value(8080),
33  "port for histos http server");
34 }
35 
36 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
37  CbmMqHistoServer* histoServer = new CbmMqHistoServer();
38 
39  return histoServer;
40 }
CbmMqHistoServer.h
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runCbmMqHistoServer.cxx:36
CbmMqHistoServer
Definition: CbmMqHistoServer.h:23
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runCbmMqHistoServer.cxx:16