CbmRoot
runTsaSamplerTof.cxx
Go to the documentation of this file.
1 #include "CbmMQTsaSamplerTof.h"
2 #include "runFairMQDevice.h"
3 
4 namespace bpo = boost::program_options;
5 
6 void addCustomOptions(bpo::options_description& options) {
7  options.add_options()("filename",
8  bpo::value<std::string>()->default_value(""),
9  "Filename of the input file")(
10  "dirname",
11  bpo::value<std::string>()->default_value(""),
12  "Directory name where to find the input files")(
13  "flib-host",
14  bpo::value<std::string>()->default_value(""),
15  "Host where the timeslice server is running")(
16  "max-timeslices",
17  bpo::value<uint64_t>()->default_value(0),
18  "Maximum number of timeslices to process for Run/ConditionalRun/OnData (0 "
19  "- infinite)")("flib-port",
20  bpo::value<uint64_t>()->default_value(0),
21  "Port where the timeslice server is running");
22 }
23 
24 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
25  return new CbmMQTsaSamplerTof();
26 }
CbmMQTsaSamplerTof.h
CbmMQTsaSamplerTof
Definition: CbmMQTsaSamplerTof.h:24
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runTsaSamplerTof.cxx:24
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runTsaSamplerTof.cxx:6