Skip to content

Commit 027ab37

Browse files
committed
GPU: TPC Decoding: add missining checks on track model parameters
1 parent ee7b21e commit 027ab37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

GPU/GPUTracking/Global/GPUChainTrackingCompression.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,13 @@ int32_t GPUChainTracking::RunTPCDecompression()
254254
CompressedClusters& inputGPU = Decompressor.mInputGPU;
255255
CompressedClusters& inputGPUShadow = DecompressorShadow.mInputGPU;
256256

257+
if (cmprClsHost.nTracks && cmprClsHost.solenoidBz != -1e6f && cmprClsHost.solenoidBz != param().bzkG) {
258+
throw std::runtime_error("Configured solenoid Bz does not match value used for track model encoding");
259+
}
260+
if (cmprClsHost.nTracks && cmprClsHost.maxTimeBin != -1e6 && cmprClsHost.maxTimeBin != param().continuousMaxTimeBin) {
261+
throw std::runtime_error("Configured max time bin does not match value used for track model encoding");
262+
}
263+
257264
int32_t inputStream = 0;
258265
int32_t unattachedStream = mRec->NStreams() - 1;
259266
inputGPU = cmprClsHost;

0 commit comments

Comments
 (0)