FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
runPixAltTaskProcessorBin.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014-2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 
9 #include "PixelAltFindHits.h"
10 #include "runFairMQDevice.h"
11 
12 // PixelAlternative example
14 
15 namespace bpo = boost::program_options;
16 
17 void addCustomOptions(bpo::options_description& options)
18 {
19  // clang-format off
20  options.add_options()
21  ("task-name", bpo::value<std::string>()->required(), "Name of task to run")
22  ("keep-data", bpo::value<std::string>(), "Name of data to keep in stream")
23  ("in-channel", bpo::value<std::string>()->default_value("data-in"), "input channel name")
24  ("out-channel", bpo::value<std::string>()->default_value("data-out"), "output channel name")
25  ("par-channel", bpo::value<std::string>()->default_value("param"), "param channel name");
26  // clang-format on
27 }
28 
29 FairMQDevicePtr getDevice(const FairMQProgOptions& config)
30 {
31  std::string taskname = config.GetValue<std::string>("task-name");
32 
33  std::cout << "get device with setting!" << std::endl;
34 
35  if (taskname == "PixelAltFindHits") {
37  }
38 
39  LOG(info) << "TASK \"" << taskname << "\" UNKNOWN!!!";
40  return 0;
41 }
void addCustomOptions(bpo::options_description &options)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)