CbmRoot
Loading...
Searching...
No Matches
runUnpackTofMcbm2018.cxx
Go to the documentation of this file.
1/* Copyright (C) 2018-2020 PI-UHd, GSI
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Norbert Herrmann [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()("ReqMode", bpo::value<uint64_t>()->default_value(0), "Time intervall selector");
18 options.add_options()("SelectComponents", bpo::value<uint64_t>()->default_value(1),
19 "Select components for transport");
20 options.add_options()("ReqTint", bpo::value<uint64_t>()->default_value(100), "Time intervall length in ns");
21 options.add_options()("ReqBeam", bpo::value<uint64_t>()->default_value(-1), "Mandatory beam counter in event");
22 options.add_options()("PulserMode", bpo::value<int64_t>()->default_value(0), "Choose pulser configuration");
23 options.add_options()("PulMulMin", bpo::value<uint64_t>()->default_value(0), "Min number of pulsed detectors");
24 options.add_options()("PulTotMin", bpo::value<uint64_t>()->default_value(0), "Min pulser TimeOverThreshold");
25 options.add_options()("PulTotMax", bpo::value<uint64_t>()->default_value(1000), "Max pulser TimeOverThreshold");
26 options.add_options()("ToffTof", bpo::value<double_t>()->default_value(0.),
27 "Time offset of Tof digis with respect to Bmon");
28 options.add_options()("RefModType", bpo::value<int64_t>()->default_value(5), "Module type of reference counter");
29 options.add_options()("RefModId", bpo::value<int64_t>()->default_value(0), "Module Id of reference counter");
30 options.add_options()("RefCtrType", bpo::value<int64_t>()->default_value(4), "Counter type of reference counter");
31 options.add_options()("RefCtrId", bpo::value<int64_t>()->default_value(0), "Counter Id of reference counter");
32 options.add_options()("MaxAsicInactive", bpo::value<uint64_t>()->default_value(0), "Max number of disabled ASICs");
33
34 int iNDet = 36;
35 for (int i = 0; i < iNDet; i++)
36 options.add_options()(Form("ReqDet%d", i), bpo::value<uint64_t>()->default_value(0), Form("ReqDet%d", i));
37}
38
39FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceUnpackTofMcbm2018(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)