CbmRoot
Loading...
Searching...
No Matches
runMonitorTof.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()("IgnOverMs", bpo::value<bool>()->default_value(true), "Ignore overlap MS if true");
18 options.add_options()("DebugMoni", bpo::value<bool>()->default_value(false), "Debug Monitor Mode");
19 options.add_options()("IgnCritErr", bpo::value<bool>()->default_value(true), "Ignore Critical Errors");
20 options.add_options()("HistEvoSz", bpo::value<uint32_t>()->default_value(1800),
21 "Size of evolution histos in seconds");
22 options.add_options()("PulsTotMin", bpo::value<uint32_t>()->default_value(185), "Minimal TOT for pulser cut");
23 options.add_options()("PulsTotMax", bpo::value<uint32_t>()->default_value(195), "Maximal TOT for pulser cut");
24 options.add_options()("GdpbIdx", bpo::value<int32_t>()->default_value(-1),
25 "Single gDPB selection by index, -1 (default) to disable");
26 options.add_options()("PubFreqTs", bpo::value<uint32_t>()->default_value(100), "Histo publishing frequency in TS");
27 options.add_options()("PubTimeMin", bpo::value<double_t>()->default_value(1.0),
28 "Minimal time between two publishing");
29 options.add_options()("PubTimeMax", bpo::value<double_t>()->default_value(10.0),
30 "Maximal time between two publishing");
31 options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("tofcomponent"),
32 "MQ channel name for TS data");
33 options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
34 "MQ channel name for histos");
35}
36
37FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceMonitorTof(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)