Project
Loading...
Searching...
No Matches
qconfig.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
15#include <cstdio>
16#include <cstdlib>
17#include <memory.h>
18#include <utility>
19#include <vector>
20#include <algorithm>
21#include <concepts>
22#include <functional>
23#include <iostream>
24#include <limits>
25#include <optional>
26#include <stdexcept>
27#include <tuple>
28#define QCONFIG_INTERNAL
29#include "qconfig.h"
30#undef QCONFIG_INTERNAL
31#include "qconfig_helpers.h"
32#include "qconfig_rtti.h"
34
35// Create config instances
36#define QCONFIG_PARSER_CXX
37#define QCONFIG_INSTANCE
38#include "qconfig_internal.h"
39#undef QCONFIG_INSTANCE
40
41namespace qConfig
42{
43
44static inline const char* getOptName(const char** argv, int32_t i)
45{
46 while (i > 1 && argv[i][0] != '-') {
47 i--;
48 }
49 return (argv[i]);
50}
51
52template <typename T>
53static int32_t qAddOptionType(qConfigSettings<T>& settings, T& ref, int32_t& i, const char** argv, const int argc, T def);
54template <typename T>
55static void qAddOptionMessage(qConfigSettings<T>& settings, T& ref);
56template <typename T>
57static int32_t qAddOptionMinMax(qConfigSettings<T>& settings, T& ref, const char* arg);
58
59template <typename T>
61 static inline int32_t qAddOptionMain(qConfigSettings<T>& settings, T& ref, int32_t& i, const char** argv, const int argc, T def);
62};
63template <typename... X>
64struct qConfigTypeSpecialized<std::tuple<X...>> {
65 static inline int32_t qAddOptionMain(qConfigSettings<typename qSettingsType<std::tuple<X...>>::settingsType>& settings, std::tuple<X...>& ref, int32_t& i, const char** argv, const int argc, std::tuple<X...>& def);
66};
67
68// Main processing function for arguments
69template <class T>
71{
72 int32_t retVal = 0;
73 int32_t iOrg = i;
74 if (settings.doSet) {
75 ref = settings.set;
76 } else if ((retVal = qAddOptionType<T>(settings, ref, i, argv, argc, def))) {
77 return (retVal);
78 }
79 if ((retVal = qAddOptionMinMax<T>(settings, ref, iOrg < argc ? argv[iOrg] : ""))) {
80 return (retVal);
81 }
82 qAddOptionMessage<T>(settings, ref);
83 return (0);
84}
85template <typename T>
86static inline int32_t qAddOptionMainTupleElem(qConfigSettings<typename qSettingsType<T>::settingsType> settingsTup, T& ref, int32_t& i, const char** argv, const int argc)
87{
88 T def = T();
89 qConfigSettings<T> settings = settingsTup;
90 return (qAddOptionType<T>(settings, ref, i, argv, argc, def));
91}
92template <typename T, int32_t index = 0, int32_t left = std::tuple_size_v<T>>
94 static inline int32_t qAddOptionMainTuple(qConfigSettings<typename qSettingsType<T>::settingsType> settings, T& tup, int32_t& i, const char** argv, const int argc)
95 {
96 auto& ref = std::get<index>(tup);
97 int32_t retVal = qAddOptionMainTupleElem(settings, ref, i, argv, argc);
98 if (retVal) {
99 if (retVal == qcrArgMissing && index != 0) {
100 printf("Invalid number of arguments for option %s\n", getOptName(argv, i));
102 }
103 return (retVal);
104 }
106 }
107};
108template <typename T, int32_t index>
110 static inline int32_t qAddOptionMainTuple(qConfigSettings<typename qSettingsType<T>::settingsType> /*settings*/, T& /*tup*/, int32_t& /*i*/, const char** /*argv*/, const int32_t /*argc*/) { return 0; }
111};
112template <typename... X>
113inline int32_t qConfigTypeSpecialized<std::tuple<X...>>::qAddOptionMain(qConfigSettings<typename qSettingsType<std::tuple<X...>>::settingsType>& settings, std::tuple<X...>& ref, int32_t& i, const char** argv, const int argc, std::tuple<X...>& /*def*/)
114{
115 return (qAddOptionMainTupleStruct<std::tuple<X...>>::qAddOptionMainTuple(settings, ref, i, argv, argc));
116}
117
118template <typename T>
121
122 template <typename... Args>
123 static inline int32_t qAddOption(T& ref, int32_t& i, const char** argv, const int argc, T def, const char* /*help*/, Args&&... args)
124 {
125 auto settings = qConfigGetSettings(args...);
127 }
128
129 template <typename... Args>
130 static inline int32_t qAddOptionVec(std::vector<T>& ref, int32_t& i, const char** argv, const int argc, const char* /*help*/, Args&&... args)
131 {
132 auto settings = qConfigGetSettings(args...);
133 int32_t iFirst = i, iLast;
134 do {
135 iLast = i;
136 T tmp = T(), def = T();
137 settings.allowEmpty = (i != iFirst);
139 if (retVal) {
140 return (retVal != qcrArgMissing || i == iFirst ? retVal : 0);
141 }
142 if (i == iFirst || i != iLast) {
143 ref.push_back(tmp);
144 }
145 } while (i != iLast);
146 return (0);
147 }
148
149 template <typename... Args>
150 static inline int32_t qAddOptionArray(T* ref, int32_t count, int32_t& i, const char** argv, const int argc, const char* /*help*/, Args&&... args)
151 {
152 auto settings = qConfigGetSettings(args...);
153 int32_t iFirst = i, iLast;
154 do {
155 iLast = i;
156 T tmp = T(), def = T();
157 settings.allowEmpty = (i != iFirst);
159 if (retVal) {
160 return (retVal != qcrArgMissing || i == iFirst ? retVal : 0);
161 }
162 if (i - iFirst >= count) {
163 printf("Too many values provided for option %s\n", getOptName(argv, i));
164 return (qcrArrayOverflow);
165 }
166 if (i == iFirst || i != iLast) {
167 ref[i - iFirst] = tmp;
168 }
169 } while (i != iLast);
170 return (0);
171 }
172
173 template <typename... Args>
174 static inline void qConfigHelpOption(const char* name, const char* type, const char* def, const char* optname, char optnameshort, const char* preopt, char preoptshort, int32_t optionType, const char* help, Args&&... args)
175 {
176 auto settings = qConfigGetSettings(args...);
177 const bool boolType = optionType != 1 && std::is_same_v<T, bool>;
178 const char* arguments = settings.doSet ? " (" : ((settings.doDefault || optionType == 1 || boolType) ? " [arg] (" : (optionType == 2 ? " [...] (" : " arg ("));
179 char argBuffer[4] = {0};
180 uint32_t argBufferPos = 0;
181 if (optnameshort && preoptshort) {
182 argBuffer[argBufferPos++] = '-';
183 }
184 if (optnameshort) {
185 argBuffer[argBufferPos++] = preoptshort == 0 ? '-' : preoptshort;
186 argBuffer[argBufferPos++] = optnameshort;
187 }
188 std::cout << "\t" << name << ": " << argBuffer << (optnameshort == 0 ? "" : arguments) << "--";
189 if (optname[0] == 0) {
190 std::cout << preopt << name;
191 } else {
192 std::cout << optname;
193 }
194 std::cout << (optnameshort == 0 ? arguments : ", ") << "type: " << type;
195 if (optionType == 0) {
196 std::cout << ", default: " << def;
197 }
198 if (optionType == 1) {
199 std::cout << ", sets " << name << " to " << def;
200 }
201 if (settings.checkMin) {
202 std::cout << ", minimum: " << settings.min;
203 }
204 if (settings.checkMax) {
205 std::cout << ", maximum: " << settings.max;
206 }
207 std::cout << ")\n\t\t" << help << ".\n";
208 if (settings.doSet) {
209 std::cout << "\t\tSets " << name << " to " << settings.set << ".\n";
210 } else if (settings.doDefault) {
211 std::cout << "\t\tIf no argument is supplied, " << name << " is set to " << settings.set << ".\n";
212 } else if (boolType) {
213 std::cout << "\t\tIf no argument is supplied, " << name << " is set to true.\n";
214 }
215 if (optionType == 2) {
216 std::cout << "\t\tCan be set multiple times, accepts multiple arguments.\n";
217 }
218 std::cout << "\n";
219 }
220};
221
222static inline const char* getArg(int32_t& i, const char** argv, const int argc, bool allowOption = false)
223{
224 if (i + 1 < argc && argv[i + 1][0] && ((allowOption && argv[i + 1][0] == '-' && argv[i + 1][1] != '-') || argv[i + 1][0] != '-')) {
225 return (argv[++i]);
226 }
227 return (nullptr);
228}
229
230template <class T>
231static inline int32_t qAddOptionGeneric(qConfigSettings<T>& settings, T& ref, int32_t& i, const char** argv, const int argc, T def, std::function<T(const char*)> func, bool allowDefault = false)
232{
233 const char* arg = getArg(i, argv, argc, !allowDefault);
234 if (arg) {
235 ref = func(arg);
236 return (0);
237 } else if (allowDefault) {
238 ref = def;
239 return (0);
240 }
241 if (!settings.allowEmpty) {
242 printf("Argument missing for option %s!\n", getOptName(argv, i));
243 }
244 return (qcrArgMissing);
245}
246
247// Handling of all supported types
248template <>
249inline int32_t qAddOptionType<bool>(qConfigSettings<bool>& settings, bool& ref, int32_t& i, const char** argv, const int argc, bool /*def*/)
250{
251 return qAddOptionGeneric<bool>(
252 settings, ref, i, argv, argc, settings.doDefault ? settings.set : true, [](const char* a) -> bool {
253 return atoi(a);
254 },
255 true);
256}
257template <>
258inline int32_t qAddOptionType<int8_t>(qConfigSettings<int8_t>& settings, int8_t& ref, int32_t& i, const char** argv, const int argc, int8_t /*def*/)
259{
260 return qAddOptionGeneric<int8_t>(
261 settings, ref, i, argv, argc, settings.set, [](const char* a) -> int8_t {
262 return atoi(a);
263 },
264 settings.doDefault);
265}
266template <>
267inline int32_t qAddOptionType<uint8_t>(qConfigSettings<uint8_t>& settings, uint8_t& ref, int32_t& i, const char** argv, const int argc, uint8_t /*def*/)
268{
269 return qAddOptionGeneric<uint8_t>(
270 settings, ref, i, argv, argc, settings.set, [](const char* a) -> uint8_t {
271 return atoi(a);
272 },
273 settings.doDefault);
274}
275template <>
276inline int32_t qAddOptionType<int32_t>(qConfigSettings<int32_t>& settings, int32_t& ref, int32_t& i, const char** argv, const int argc, int32_t /*def*/)
277{
278 return qAddOptionGeneric<int32_t>(
279 settings, ref, i, argv, argc, settings.set, [](const char* a) -> int32_t {
280 return atoi(a);
281 },
282 settings.doDefault);
283}
284template <>
285inline int32_t qAddOptionType<uint32_t>(qConfigSettings<uint32_t>& settings, uint32_t& ref, int32_t& i, const char** argv, const int argc, uint32_t /*def*/)
286{
287 return qAddOptionGeneric<uint32_t>(
288 settings, ref, i, argv, argc, settings.set, [](const char* a) -> uint32_t {
289 return strtoul(a, nullptr, 0);
290 },
291 settings.doDefault);
292}
293template <>
294inline int32_t qAddOptionType<int16_t>(qConfigSettings<int16_t>& settings, int16_t& ref, int32_t& i, const char** argv, const int argc, int16_t /*def*/)
295{
296 return qAddOptionGeneric<int16_t>(
297 settings, ref, i, argv, argc, settings.set, [](const char* a) -> int16_t {
298 return atoi(a);
299 },
300 settings.doDefault);
301}
302template <>
303inline int32_t qAddOptionType<uint16_t>(qConfigSettings<uint16_t>& settings, uint16_t& ref, int32_t& i, const char** argv, const int argc, uint16_t /*def*/)
304{
305 return qAddOptionGeneric<uint16_t>(
306 settings, ref, i, argv, argc, settings.set, [](const char* a) -> uint16_t {
307 return strtoul(a, nullptr, 0);
308 },
309 settings.doDefault);
310}
311template <>
312inline int32_t qAddOptionType<int64_t>(qConfigSettings<int64_t>& settings, int64_t& ref, int32_t& i, const char** argv, const int argc, int64_t /*def*/)
313{
314 return qAddOptionGeneric<int64_t>(
315 settings, ref, i, argv, argc, settings.set, [](const char* a) -> int64_t {
316 return strtoll(a, nullptr, 0);
317 },
318 settings.doDefault);
319}
320template <>
321inline int32_t qAddOptionType<uint64_t>(qConfigSettings<uint64_t>& settings, uint64_t& ref, int32_t& i, const char** argv, const int argc, uint64_t /*def*/)
322{
323 return qAddOptionGeneric<uint64_t>(
324 settings, ref, i, argv, argc, settings.set, [](const char* a) -> uint64_t {
325 return strtoull(a, nullptr, 0);
326 },
327 settings.doDefault);
328}
329template <>
330inline int32_t qAddOptionType<float>(qConfigSettings<float>& settings, float& ref, int32_t& i, const char** argv, const int argc, float /*def*/)
331{
332 return qAddOptionGeneric<float>(
333 settings, ref, i, argv, argc, settings.set, [](const char* a) -> float {
334 return (float)atof(a);
335 },
336 settings.doDefault);
337}
338template <>
339inline int32_t qAddOptionType<double>(qConfigSettings<double>& settings, double& ref, int32_t& i, const char** argv, const int argc, double /*def*/)
340{
341 return qAddOptionGeneric<double>(
342 settings, ref, i, argv, argc, settings.set, [](const char* a) -> double {
343 return atof(a);
344 },
345 settings.doDefault);
346}
347template <>
348inline int32_t qAddOptionType<const char*>(qConfigSettings<const char*>& settings, const char*& ref, int32_t& i, const char** argv, const int argc, const char* /*def*/)
349{
350 return qAddOptionGeneric<const char*>(
351 settings, ref, i, argv, argc, settings.set, [](const char* a) -> const char* {
352 return a;
353 },
354 settings.doDefault);
355}
356template <>
357inline int32_t qAddOptionType<std::string>(qConfigSettings<std::string>& settings, std::string& ref, int32_t& i, const char** argv, const int argc, std::string /*def*/)
358{
359 return qAddOptionGeneric<std::string>(
360 settings, ref, i, argv, argc, settings.set, [](const char* a) -> std::string {
361 return a;
362 },
363 settings.doDefault);
364}
365
366// Checks and messages for additional settings
367template <typename T>
368static inline int32_t qAddOptionMinMax(qConfigSettings<T>& settings, T& ref, const char* arg)
369{
370 if (settings.checkMin && ref < settings.min) {
371 std::cout << "Invalid setting for " << arg << ": minimum threshold exceeded (" << ref << " < " << settings.min << ")!\n";
372 return (qcrMinFailure);
373 }
374 if (settings.checkMax && ref > settings.max) {
375 std::cout << "Invalid setting for " << arg << ": maximum threshold exceeded (" << ref << " > " << settings.max << ")!\n";
376 return (qcrMaxFailure);
377 }
378 return (0);
379}
380template <>
381inline int32_t qAddOptionMinMax<bool>(qConfigSettings<bool>& /*settings*/, bool& /*ref*/, const char* /*arg*/)
382{
383 return (0);
384}
385
386template <typename T>
387inline void qAddOptionMessage(qConfigSettings<T>& settings, T& ref)
388{
389 if (settings.message) {
390 std::string tmp = print_type(ref);
391 std::string msg = std::string(settings.message) + "\n";
392 printf(msg.c_str(), tmp.c_str());
393 }
394}
395
396static inline void qConfigHelp(const char* subConfig = nullptr, int32_t followSub = 0)
397{
398 if (followSub < 2) {
399 printf("Usage Info:");
400 }
401#define QCONFIG_HELP
402#include "qconfig_internal.h"
403#undef QCONFIG_HELP
404 if (followSub < 2) {
405 printf("\n");
406 }
407}
408
409// Create parser for configuration
410int32_t qConfigParse(int argc, const char** argv, const char* /*filename*/)
411{
412 for (int32_t i = 1; i < argc; i++) {
413 const char* thisoption = argv[i];
414 repeat:
415 bool found = false;
416#define QCONFIG_PARSE
417#include "qconfig_internal.h"
418#undef QCONFIG_PARSE
419 if (found == false) {
420 printf("Invalid argument: %s\n", argv[i]);
421 return (1);
422 goto repeat; // Suppress GCC warnings, this is never executed, label might be accessed from qconfig.h
423 }
424 }
425 return (0);
426}
427
428#include "qconfig_print.inc"
429
431{
432 for (auto& f : qprint_global) {
433 f();
434 }
435}
436namespace internal
437{
438#include "qconfig_genrtti.inc"
439} // namespace internal
440
441std::tuple<std::vector<qConfigRTTIentry>, std::vector<std::string>> qConfigGenRTTI(const std::vector<std::string>* configStructs) { return internal::qConfigGenRTTI(configStructs); }
442} // end namespace qConfig
unsigned short int uint16_t
int32_t i
int32_t retVal
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h internal
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder int32_t
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder Print launch bounds used for RTC code as debugging for exit after def(1)) AddOption(allowOptimizedSlaveReconstruction
configStandalone Reconstruction settings
GLenum func
Definition glcorearb.h:778
GLint GLsizei count
Definition glcorearb.h:399
GLuint const GLchar * name
Definition glcorearb.h:781
GLdouble f
Definition glcorearb.h:310
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233
GLint ref
Definition glcorearb.h:291
bpo::variables_map arguments
int32_t qAddOptionType< float >(qConfigSettings< float > &settings, float &ref, int32_t &i, const char **argv, const int argc, float)
Definition qconfig.cxx:330
int32_t qAddOptionType< int8_t >(qConfigSettings< int8_t > &settings, int8_t &ref, int32_t &i, const char **argv, const int argc, int8_t)
Definition qconfig.cxx:258
void qConfigPrint()
Definition qconfig.cxx:430
int32_t qAddOptionType< uint32_t >(qConfigSettings< uint32_t > &settings, uint32_t &ref, int32_t &i, const char **argv, const int argc, uint32_t)
Definition qconfig.cxx:285
int32_t qAddOptionType< std::string >(qConfigSettings< std::string > &settings, std::string &ref, int32_t &i, const char **argv, const int argc, std::string)
Definition qconfig.cxx:357
int32_t qAddOptionType< int64_t >(qConfigSettings< int64_t > &settings, int64_t &ref, int32_t &i, const char **argv, const int argc, int64_t)
Definition qconfig.cxx:312
int32_t qAddOptionType< uint16_t >(qConfigSettings< uint16_t > &settings, uint16_t &ref, int32_t &i, const char **argv, const int argc, uint16_t)
Definition qconfig.cxx:303
int32_t qAddOptionType< int16_t >(qConfigSettings< int16_t > &settings, int16_t &ref, int32_t &i, const char **argv, const int argc, int16_t)
Definition qconfig.cxx:294
int32_t qAddOptionType< uint8_t >(qConfigSettings< uint8_t > &settings, uint8_t &ref, int32_t &i, const char **argv, const int argc, uint8_t)
Definition qconfig.cxx:267
int32_t qAddOptionType< uint64_t >(qConfigSettings< uint64_t > &settings, uint64_t &ref, int32_t &i, const char **argv, const int argc, uint64_t)
Definition qconfig.cxx:321
int32_t qAddOptionType< bool >(qConfigSettings< bool > &settings, bool &ref, int32_t &i, const char **argv, const int argc, bool)
Definition qconfig.cxx:249
int32_t qAddOptionType< double >(qConfigSettings< double > &settings, double &ref, int32_t &i, const char **argv, const int argc, double)
Definition qconfig.cxx:339
int32_t qAddOptionType< const char * >(qConfigSettings< const char * > &settings, const char *&ref, int32_t &i, const char **argv, const int argc, const char *)
Definition qconfig.cxx:348
int32_t qConfigParse(int argc, const char **argv, const char *)
Definition qconfig.cxx:410
int32_t qAddOptionType< int32_t >(qConfigSettings< int32_t > &settings, int32_t &ref, int32_t &i, const char **argv, const int argc, int32_t)
Definition qconfig.cxx:276
std::string print_type(T val, bool precise=false)
int32_t qAddOptionMinMax< bool >(qConfigSettings< bool > &, bool &, const char *)
Definition qconfig.cxx:381
std::tuple< std::vector< qConfigRTTIentry >, std::vector< std::string > > qConfigGenRTTI(const std::vector< std::string > *configStructs)
Definition qconfig.cxx:441
static int32_t qAddOptionMainTuple(qConfigSettings< typename qSettingsType< T >::settingsType >, T &, int32_t &, const char **, const int32_t)
Definition qconfig.cxx:110
static int32_t qAddOptionMainTuple(qConfigSettings< typename qSettingsType< T >::settingsType > settings, T &tup, int32_t &i, const char **argv, const int argc)
Definition qconfig.cxx:94
static auto qConfigGetSettings(Args &... args)
static int32_t qAddOptionMain(qConfigSettings< T > &settings, T &ref, int32_t &i, const char **argv, const int argc, T def)
Definition qconfig.cxx:70
static int32_t qAddOption(T &ref, int32_t &i, const char **argv, const int argc, T def, const char *, Args &&... args)
Definition qconfig.cxx:123
static int32_t qAddOptionArray(T *ref, int32_t count, int32_t &i, const char **argv, const int argc, const char *, Args &&... args)
Definition qconfig.cxx:150
static int32_t qAddOptionVec(std::vector< T > &ref, int32_t &i, const char **argv, const int argc, const char *, Args &&... args)
Definition qconfig.cxx:130
static void qConfigHelpOption(const char *name, const char *type, const char *def, const char *optname, char optnameshort, const char *preopt, char preoptshort, int32_t optionType, const char *help, Args &&... args)
Definition qconfig.cxx:174
uint64_t const void const *restrict const msg
Definition x9.h:153