CbmRoot
runMonitorT0.cxx
Go to the documentation of this file.
1 #include "CbmDeviceMonitorT0.h"
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()("IgnOverMs",
12  bpo::value<bool>()->default_value(true),
13  "Ignore overlap MS if true");
14  options.add_options()("HistEvoSz",
15  bpo::value<uint32_t>()->default_value(1800),
16  "Size of evolution histos in seconds");
17  options.add_options()("PulsTotMin",
18  bpo::value<uint32_t>()->default_value(185),
19  "Minimal TOT for pulser cut");
20  options.add_options()("PulsTotMax",
21  bpo::value<uint32_t>()->default_value(195),
22  "Maximal TOT for pulser cut");
23  options.add_options()("SpillThr",
24  bpo::value<uint32_t>()->default_value(1000),
25  "Hits Nb Thr for spill detection");
26  options.add_options()("PubFreqTs",
27  bpo::value<uint32_t>()->default_value(100),
28  "Histo publishing frequency in TS");
29  options.add_options()("PubTimeMin",
30  bpo::value<double_t>()->default_value(1.0),
31  "Minimal time between two publishing");
32  options.add_options()("PubTimeMax",
33  bpo::value<double_t>()->default_value(10.0),
34  "Maximal time between two publishing");
35  options.add_options()("TsNameIn",
36  bpo::value<std::string>()->default_value("t0component"),
37  "MQ channel name for TS data");
38  options.add_options()(
39  "ChNameIn",
40  bpo::value<std::string>()->default_value("histogram-in"),
41  "MQ channel name for histos");
42  options.add_options()("ChNameHistCfg",
43  bpo::value<std::string>()->default_value("histo-conf"),
44  "MQ channel name for histos config");
45  options.add_options()("ChNameCanvCfg",
46  bpo::value<std::string>()->default_value("canvas-conf"),
47  "MQ channel name for canvases config");
48 }
49 
50 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
51  return new CbmDeviceMonitorT0();
52 }
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runMonitorT0.cxx:10
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runMonitorT0.cxx:50
CbmDeviceMonitorT0
Definition: CbmDeviceMonitorT0.h:26
CbmDeviceMonitorT0.h