FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
runLmdSampler.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 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  * File: runSamplerRoot.cxx
10  * Author: winckler
11  *
12  * Created on January 15, 2015, 1:57 PM
13  */
14 
15 #include "FairMQLmdSampler.h"
16 #include "runFairMQDevice.h"
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  ("input-file-name", bpo::value<std::string>(), "Path to the input file")
25  ("lmd-type", bpo::value<short>(), "sub-event type")
26  ("lmd-sub-type", bpo::value<short>(), "sub-event subType")
27  ("lmd-proc-id", bpo::value<short>(), "sub-event procId")
28  ("lmd-sub-crate", bpo::value<short>(), "sub-event subCrate")
29  ("lmd-control", bpo::value<short>(), "sub-event control")
30  ("lmd-chan-name", bpo::value<std::string>(), "LMD output channel name");
31  // clang-format on
32 }
33 
34 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new FairMQLmdSampler(); }
void addCustomOptions(bpo::options_description &options)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)