FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
runPixelFileSinkBin.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 "runFairMQDevice.h"
10 
11 // PixelDetector example
12 #include "FairMQPixelFileSinkBin.h"
13 
14 #include <string>
15 #include <vector>
16 
17 namespace bpo = boost::program_options;
18 
19 void addCustomOptions(bpo::options_description& options)
20 {
21  // clang-format off
22  options.add_options()
23  ("file-name", bpo::value<std::string>(), "Path to the output file")
24  ("class-name", bpo::value<std::vector<std::string>>(), "class name")
25  ("branch-name", bpo::value<std::vector<std::string>>(), "branch name")
26  ("in-channel", bpo::value<std::string>()->default_value("data-in"), "input channel name")
27  ("ack-channel", bpo::value<std::string>(), "ack channel name");
28  // clang-format on
29 }
30 
31 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new FairMQPixelFileSinkBin(); }
void addCustomOptions(bpo::options_description &options)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)