We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7a8f7c commit b789e2fCopy full SHA for b789e2f
GPU/GPUTracking/Interface/GPUO2InterfaceUtils.cxx
@@ -145,6 +145,7 @@ uint32_t GPUO2InterfaceUtils::getTpcMaxTimeBinFromNHbf(uint32_t nHbf)
145
146
float GPUO2InterfaceUtils::getNominalGPUBzFromCurrent(float l3curr)
147
{
148
+ // Field for the current below 77A is treated as 0.
149
float al3curr = CAMath::Abs(l3curr);
- 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);
151
}
0 commit comments