Skip to content

Commit 21ef35a

Browse files
committed
GPU Display: Make trackFilterMacro settable via configKeyValues when using the DPL GPU display
1 parent 49b0c0e commit 21ef35a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ AddOption(allocateOutputOnTheFly, bool, true, "", 0, "Allocate shm output buffer
404404
AddOption(outputBufferSize, unsigned long, 200000000ul, "", 0, "Size of the output buffers to be allocated")
405405
AddOption(mutexMemReg, bool, false, "", 0, "Global mutex to serialize GPU memory registration")
406406
AddOption(printSettings, int, 0, "", 0, "Print all settings", def(1))
407+
AddOption(gpuDisplayfilterMacro, std::string, "", "", 0, "File name of ROOT macro for GPU display filter")
407408
EndConfig()
408409
#endif // GPUCA_O2_LIB
409410
#endif // !GPUCA_GPUCODE_DEVICE

GPU/GPUTracking/Interface/GPUO2InterfaceConfigurableParam.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ GPUSettingsO2 GPUO2InterfaceConfiguration::ReadConfigurableParam_internal()
107107
if (global.constBz) {
108108
configGRP.constBz = global.constBz;
109109
}
110+
if (global.gpuDisplayfilterMacro != "") {
111+
configDisplay.filterMacros.emplace_back(global.gpuDisplayfilterMacro);
112+
}
110113
if (configReconstruction.tpc.trackReferenceX == 1000.f) {
111114
configReconstruction.tpc.trackReferenceX = 83.f;
112115
}

0 commit comments

Comments
 (0)