CbmRoot
Loading...
Searching...
No Matches
runBuildRawEvents.cxx
Go to the documentation of this file.
1/* Copyright (C) 2021 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Dominik Smith [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()("FillHistos", bpo::value<bool>()->default_value(true),
18 "Fill histograms and send them to histo server if true");
19 options.add_options()("IgnTsOver", bpo::value<bool>()->default_value(false), "Ignore TS overlap if true");
20 options.add_options()("EvtOverMode", bpo::value<std::string>()->default_value("NoOverlap"),
21 "Set the event overlap mode, use string matching an EOverlapMode ");
22 options.add_options()("RefDet", bpo::value<std::string>()->default_value("kBmon"),
23 "Set the reference (seed) detector, use string matching an ECbmModuleId ");
24 options.add_options()("AddDet", bpo::value<std::vector<std::string>>()->multitoken()->composing(),
25 "Add a detector for digis selection, use string matching an ECbmModuleId ");
26 options.add_options()("DelDet", bpo::value<std::vector<std::string>>()->multitoken()->composing(),
27 "Remove a detector for digis selection, use string matching an "
28 "ECbmModuleId ");
29 options.add_options()("SetTrigWin", bpo::value<std::vector<std::string>>()->multitoken()->composing(),
30 "Set trigger window for selected detector, use string matching "
31 "ECbmModuleId,dWinBeg,dWinEnd e.g. kSts,-10.5,100.0");
32 options.add_options()("SetTrigMinNb", bpo::value<std::vector<std::string>>()->multitoken()->composing(),
33 "Set minimum number of digis for selected detector, use string matching "
34 "ECbmModuleId,uMinNb e.g. kTof,10");
35 options.add_options()("TsNameIn", bpo::value<std::string>()->default_value("unpts_0"),
36 "MQ channel name for unpacked TS data");
37 options.add_options()("EvtNameOut", bpo::value<std::string>()->default_value("events"),
38 "MQ channel name for built events");
39 options.add_options()("ChNameIn", bpo::value<std::string>()->default_value("histogram-in"),
40 "MQ channel name for histos");
41 options.add_options()("ChNameHistCfg", bpo::value<std::string>()->default_value("histo-conf"),
42 "MQ channel name for histos config");
43 options.add_options()("ChNameCanvCfg", bpo::value<std::string>()->default_value("canvas-conf"),
44 "MQ channel name for canvases config");
45 options.add_options()("PubFreqTs", bpo::value<uint32_t>()->default_value(100), "Histo publishing frequency in TS");
46 options.add_options()("PubTimeMin", bpo::value<double_t>()->default_value(1.0),
47 "Minimal time between two publishing");
48 options.add_options()("PubTimeMax", bpo::value<double_t>()->default_value(10.0),
49 "Maximal time between two publishing");
50}
51
52FairMQDevicePtr getDevice(const FairMQProgOptions& /*config*/) { return new CbmDeviceBuildRawEvents(); }
Hash for CbmL1LinkKey.
FairMQDevicePtr getDevice(const FairMQProgOptions &)
void addCustomOptions(bpo::options_description &options)