13 #include "runFairMQDevice.h"
25 namespace bpo = boost::program_options;
31 (
"task-name", bpo::value<std::string>()->required(),
"Name of task to run")
32 (
"keep-data", bpo::value<std::string>(),
"Name of data to keep in stream")
33 (
"in-channel", bpo::value<std::string>()->default_value(
"data-in"),
"input channel name")
34 (
"out-channel", bpo::value<std::string>()->default_value(
"data-out"),
"output channel name")
35 (
"par-channel", bpo::value<std::string>()->default_value(
"param"),
"param channel name")
36 (
"static-pars", bpo::value<bool>()->default_value(
false),
"static parameters flag");
40 FairMQDevicePtr
getDevice(
const FairMQProgOptions& config)
42 std::string taskname = config.GetValue<std::string>(
"task-name");
44 LOG(info) <<
"get device with setting!";
46 if (taskname ==
"PixelFindHits") {
48 }
else if (taskname ==
"PixelFindTracks") {
50 }
else if (taskname ==
"PixelFitTracks") {
52 }
else if (taskname ==
"PixelDigitize") {
FairMQPixelTaskProcessor< PixelFitTracks > TrackFitter
void addCustomOptions(bpo::options_description &options)
FairMQPixelTaskProcessor< PixelFindTracks > TrackFinder
FairMQPixelTaskProcessor< PixelFindHits > HitFinder
FairMQPixelTaskProcessor< PixelDigitize > Digitizer
FairMQDevicePtr getDevice(const FairMQProgOptions &config)