CbmRoot
Loading...
Searching...
No Matches
runEventSink.cxx
Go to the documentation of this file.
1/* Copyright (C) 2021 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
5#include "CbmDevEventSink.h"
6#include "runFairMQDevice.h"
7
8#include <iomanip>
9#include <string>
10
11namespace bpo = boost::program_options;
12using namespace std;
13
14void addCustomOptions(bpo::options_description& options)
15{
16 options.add_options()("OutFileName", bpo::value<std::string>()->default_value(""),
17 "Name (full or relative path) of the output .root file ");
18 options.add_options()("ChannelNameDataInput", bpo::value<std::string>()->default_value("events"),
19 "MQ channel name for digi events");
20 options.add_options()("ChannelNameCommands", bpo::value<std::string>()->default_value("commands"),
21 "MQ channel name for commands");
22}
23
24FairMQDevicePtr getDevice(const FairMQProgOptions&) { return new CbmDevEventSink(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)