CbmRoot
Loading...
Searching...
No Matches
runMonitorBmon.cxx
Go to the documentation of this file.
1/* Copyright (C) 2019-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau, Florian Uhlig [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()("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()("SpillThr", bpo::value<uint32_t>()->default_value(25), "Hits Nb Thr for spill detection");
23 options.add_options()("SpillThrNonPuls", bpo::value<uint32_t>()->default_value(10),
24 "Non pulser Hits Nb Thr for spill detection");
25 options.add_options()("SpillCheckInt", bpo::value<double>()->default_value(0.128),
26 "Interval in seconds between count checks for spill detection");
27 options.add_options()("ChanMap", bpo::value<std::string>()->default_value("0,1,2,3,4,5,6,7"),
28 "Set Bmon channel map e.g. 0,1,2,3,4,5,6,7");
29 options.add_options()("PubFreqTs", bpo::value<uint32_t>()->default_value(100), "Histo publishing frequency in TS");
30 options.add_options()("PubTimeMin", bpo::value<double_t>()->default_value(1.0),
31 "Minimal time between two publishing");
32 options.add_options()("PubTimeMax", bpo::value<double_t>()->default_value(10.0),
33 "Maximal time between two publishing");
34 options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("t0component"),
35 "MQ channel name for TS data");
36 options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
37 "MQ channel name for histos");
38}
39
40FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceMonitorBmon(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)