CbmRoot
Loading...
Searching...
No Matches
runMcbmMonitorPulser.cxx
Go to the documentation of this file.
1/* Copyright (C) 2020 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()("DebugMoni", bpo::value<bool>()->default_value(false), "Debug Monitor Mode");
18 options.add_options()("HistEvoSz", bpo::value<uint32_t>()->default_value(1800),
19 "Size of evolution histos in seconds");
20 options.add_options()("PulsTotMin", bpo::value<uint32_t>()->default_value(185), "Minimal TOT for pulser cut");
21 options.add_options()("PulsTotMax", bpo::value<uint32_t>()->default_value(195), "Maximal TOT for pulser cut");
22 options.add_options()("PubFreqTs", bpo::value<uint32_t>()->default_value(100), "Histo publishing frequency in TS");
23 options.add_options()("PubTimeMin", bpo::value<double_t>()->default_value(1.0),
24 "Minimal time between two publishing");
25 options.add_options()("PubTimeMax", bpo::value<double_t>()->default_value(10.0),
26 "Maximal time between two publishing");
27 options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("unpts_0"), "MQ channel name for TS data");
28 options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
29 "MQ channel name for histos");
30 options.add_options()("ChNameHistCfg", bpo::value<std::string>()->default_value("histo-conf"),
31 "MQ channel name for histos config");
32 options.add_options()("ChNameCanvCfg", bpo::value<std::string>()->default_value("canvas-conf"),
33 "MQ channel name for canvases config");
34}
35
36FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceMcbmMonitorPulser(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)