Skip to content

Commit c541809

Browse files
committed
GPU TPC: Make TPC Time Bin Cut overrideable from configKeyValue
1 parent 7cdca35 commit c541809

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ AddOption(solenoidBzNominalGPU, float, -1e6f, "", 0, "Field strength of solenoid
536536
AddOption(constBz, bool, false, "", 0, "force constant Bz for tests")
537537
AddOption(setMaxTimeBin, int32_t, -2, "", 0, "maximum time bin of continuous data, 0 for triggered events, -1 for automatic continuous mode, -2 for automatic continuous / triggered")
538538
AddOption(overrideNHbfPerTF, int32_t, 0, "", 0, "Overrides the number of HBF per TF if != 0")
539+
AddOption(overrideTPCTimeBinCur, int_32_t, 0, "", 0, "Overrides TPC time bin cut if > 0")
539540
AddOption(deviceType, std::string, "CPU", "", 0, "Device type, CPU | CUDA | HIP | OCL1 | OCL2")
540541
AddOption(forceDeviceType, bool, true, "", 0, "force device type, otherwise allows fall-back to CPU")
541542
AddOption(synchronousProcessing, bool, false, "", 0, "Apply performance shortcuts for synchronous processing, disable unneeded steps")

GPU/Workflow/src/GPUWorkflowTPC.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ bool GPURecoWorkflowSpec::fetchCalibsCCDBTPC<GPUCalibObjectsConst>(ProcessingCon
306306
}
307307

308308
if (mSpecConfig.outputTracks || mSpecConfig.caClusterer) {
309-
mTPCCutAtTimeBin = pc.inputs().get<o2::tpc::AltroSyncSignal*>("tpcaltrosync")->getTB2Cut(pc.services().get<o2::framework::TimingInfo>().tfCounter);
309+
mTPCCutAtTimeBin = mConfParam->overrideTPCTimeBinCur > 0 ? mConfParam->overrideTPCTimeBinCur : pc.inputs().get<o2::tpc::AltroSyncSignal*>("tpcaltrosync")->getTB2Cut(pc.services().get<o2::framework::TimingInfo>().tfCounter);
310310
}
311311

312312
// these calibrations are only defined for the tracking

0 commit comments

Comments
 (0)