CbmRoot
Loading...
Searching...
No Matches
runMonitorPsd.cxx
Go to the documentation of this file.
1/* Copyright (C) 2021 Institute for Nuclear Research, Moscow
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Nikolay Karpushkin [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()("IgnOverMs", bpo::value<bool>()->default_value(true), "Ignore overlap MS if true");
18 options.add_options()("MonitorMode", bpo::value<bool>()->default_value(true), "Monitor mode ON/OFF");
19 options.add_options()("MonitorChanMode", bpo::value<bool>()->default_value(false), "Monitor channelwise mode ON/OFF");
20 options.add_options()("MonitorWfmMode", bpo::value<bool>()->default_value(false), "Monitor waveform mode ON/OFF");
21 options.add_options()("MonitorFitMode", bpo::value<bool>()->default_value(false), "Monitor fit waveform mode ON/OFF");
22 options.add_options()("HistEvoSz", bpo::value<uint32_t>()->default_value(1800),
23 "Size of evolution histos in seconds");
24 options.add_options()("HistChrgArgs", bpo::value<vector<int>>()->multitoken(), "Charge histos arguments");
25 options.add_options()("HistAmplArgs", bpo::value<vector<int>>()->multitoken(), "Ampl histos arguments");
26 options.add_options()("HistZlArgs", bpo::value<vector<int>>()->multitoken(), "ZL histos arguments");
27 options.add_options()("PubFreqTs", bpo::value<uint32_t>()->default_value(100), "Histo publishing frequency in TS");
28 options.add_options()("PubTimeMin", bpo::value<double_t>()->default_value(1.0),
29 "Minimal time between two publishing");
30 options.add_options()("PubTimeMax", bpo::value<double_t>()->default_value(10.0),
31 "Maximal time between two publishing");
32 options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("psdcomponent"),
33 "MQ channel name for TS data");
34 options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
35 "MQ channel name for histos");
36 options.add_options()("ChNameHistCfg", bpo::value<std::string>()->default_value("histo-conf"),
37 "MQ channel name for histos config");
38 options.add_options()("ChNameCanvCfg", bpo::value<std::string>()->default_value("canvas-conf"),
39 "MQ channel name for canvases config");
40}
41
42FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceMonitorPsd(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)