CbmRoot
Loading...
Searching...
No Matches
runBuildEvents.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: Dominik Smith [committer] */
4
5#include "CbmDevBuildEvents.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()("SetEvbuildWin", bpo::value<std::vector<std::string>>()->multitoken()->composing(),
19 "Set event builder window for selected detector, use string matching "
20 "ECbmModuleId,dWinBeg,dWinEnd e.g. kSts,-10.5,100.0");
21 options.add_options()("TrigNameIn", bpo::value<std::string>()->default_value("trigger"),
22 "MQ channel name for TS data and triggers");
23 options.add_options()("EvtNameOut", bpo::value<std::string>()->default_value("events"),
24 "MQ channel name for built events");
25}
26
27FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDevBuildEvents(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)