CbmRoot
runMcbmEvtBuilderWin.cxx
Go to the documentation of this file.
2 #include "runFairMQDevice.h"
3 
4 #include <iomanip>
5 #include <string>
6 
7 namespace bpo = boost::program_options;
8 using namespace std;
9 
10 void addCustomOptions(bpo::options_description& options) {
11  options.add_options()(
12  "FillHistos",
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()(
19  "EvtOverMode",
20  bpo::value<std::string>()->default_value("NoOverlap"),
21  "Set the event overlap mode, use string matching an EOverlapMode ");
22  options.add_options()(
23  "RefDet",
24  bpo::value<std::string>()->default_value("kT0"),
25  "Set the reference (seed) detector, use string matching an ECbmModuleId ");
26  options.add_options()(
27  "AddDet",
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()(
31  "DelDet",
32  bpo::value<std::vector<std::string>>()->multitoken()->composing(),
33  "Remove a detector for digis selection, use string matching an "
34  "ECbmModuleId ");
35  options.add_options()(
36  "SetTrigWin",
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()(
41  "SetTrigMinNb",
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()(
52  "ChNameIn",
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");
70 }
71 
72 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
73  return new CbmDeviceMcbmEventBuilderWin();
74 }
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runMcbmEvtBuilderWin.cxx:10
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runMcbmEvtBuilderWin.cxx:72
CbmDeviceMcbmEventBuilderWin
Definition: CbmDeviceMcbmEventBuilderWin.h:38
CbmDeviceMcbmEventBuilderWin.h