CbmRoot
Loading...
Searching...
No Matches
runHitBuilderTof.cxx
Go to the documentation of this file.
1/* Copyright (C) 2018-2019 PI-UHd/GSI, Heidelberg/Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Norbert Herrmann [committer] */
4
6
7#include "runFairMQDevice.h"
8
9namespace bpo = boost::program_options;
10
11void addCustomOptions(bpo::options_description& options)
12{
13 options.add_options()("OutRootFile", bpo::value<std::string>()->default_value(""), "Root output file name");
14 options.add_options()("MaxEvent", bpo::value<int64_t>()->default_value(-1), "Nr of Event for ROOT file");
15 options.add_options()("RunId", bpo::value<int64_t>()->default_value(11), "Run identifier for ROOT geometry file");
16 options.add_options()("Mode", bpo::value<int64_t>()->default_value(0), "Choose device operation mode");
17 options.add_options()("PulserMode", bpo::value<int64_t>()->default_value(0), "Choose pulser configuration");
18 options.add_options()("PulMulMin", bpo::value<uint64_t>()->default_value(0), "Min number of pulsed detectors");
19 options.add_options()("PulDetRef", bpo::value<uint64_t>()->default_value(0), "Pulser Reference Detector");
20 options.add_options()("PulTotMin", bpo::value<uint64_t>()->default_value(0), "Min Tot value");
21 options.add_options()("PulTotMax", bpo::value<uint64_t>()->default_value(0), "Max Tot value");
22
23 options.add_options()("ReqTint", bpo::value<uint64_t>()->default_value(50), "Coincidence time interval");
24
25 options.add_options()("DutType", bpo::value<uint64_t>()->default_value(0), "Dut type identifier");
26 options.add_options()("DutSm", bpo::value<uint64_t>()->default_value(0), "Dut module number");
27 options.add_options()("DutRpc", bpo::value<uint64_t>()->default_value(1), "Dut counter number");
28
29 options.add_options()("SelType", bpo::value<uint64_t>()->default_value(0), "Sel type identifier");
30 options.add_options()("SelSm", bpo::value<uint64_t>()->default_value(1), "Sel module number");
31 options.add_options()("SelRpc", bpo::value<uint64_t>()->default_value(1), "Sel counter number");
32
33 options.add_options()("Sel2Type", bpo::value<uint64_t>()->default_value(0), "Sel2 type identifier");
34 options.add_options()("Sel2Sm", bpo::value<uint64_t>()->default_value(2), "Sel2 module number");
35 options.add_options()("Sel2Rpc", bpo::value<uint64_t>()->default_value(1), "Sel2 counter number");
36
37 options.add_options()("BRefType", bpo::value<uint64_t>()->default_value(0), "Beam Reference type identifier");
38 options.add_options()("BRefSm", bpo::value<uint64_t>()->default_value(3), "Beam Reference module number");
39 options.add_options()("BRefDet", bpo::value<uint64_t>()->default_value(1), "Beam Reference counter number");
40
41 options.add_options()("CalMode", bpo::value<uint64_t>()->default_value(0), "Calibration Mode");
42 options.add_options()("CalSel", bpo::value<uint64_t>()->default_value(0), "Calibration Selector");
43 options.add_options()("CaldXdYMax", bpo::value<double_t>()->default_value(30.), "Matching Window");
44 options.add_options()("CalCluMulMax", bpo::value<uint64_t>()->default_value(3), "Max Counter Multiplicity");
45 options.add_options()("CalRefSel", bpo::value<uint64_t>()->default_value(0), "Reference Selector");
46 options.add_options()("CalTotMax", bpo::value<double_t>()->default_value(20.), "Time Over Threhold Maximum");
47 options.add_options()("CalTotMean", bpo::value<double_t>()->default_value(5.), "Time Over Threhold Mean");
48 options.add_options()("MaxTimeDist", bpo::value<double_t>()->default_value(1.), "Cluster range in ns");
49 options.add_options()("DelTofMax", bpo::value<double_t>()->default_value(60.),
50 "acceptance range for cluster distance");
51 options.add_options()("Sel2MulMax", bpo::value<double_t>()->default_value(3.), "Limit of 2nd selector multiplicity");
52 options.add_options()("ChannelDeadtime", bpo::value<double_t>()->default_value(50.), "channel deadtime in ns");
53 options.add_options()("CalYFitMin", bpo::value<double_t>()->default_value(1.E4), "Min counts for box fit");
54
55 options.add_options()("OutHstFile", bpo::value<std::string>()->default_value(""), "monitor histogram file name");
56 options.add_options()("OutParFile", bpo::value<std::string>()->default_value(""), "parameter histogram file name");
57}
58
59FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceHitBuilderTof(); }
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)