CbmRoot
Loading...
Searching...
No Matches
runTrigger.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 "CbmDevTrigger.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()("TriggerWin", bpo::value<double>()->default_value(0.0), "Time window for trigger algorithm");
17 options.add_options()("TriggerMinDigis", bpo::value<int32_t>()->default_value(1),
18 "Minimum digi count for trigger algorithm");
19 options.add_options()("TriggerDeadTime", bpo::value<double>()->default_value(0.0), "Dead time for trigger algorithm");
20 options.add_options()("TriggerDet", bpo::value<std::string>()->default_value(""),
21 "Set the trigger detector, use string matching an ECbmModuleId ");
22 options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("unpts_0"),
23 "MQ channel name for unpacked TS data");
24 options.add_options()("TriggerNameOut", bpo::value<std::string>()->default_value("trigger"),
25 "MQ channel name for trigger times");
26}
27
28FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDevTrigger(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)