CbmRoot
runTsaMultiSampler.cxx
Go to the documentation of this file.
1 #include "CbmMQTsaMultiSampler.h"
2 #include "runFairMQDevice.h"
3 
4 namespace bpo = boost::program_options;
5 
6 void addCustomOptions(bpo::options_description& options) {
7  options.add_options()("filename",
8  bpo::value<std::string>()->default_value(""),
9  "Filename of the input file")(
10  "dirname",
11  bpo::value<std::string>()->default_value(""),
12  "Directory name where to find the input files")(
13  "flib-host",
14  bpo::value<std::string>()->default_value(""),
15  "Host where the timeslice server is running")(
16  "max-timeslices",
17  bpo::value<uint64_t>()->default_value(0),
18  "Maximum number of timeslices to process for Run/ConditionalRun/OnData (0 "
19  "- infinite)")("high-water-mark",
20  bpo::value<uint64_t>()->default_value(1),
21  "High water mark for ZeroMQ")(
22  "no-split-ts",
23  bpo::value<bool>()->default_value(0),
24  "Send a copy of the full TS to all enabled channels")(
25  "send-ts-per-sysid",
26  bpo::value<bool>()->default_value(0),
27  "Send a single TS per SysId with all matching components")(
28  "send-ts-per-channel",
29  bpo::value<bool>()->default_value(0),
30  "Send a single TS per channel with all matching components")(
31  "sysid-chan",
32  bpo::value<std::vector<std::string>>(),
33  "Pair a SysId in hex + channel name, separated by :, unique SysId!")(
34  "flib-port",
35  bpo::value<uint64_t>()->default_value(0),
36  "Port where the timeslice server is running");
37 
38  options.add_options()("ChNameMissTs",
39  bpo::value<std::string>()->default_value(""),
40  "MQ channel name for missed TS indices");
41  options.add_options()("ChNameCmds",
42  bpo::value<std::string>()->default_value(""),
43  "MQ channel name for commands to slaves");
44  /*
45  options.add_options() ( "ChNameIn", bpo::value< std::string >()->default_value( "histogram-in" ),
46  "MQ channel name for histos");
47  options.add_options() ( "ChNameHistCfg", bpo::value< std::string >()->default_value( "histo-conf" ),
48  "MQ channel name for histos config");
49  options.add_options() ( "ChNameCanvCfg", bpo::value< std::string >()->default_value( "canvas-conf" ),
50  "MQ channel name for canvases config");
51 */
52 }
53 
54 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
55  return new CbmMQTsaMultiSampler();
56 }
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runTsaMultiSampler.cxx:6
CbmMQTsaMultiSampler
Definition: CbmMQTsaMultiSampler.h:23
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runTsaMultiSampler.cxx:54
CbmMQTsaMultiSampler.h