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