-
Eoin Clerkin authored
Files with detected previous copyright or authorship skipped. Copyright claimed for the current or last CBMC institute of the original commiter to the SVN or GIT repositories. File distributed under GNU public license version 3.0 declared. Revert "Adds license header to .cxx, .cpp, .h, and .C files" This reverts commit 94da1500. Removes one blank line Revert "Removes one blank line" This reverts commit a8e5e236. Preemptive empty lines removal If first two lines of a file are empty, or have spaces and tabs only then remove the lines. Revert "Preemptive empty lines removal" This reverts commit da38bf5d. Add empty line For stylistic reasons, an empty line is added after doxygen header. Revert "Add empty line" This reverts commit 30491934. Puts space between includes. Revert "Puts space between includes." This reverts commit 468b7024. Add multiple authors tag Lists authors in order of their contribution Revert "Add multiple authors tag" This reverts commit f5d3e748. Removes empty line on one file for clang format compliance. Revert "Removes empty line on one file for clang format compliance." This reverts commit fbac8bad. Small changes as per requested. Add small (o) to original commiters username. Adds running 10 percent instead of line count treshold for contributors. Revert "Small changes as per requested." This reverts commit 84af7b5f. Long form of names Word originator beside original committer of file. Revert "Long form of names" This reverts commit 759426e2. Add space between comma seperated double affilliation institutes
Eoin Clerkin authoredFiles with detected previous copyright or authorship skipped. Copyright claimed for the current or last CBMC institute of the original commiter to the SVN or GIT repositories. File distributed under GNU public license version 3.0 declared. Revert "Adds license header to .cxx, .cpp, .h, and .C files" This reverts commit 94da1500. Removes one blank line Revert "Removes one blank line" This reverts commit a8e5e236. Preemptive empty lines removal If first two lines of a file are empty, or have spaces and tabs only then remove the lines. Revert "Preemptive empty lines removal" This reverts commit da38bf5d. Add empty line For stylistic reasons, an empty line is added after doxygen header. Revert "Add empty line" This reverts commit 30491934. Puts space between includes. Revert "Puts space between includes." This reverts commit 468b7024. Add multiple authors tag Lists authors in order of their contribution Revert "Add multiple authors tag" This reverts commit f5d3e748. Removes empty line on one file for clang format compliance. Revert "Removes empty line on one file for clang format compliance." This reverts commit fbac8bad. Small changes as per requested. Add small (o) to original commiters username. Adds running 10 percent instead of line count treshold for contributors. Revert "Small changes as per requested." This reverts commit 84af7b5f. Long form of names Word originator beside original committer of file. Revert "Long form of names" This reverts commit 759426e2. Add space between comma seperated double affilliation institutes
runMonitorTof.cxx 2.38 KiB
/** @file runMonitorTof.cxx
* @copyright Copyright (C) 2020 Facility for Antiproton and Ion Research in Europe, Darmstadt
* @license SPDX-License-Identifier: GPL-3.0-only
* @authors Pierre-Alain Loizeau [orginator] **/
#include "CbmDeviceMonitorTof.h"
#include <iomanip>
#include <string>
#include "runFairMQDevice.h"
namespace bpo = boost::program_options;
using namespace std;
void addCustomOptions(bpo::options_description& options)
{
options.add_options()("IgnOverMs", bpo::value<bool>()->default_value(true), "Ignore overlap MS if true");
options.add_options()("DebugMoni", bpo::value<bool>()->default_value(false), "Debug Monitor Mode");
options.add_options()("IgnCritErr", bpo::value<bool>()->default_value(true), "Ignore Critical Errors");
options.add_options()("HistEvoSz", bpo::value<uint32_t>()->default_value(1800),
"Size of evolution histos in seconds");
options.add_options()("PulsTotMin", bpo::value<uint32_t>()->default_value(185), "Minimal TOT for pulser cut");
options.add_options()("PulsTotMax", bpo::value<uint32_t>()->default_value(195), "Maximal TOT for pulser cut");
options.add_options()("GdpbIdx", bpo::value<int32_t>()->default_value(-1),
"Single gDPB selection by index, -1 (default) to disable");
options.add_options()("PubFreqTs", bpo::value<uint32_t>()->default_value(100), "Histo publishing frequency in TS");
options.add_options()("PubTimeMin", bpo::value<double_t>()->default_value(1.0),
"Minimal time between two publishing");
options.add_options()("PubTimeMax", bpo::value<double_t>()->default_value(10.0),
"Maximal time between two publishing");
options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("tofcomponent"),
"MQ channel name for TS data");
options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
"MQ channel name for histos");
options.add_options()("ChNameHistCfg", bpo::value<std::string>()->default_value("histo-conf"),
"MQ channel name for histos config");
options.add_options()("ChNameCanvCfg", bpo::value<std::string>()->default_value("canvas-conf"),
"MQ channel name for canvases config");
}
FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceMonitorTof(); }