Project
Loading...
Searching...
No Matches
GPUDisplayConsole.cxx
Go to the documentation of this file.
1// Copyright 2019-2026 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 "GPUDisplayConsole.h"
16#include "GPULogging.h"
17#include <algorithm>
18#include <charconv>
19#include <stdexcept>
20#include <cstdarg>
21#include <cstdio>
22#include <cstring>
23#include <fstream>
24#include <sstream>
25
26using namespace o2::gpu;
27
28namespace
29{
30struct consoleArgumentError : public std::runtime_error { // Wrong arguments for an existing command, what(): the error, usage: the argument types
31 consoleArgumentError(const std::string& cmd, const std::string& error, const std::string& types) : std::runtime_error(error), command(cmd), usage("[")
32 {
33 static constexpr std::pair<char, const char*> names[] = {{'s', "string"}, {'i', "int"}, {'d', "double"}, {'a', "any"}, {'+', "[optional]"}};
34 for (char t : types) {
35 if (const auto* n = std::find_if(std::begin(names), std::end(names), [t](const auto& entry) { return entry.first == t; }); n != std::end(names)) {
36 usage += (usage.size() > 1 ? " " : "") + std::string(n->second);
37 }
38 }
39 usage += "]";
40 }
41 std::string command, usage;
42};
43} // namespace
44
45GPUDisplayConsole::GPUDisplayConsole(const std::string& title) : mConsoleHistory{title} {}
46
47void GPUDisplayConsole::scroll(int32_t lines)
48{
49 const int64_t maxScroll = std::max<int64_t>(0, (int64_t)mConsoleHistory.size() - mVisibleLines);
50 mScroll = std::clamp<int64_t>((int64_t)mScroll + lines, 0, maxScroll);
51}
52
54{
55 if (key == KEY_PAGEUP || key == KEY_PAGEDOWN || (shift && (key == KEY_UP || key == KEY_DOWN))) { // Half a page / one line
56 const int32_t lines = key == KEY_PAGEUP || key == KEY_PAGEDOWN ? std::max<int32_t>(1, mVisibleLines / 2) : 1;
57 scroll(key == KEY_PAGEUP || key == KEY_UP ? lines : -lines);
58 return;
59 }
60 const uint32_t nHistory = mConsoleHistory.size();
61 auto isOutput = [this](uint32_t i) { return mConsoleHistory[i].size() && mConsoleHistory[i][0] == ' '; }; // Indented output of commands, not selectable
62 if (key == KEY_UP || key == KEY_DOWN) { // Entry 0 is the title, not selectable
63 if (key == KEY_UP) {
65 while (--i >= 1 && isOutput(i)) {
66 }
68 } else if (mConsoleTextCurrent) {
70 while (++i < nHistory && isOutput(i)) {
71 }
72 mConsoleTextCurrent = i < nHistory ? i : 0;
73 }
74 mConsoleTextPos = shownText().size(); // At the end, as when editing the entry starts
75 return;
76 } else if (key == KEY_ENTER) {
78 command.erase(0, std::min(command.size(), command.find_first_not_of(' '))); // Leading spaces would mark it as output in the history
79 mConsoleText.clear();
81 if (!command.empty()) {
82 consoleAppend(command); // Before its output
83 handleConsoleCommand(command);
84 }
85 return;
86 } else if (key != KEY_LEFT && key != KEY_RIGHT && key != KEY_BACKSPACE && key != KEY_DELETE && (key < 32 || key >= 127)) { // Other special keys are ignored
87 return;
88 }
89 if (mConsoleTextCurrent) { // Edit a copy of the history entry, with the cursor at its end (left: on its last character), delete then removes nothing
92 mConsoleTextPos = mConsoleText.size() - (key == KEY_LEFT && mConsoleText.size());
93 if (key == KEY_LEFT || key == KEY_RIGHT) {
94 return;
95 }
96 }
97 mConsoleTextPos = std::min<uint32_t>(mConsoleTextPos, mConsoleText.size());
98 if (key == KEY_LEFT) {
100 } else if (key == KEY_RIGHT) {
102 } else if (key == KEY_BACKSPACE) {
103 if (mConsoleTextPos > 0) {
104 mConsoleText.erase(--mConsoleTextPos, 1);
105 }
106 } else if (key == KEY_DELETE) {
107 if (mConsoleTextPos < mConsoleText.size()) {
109 }
110 } else {
111 mConsoleText.insert(mConsoleTextPos++, 1, (char)key);
112 }
113}
114
116{
117 va_list args, argsCopy;
118 va_start(args, format);
119 va_copy(argsCopy, args);
120 std::string buffer(std::max(0, vsnprintf(nullptr, 0, format, args)), '\0');
121 va_end(args);
122 vsnprintf(buffer.data(), buffer.size() + 1, format, argsCopy);
123 va_end(argsCopy);
124 consoleAppend(" " + buffer); // Indented: output, not a command, skipped by up / down
125 if (mPrintToTerminal) {
126 GPUInfo("%s", buffer.c_str());
127 }
128}
129
130void GPUDisplayConsole::consoleInfo(const char* format, const char* text)
131{
132 const auto now = std::chrono::steady_clock::now();
133 if (!mConsoleInfoLastMessage.empty() && mConsoleInfoLastMessage == format && now - mConsoleInfoLastTime < std::chrono::seconds(2)) {
134 mConsoleHistory.back() = std::string(" ") + text; // Same message again shortly after (animation progress, held keys): update its line
135 } else {
136 consoleAppend(std::string(" ") + text);
137 }
138 mConsoleInfoLastMessage = strcmp(format, "%s") ? format : ""; // A plain "%s" can be any message, never merged
140}
141
143{
144 mConsoleHistory.emplace_back(std::move(line));
146}
147
149{
150 const size_t size = std::max<uint32_t>(historySize, 2);
151 if (mConsoleHistory.size() < 2 * size) {
152 return;
153 }
154 const size_t removed = mConsoleHistory.size() - size;
155 std::move(mConsoleHistory.begin() + 1 + removed, mConsoleHistory.end(), mConsoleHistory.begin() + 1); // Keep the title (entry 0)
156 mConsoleHistory.resize(size);
157 mConsoleTextCurrent = mConsoleTextCurrent > removed ? mConsoleTextCurrent - removed : 0; // Same entry, the end if it was removed
158 mConsoleTextPos = std::min<uint32_t>(mConsoleTextPos, shownText().size());
159 mScroll = mScroll + 1 >= size ? 0 : mScroll; // Counted from the end: same lines, the end if the lowest shown one was removed
160}
161
162// Tokens separated by spaces: text in single / double quotes and characters after a backslash are plain text (the token is a string),
163// otherwise a token is int64_t for [+-]digits, double for other decimal numbers (also with exponent), a string otherwise. Throws std::runtime_error for an unterminated quote / trailing backslash.
164
165std::tuple<const GPUDisplayConsole::GPUDisplayConsoleCommand&, std::vector<GPUDisplayConsole::consoleArg>> GPUDisplayConsole::parseConsoleCommand(std::string_view cmd) const
166{
167 std::vector<std::pair<std::string, bool>> tokens; // Text, plain text (quoted / escaped)
168 std::string token;
169 bool inToken = false, plainText = false, escape = false;
170 char quote = 0;
171 auto finishToken = [&]() {
172 if (inToken) {
173 tokens.emplace_back(std::move(token), plainText);
174 token.clear();
175 inToken = plainText = false;
176 }
177 };
178 for (char c : cmd) {
179 if (escape) {
180 token += c;
181 escape = false;
182 } else if (quote) {
183 if (c == quote) {
184 quote = 0;
185 } else {
186 token += c;
187 }
188 } else if (c == '\\') {
189 escape = inToken = plainText = true;
190 } else if (c == '"' || c == '\'') {
191 quote = c;
192 inToken = plainText = true;
193 } else if (c == ' ') {
194 finishToken();
195 } else {
196 token += c;
197 inToken = true;
198 }
199 }
200 if (quote || escape) {
201 throw std::runtime_error(quote ? "unterminated quote" : "backslash at the end");
202 }
203 finishToken();
204 if (tokens.empty()) {
205 throw std::runtime_error("empty command");
206 }
207
208 const std::string& name = tokens[0].first;
209 const auto it = mConsoleCommands.find(name);
210 if (it == mConsoleCommands.end()) {
211 throw std::runtime_error("unknown command " + name);
212 }
213 const std::string& types = it->second.args;
214 const bool more = types.size() && types.back() == '+';
215 const size_t nFixed = types.size() - more, nArgs = tokens.size() - 1;
216 if (nArgs < nFixed || (!more && nArgs > nFixed)) {
217 throw consoleArgumentError(name, std::to_string(nFixed) + (more ? " or more" : "") + " arguments expected, got " + std::to_string(nArgs), types);
218 }
219 auto autoType = [](const std::string& text, bool plain) -> consoleArg { // int64_t for [+-]digits, double for other decimal numbers (also with exponent, as saveSettings writes them), string otherwise or if plain text
220 const char *begin = text.c_str() + (text[0] == '+' || text[0] == '-'), *end = text.c_str() + text.size();
221 const bool number = !plain && begin < end && ((*begin >= '0' && *begin <= '9') || *begin == '.') && std::all_of(begin, end, [](char c) { return (c >= '0' && c <= '9') || c == '.' || c == 'e' || c == 'E' || c == '+' || c == '-'; });
222 if (!number) {
223 return text;
224 }
225 int64_t intValue = 0;
226 double doubleValue = 0.;
227 if (const auto rInt = std::from_chars(begin, end, intValue); rInt.ec == std::errc() && rInt.ptr == end) {
228 return text[0] == '-' ? -intValue : intValue;
229 } else if (const auto rDouble = std::from_chars(begin, end, doubleValue); rDouble.ec == std::errc() && rDouble.ptr == end) {
230 return text[0] == '-' ? -doubleValue : doubleValue; // Also integers out of the int64_t range
231 }
232 return text;
233 };
234 std::vector<consoleArg> args;
235 for (size_t i = 0; i < nArgs; i++) {
236 const auto& [text, plain] = tokens[i + 1];
237 const char type = i < nFixed ? types[i] : '+';
238 consoleArg value = type == 's' ? consoleArg(text) : autoType(text, plain);
239 if (type == 'i' && !std::holds_alternative<int64_t>(value)) {
240 throw consoleArgumentError(name, "argument " + std::to_string(i + 1) + " (" + text + ") must be an integer", types);
241 } else if (type == 'd') {
242 if (std::holds_alternative<int64_t>(value)) {
243 value = (double)std::get<int64_t>(value);
244 } else if (!std::holds_alternative<double>(value)) {
245 throw consoleArgumentError(name, "argument " + std::to_string(i + 1) + " (" + text + ") must be a number", types);
246 }
247 } else if (type != 's' && type != 'i' && type != 'a' && type != '+') {
248 throw std::runtime_error(name + ": invalid argument types " + types);
249 }
250 args.emplace_back(std::move(value));
251 }
252 return {it->second, std::move(args)};
253}
254
256{
257 if (cmd.find_first_not_of(' ') == std::string_view::npos) { // Empty line
258 return;
259 }
260 const GPUDisplayConsoleCommand* command = nullptr;
261 std::vector<consoleArg> args;
262 try {
263 auto parsed = parseConsoleCommand(cmd);
264 command = &std::get<0>(parsed);
265 args = std::move(std::get<1>(parsed));
266 } catch (const consoleArgumentError& e) {
267 consolePrint("Invalid arguments for %s: %s %s", e.command.c_str(), e.what(), e.usage.c_str());
268 return;
269 } catch (const std::runtime_error& e) {
270 consolePrint("Invalid command: %s", e.what());
271 return;
272 }
273 try { // A failing command must not end the display
274 command->func(args);
275 } catch (const std::exception& e) {
276 consolePrint("Error in command %.*s: %s", (int32_t)cmd.size(), cmd.data(), e.what());
277 }
278}
279
280void GPUDisplayConsole::runScript(std::string_view script)
281{
282 if (mScriptDepth >= 16) {
283 consolePrint("Scripts nested too deeply");
284 return;
285 }
286 std::vector<ScriptLine> lines;
287 for (size_t pos = 0; pos < script.size();) {
288 const size_t end = std::min(script.find_first_of("\r\n", pos), script.size());
289 if (end > pos) { // Empty lines (consecutive \r / \n) are ignored
290 lines.push_back({std::string(script.substr(pos, end - pos)), mScriptDepth + 1});
291 }
292 pos = end + 1;
293 }
294 mScriptQueue.insert(mScriptQueue.begin(), lines.begin(), lines.end()); // Before the remaining lines of a script running this one
295 if (mScriptDepth == 0) { // From a script, its processScripts loop continues with these lines
296 processScripts(false);
297 }
298}
299
301{
302 if (newFrame) {
304 if (mBenchmarkLeft && --mBenchmarkLeft == 0) {
305 const double time = std::chrono::duration<double>(std::chrono::steady_clock::now() - mBenchmarkStart).count();
306 consolePrint("benchmark: %u frames in %.3f s, %.2f fps, %.3f ms per frame", mBenchmarkFrames, time, mBenchmarkFrames / time, time * 1000. / mBenchmarkFrames);
307 }
308 }
310 mWaitCondition = nullptr;
311 }
312 const uint32_t outerDepth = mScriptDepth;
313 for (uint32_t n = 0; n < 100000 && mScriptQueue.size() && !mWaitFrames && !mBenchmarkLeft && !mWaitCondition && std::chrono::steady_clock::now() >= mWaitUntil; n++) { // Limit per call: a script must not block the display
314 ScriptLine line = std::move(mScriptQueue.front());
315 mScriptQueue.pop_front();
316 mScriptDepth = line.depth;
317 handleConsoleCommand(line.text);
318 }
319 mScriptDepth = outerDepth;
320}
321
323{
325 mBenchmarkStart = std::chrono::steady_clock::now();
326}
327
329{
330 std::ifstream file(filename, std::ios::binary);
331 if (!file) {
332 consolePrint("Cannot open script file %s", filename.c_str());
333 return;
334 }
335 std::stringstream content;
336 content << file.rdbuf();
337 runScript(content.str());
338}
339
340void GPUDisplayConsole::printCommands(const std::function<void(const std::string&)>& print) const
341{
342 std::vector<const std::pair<const std::string, GPUDisplayConsoleCommand>*> commands;
343 for (const auto& entry : mConsoleCommands) {
344 commands.emplace_back(&entry);
345 }
346 std::sort(commands.begin(), commands.end(), [](const auto* a, const auto* b) { return a->first < b->first; });
347 print("Console commands (argument types: s string, i integer, d number, a any, + further arguments):");
348 for (const auto* c : commands) {
349 print(" " + c->first + (c->second.args.empty() ? "" : " ") + c->second.args + ": " + c->second.description);
350 }
351}
void print() const
int16_t time
Definition RawEventData.h:4
unsigned int uint32_t
int32_t i
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 configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
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 e
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 Allow RTC with slave GPUReconstruction instances with optConstexpr and optSpecialcode Maximum number of RTC cache files per backend in the cache the oldest are removed(0=no limit)") AddOption(prependCommand
char error[CURL_ERROR_SIZE]
uint16_t pos
Definition RawData.h:3
uint32_t c
Definition RawData.h:2
StringRef key
void consoleInfo(const char *format, const char *text)
void processScripts(bool newFrame)
void consolePrint(const char *format,...)
std::vector< std::string > mConsoleHistory
std::chrono::steady_clock::time_point mWaitUntil
GPUDisplayConsole(const std::string &title)
const std::string & shownText() const
void runScriptFile(const std::string &filename)
std::tuple< const GPUDisplayConsoleCommand &, std::vector< consoleArg > > parseConsoleCommand(std::string_view cmd) const
std::deque< ScriptLine > mScriptQueue
void runScript(std::string_view script)
void consoleLimitHistory(uint32_t historySize)
std::variant< int64_t, double, std::string > consoleArg
void handleConsoleKey(uint8_t key, bool shift)
std::chrono::steady_clock::time_point mConsoleInfoLastTime
std::chrono::steady_clock::time_point mBenchmarkStart
std::function< bool()> mWaitCondition
void printCommands(const std::function< void(const std::string &)> &print) const
void handleConsoleCommand(std::string_view cmd)
std::unordered_map< std::string, GPUDisplayConsoleCommand > mConsoleCommands
void consoleAppend(std::string line)
GLdouble n
Definition glcorearb.h:1982
GLuint buffer
Definition glcorearb.h:655
GLsizeiptr size
Definition glcorearb.h:659
GLuint GLuint end
Definition glcorearb.h:469
GLsizei GLenum GLenum * types
Definition glcorearb.h:2516
GLuint const GLchar * name
Definition glcorearb.h:781
GLsizei const GLubyte * commands
Definition glcorearb.h:5468
GLboolean GLboolean GLboolean b
Definition glcorearb.h:1233
GLsizei const GLfloat * value
Definition glcorearb.h:819
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
GLboolean GLboolean GLboolean GLboolean a
Definition glcorearb.h:1233
GLint GLint GLsizei GLint GLenum format
Definition glcorearb.h:275
GLsizeiptr const void GLenum usage
Definition glcorearb.h:659
RuntimeErrorRef runtime_error(const char *)
std::string to_string(gsl::span< T, Size > span)
Definition common.h:52
std::string filename()
std::function< void(std::span< const consoleArg >)> func