CbmRoot
runUnpackTofMcbm2018.cxx
Go to the documentation of this file.
2 #include "runFairMQDevice.h"
3 
4 #include <iomanip>
5 #include <string>
6 
7 namespace bpo = boost::program_options;
8 using namespace std;
9 
10 void addCustomOptions(bpo::options_description& options) {
11  options.add_options()("ReqMode",
12  bpo::value<uint64_t>()->default_value(0),
13  "Time intervall selector");
14  options.add_options()("SelectComponents",
15  bpo::value<uint64_t>()->default_value(1),
16  "Select components for transport");
17  options.add_options()("ReqTint",
18  bpo::value<uint64_t>()->default_value(100),
19  "Time intervall length in ns");
20  options.add_options()("PulserMode",
21  bpo::value<int64_t>()->default_value(0),
22  "Choose pulser configuration");
23  options.add_options()("PulMulMin",
24  bpo::value<uint64_t>()->default_value(0),
25  "Min number of pulsed detectors");
26  options.add_options()("PulTotMin",
27  bpo::value<uint64_t>()->default_value(0),
28  "Min pulser TimeOverThreshold");
29  options.add_options()("TShiftRef",
30  bpo::value<double_t>()->default_value(0.),
31  "Time shift of reference counter to match digis");
32  options.add_options()("MaxAsicInactive",
33  bpo::value<uint64_t>()->default_value(0),
34  "Max number of disabled ASICs");
35 
36  int iNDet = 36;
37  for (int i = 0; i < iNDet; i++)
38  options.add_options()(Form("ReqDet%d", i),
39  bpo::value<uint64_t>()->default_value(0),
40  Form("ReqDet%d", i));
41 }
42 
43 FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) {
44  return new CbmDeviceUnpackTofMcbm2018();
45 }
CbmDeviceUnpackTofMcbm2018.h
getDevice
FairMQDevicePtr getDevice(const FairMQProgOptions &)
Definition: runUnpackTofMcbm2018.cxx:43
CbmDeviceUnpackTofMcbm2018
Definition: CbmDeviceUnpackTofMcbm2018.h:38
i
int i
Definition: L1/vectors/P4_F32vec4.h:25
addCustomOptions
void addCustomOptions(bpo::options_description &options)
Definition: runUnpackTofMcbm2018.cxx:10