CbmRoot
Loading...
Searching...
No Matches
runBmonMonitor.cxx
Go to the documentation of this file.
1/* Copyright (C) 2022 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
6
7#include <iomanip>
8#include <string>
9
10#include "runFairMQDevice.h"
11
12namespace bpo = boost::program_options;
13using namespace std;
14
15void addCustomOptions(bpo::options_description& options)
16{
17 options.add_options()("Setup", bpo::value<std::string>()->default_value("mcbm_beam_2021_07_surveyed"),
18 "Name/tag of the geomatry setup");
19 options.add_options()("RunId", bpo::value<uint32_t>()->default_value(1588), "Run ID");
20 options.add_options()("UnpBmon", bpo::value<bool>()->default_value(false), "Enable Bmon unpacking if true");
21 options.add_options()("IgnOverMs", bpo::value<bool>()->default_value(true), "Ignore overlap MS if true");
22 options.add_options()("FullTimeSort", bpo::value<bool>()->default_value(true),
23 "Full time sorting per detector before sending output array");
24 options.add_options()("SetTimeOffs", bpo::value<std::vector<std::string>>()->multitoken()->composing(),
25 "Set time offset in ns for selected detector, use string matching "
26 "ECbmModuleId,dOffs e.g. kTof,-35.2");
27 options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("ts-request"),
28 "MQ channel name for raw TS data");
29 options.add_options()("TsNameOut", bpo::value<std::string>()->default_value("unpts_0"),
30 "MQ channel name for unpacked TS data");
31
32 options.add_options()("PubFreqTs", bpo::value<uint32_t>()->default_value(0), "Histo publishing frequency in TS");
33 options.add_options()("PubTimeMin", bpo::value<double_t>()->default_value(1.0),
34 "Minimal time between two publishing");
35 options.add_options()("PubTimeMax", bpo::value<double_t>()->default_value(10.0),
36 "Maximal time between two publishing");
37 options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
38 "MQ channel name for histos");
39}
40
41FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceBmonMonitor(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)