FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
runMBSMQUnpacker.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: runMBSUnpacker.cxx
10  * Author: winckler
11  *
12  * Created on January 15, 2015, 1:57 PM
13  */
14 
15 #include "FairMBSUnpacker.h"
16 #include "FairMQUnpacker.h"
17 #include "runFairMQDevice.h"
18 
19 namespace bpo = boost::program_options;
20 
21 void addCustomOptions(bpo::options_description& options)
22 {
23  // clang-format off
24  options.add_options()
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 input channel name")
31  ("out-chan-name", bpo::value<std::string>(), "output channel name");
32  // clang-format on
33 }
34 
35 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new FairMQUnpacker<FairMBSUnpacker>(); }
void addCustomOptions(bpo::options_description &options)
FairMQDevicePtr getDevice(const FairMQProgOptions &config)