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>
15
#include "
O2PrimaryServerDevice.h
"
16
#include <
SimConfig/SimConfig.h
>
17
18
namespace
bpo
=
boost::program_options
;
19
20
void
addCustomOptions
(bpo::options_description& options)
21
{
22
// append the same options here as used for SimConfig
23
o2::conf::SimConfig::initOptions
(options);
24
options.add_options()(
"isRun5"
,
"flag whether a Run5 detector setup is expected"
);
25
}
26
27
std::unique_ptr<fair::mq::Device>
getDevice
(fair::mq::ProgOptions& config)
28
{
29
return
std::make_unique<o2::devices::O2PrimaryServerDevice>();
30
}
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition
O2PrimaryServerDeviceRunner.cxx:20
O2PrimaryServerDevice.h
getDevice
o2::devices::O2SimDevice * getDevice()
Definition
O2SimDeviceRunner.cxx:98
SimConfig.h
o2::conf::SimConfig::initOptions
static void initOptions(boost::program_options::options_description &, bool isUpgrade=false)
Definition
SimConfig.cxx:27
boost::program_options
Definition
BoostOptionsRetriever.h:24
run
O2PrimaryServerDeviceRunner.cxx
Generated on Tue Feb 25 2025 23:16:46 for Project by
1.9.8