2 #include "runFairMQDevice.h"
7 namespace bpo = boost::program_options;
11 options.add_options()(
13 bpo::value<bool>()->default_value(
true),
14 "Fill histograms and send them to histo server if true");
15 options.add_options()(
"IgnTsOver",
16 bpo::value<bool>()->default_value(
false),
17 "Ignore TS overlap if true");
18 options.add_options()(
20 bpo::value<std::string>()->default_value(
"NoOverlap"),
21 "Set the event overlap mode, use string matching an EOverlapMode ");
22 options.add_options()(
24 bpo::value<std::string>()->default_value(
"kT0"),
25 "Set the reference (seed) detector, use string matching an ECbmModuleId ");
26 options.add_options()(
28 bpo::value<std::vector<std::string>>()->multitoken()->composing(),
29 "Add a detector for digis selection, use string matching an ECbmModuleId ");
30 options.add_options()(
32 bpo::value<std::vector<std::string>>()->multitoken()->composing(),
33 "Remove a detector for digis selection, use string matching an "
35 options.add_options()(
37 bpo::value<std::vector<std::string>>()->multitoken()->composing(),
38 "Set trigger window for selected detector, use string matching "
39 "ECbmModuleId,dWinBeg,dWinEnd e.g. kSts,-10.5,100.0");
40 options.add_options()(
42 bpo::value<std::vector<std::string>>()->multitoken()->composing(),
43 "Set minimum number of digis for selected detector, use string matching "
44 "ECbmModuleId,uMinNb e.g. kTof,10");
45 options.add_options()(
"TsNameIn",
46 bpo::value<std::string>()->default_value(
"unpts_0"),
47 "MQ channel name for unpacked TS data");
48 options.add_options()(
"EvtNameOut",
49 bpo::value<std::string>()->default_value(
"events"),
50 "MQ channel name for built events");
51 options.add_options()(
53 bpo::value<std::string>()->default_value(
"histogram-in"),
54 "MQ channel name for histos");
55 options.add_options()(
"ChNameHistCfg",
56 bpo::value<std::string>()->default_value(
"histo-conf"),
57 "MQ channel name for histos config");
58 options.add_options()(
"ChNameCanvCfg",
59 bpo::value<std::string>()->default_value(
"canvas-conf"),
60 "MQ channel name for canvases config");
61 options.add_options()(
"PubFreqTs",
62 bpo::value<uint32_t>()->default_value(100),
63 "Histo publishing frequency in TS");
64 options.add_options()(
"PubTimeMin",
65 bpo::value<double_t>()->default_value(1.0),
66 "Minimal time between two publishing");
67 options.add_options()(
"PubTimeMax",
68 bpo::value<double_t>()->default_value(10.0),
69 "Maximal time between two publishing");
72 FairMQDevicePtr
getDevice(
const FairMQProgOptions& ) {