Skip to content

Commit b789e2f

Browse files
committed
Set GPU field to 0 if L3 current <= 77A
1 parent f7a8f7c commit b789e2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GPU/GPUTracking/Interface/GPUO2InterfaceUtils.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ uint32_t GPUO2InterfaceUtils::getTpcMaxTimeBinFromNHbf(uint32_t nHbf)
145145

146146
float GPUO2InterfaceUtils::getNominalGPUBzFromCurrent(float l3curr)
147147
{
148+
// Field for the current below 77A is treated as 0.
148149
float al3curr = CAMath::Abs(l3curr);
149-
return (CAMath::Abs(al3curr - 12000) < CAMath::Abs(al3curr - 30000) ? (2.04487f / 12000.f) : (5.00668f / 30000.f)) * l3curr;
150+
return al3curr <= 77 ? 0 : ((CAMath::Abs(al3curr - 12000) < CAMath::Abs(al3curr - 30000) ? (2.04487f / 12000.f) : (5.00668f / 30000.f)) * l3curr);
150151
}

0 commit comments

Comments
 (0)