CbmRoot
runMcbmUnpack.cxx
Go to the documentation of this file.
1 #include "CbmDeviceMcbmUnpack.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()(
15  "SetTimeOffs",
16  bpo::value<std::vector<std::string>>()->multitoken()->composing(),
17  "Set time offset in ns for selected detector, use string matching "
18  "ECbmModuleId,dOffs e.g. kTof,-35.2");
19  options.add_options()("TsNameIn",
20  bpo::value<std::string>()->default_value("fullts"),
21  "MQ channel name for raw TS data");
22  options.add_options()("TsNameOut",
23  bpo::value<std::string>()->default_value("unpts_0"),
24  "MQ channel name for unpacked TS data");
25 }
26 
27 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
28  return new CbmDeviceMcbmUnpack();
29 }
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runMcbmUnpack.cxx:27
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runMcbmUnpack.cxx:10
CbmDeviceMcbmUnpack.h
CbmDeviceMcbmUnpack
Definition: CbmDeviceMcbmUnpack.h:31