Project
Loading...
Searching...
No Matches
O2PrimaryServerDeviceRunner.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
13
14#include <fairmq/runDevice.h>
16#include <SimConfig/SimConfig.h>
17
18namespace bpo = boost::program_options;
19
20void addCustomOptions(bpo::options_description& options)
21{
22 // append the same options here as used for SimConfig
24 options.add_options()("isRun5", "flag whether a Run5 detector setup is expected");
25}
26
27std::unique_ptr<fair::mq::Device> getDevice(fair::mq::ProgOptions& config)
28{
29 return std::make_unique<o2::devices::O2PrimaryServerDevice>();
30}
void addCustomOptions(bpo::options_description &options)
o2::devices::O2SimDevice * getDevice()
static void initOptions(boost::program_options::options_description &, bool isUpgrade=false)
Definition SimConfig.cxx:27