CbmRoot
runMcbmEventSink.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  "OutFileName",
13  bpo::value<std::string>()->default_value("mcbm_digis_events.root"),
14  "Name (full or relative path) of the output .root file ");
15  options.add_options()("EvtNameIn",
16  bpo::value<std::string>()->default_value("events"),
17  "MQ channel name for built events");
18  options.add_options()(
19  "FillHistos",
20  bpo::value<bool>()->default_value(false),
21  "Fill histograms and send them to histo server if true");
22  options.add_options()(
23  "ChNameIn",
24  bpo::value<std::string>()->default_value("histogram-in"),
25  "MQ channel name for histos");
26  options.add_options()("ChNameHistCfg",
27  bpo::value<std::string>()->default_value("histo-conf"),
28  "MQ channel name for histos config");
29  options.add_options()("ChNameCanvCfg",
30  bpo::value<std::string>()->default_value("canvas-conf"),
31  "MQ channel name for canvases config");
32  options.add_options()("PubFreqTs",
33  bpo::value<uint32_t>()->default_value(100),
34  "Histo publishing frequency in TS");
35  options.add_options()("PubTimeMin",
36  bpo::value<double_t>()->default_value(1.0),
37  "Minimal time between two publishing");
38  options.add_options()("PubTimeMax",
39  bpo::value<double_t>()->default_value(10.0),
40  "Maximal time between two publishing");
41 }
42 
43 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
44  return new CbmDeviceMcbmEventSink();
45 }
CbmDeviceMcbmEventSink.h
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runMcbmEventSink.cxx:43
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runMcbmEventSink.cxx:10
CbmDeviceMcbmEventSink
Definition: CbmDeviceMcbmEventSink.h:58