2 #include "runFairMQDevice.h"
4 namespace bpo = boost::program_options;
7 options.add_options()(
"filename",
8 bpo::value<std::string>()->default_value(
""),
9 "Filename of the input file")(
11 bpo::value<std::string>()->default_value(
""),
12 "Directory name where to find the input files")(
14 bpo::value<std::string>()->default_value(
""),
15 "Host where the timeslice server is running")(
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")(
23 bpo::value<bool>()->default_value(0),
24 "Send a copy of the full TS to all enabled channels")(
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")(
32 bpo::value<std::vector<std::string>>(),
33 "Pair a SysId in hex + channel name, separated by :, unique SysId!")(
35 bpo::value<uint64_t>()->default_value(0),
36 "Port where the timeslice server is running");
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");
54 FairMQDevicePtr
getDevice(
const FairMQProgOptions& ) {