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