CbmRoot
runMCPointSource.cxx
Go to the documentation of this file.
1 #include "CbmMCPointSource.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  "max-events",
11  bpo::value<uint64_t>()->default_value(0),
12  "Maximum number of timeslices to process for Run/ConditionalRun/OnData (0 "
13  "- infinite)");
14 }
15 
16 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
17  return new CbmMCPointSource();
18 }
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runMCPointSource.cxx:16
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runMCPointSource.cxx:6
CbmMCPointSource.h
CbmMCPointSource
Definition: CbmMCPointSource.h:29