diff --git a/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu b/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu index 39be1188e6c68..49575f968e73b 100644 --- a/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu +++ b/RecoLocalTracker/SiPixelClusterizer/plugins/SiPixelRawToClusterGPUKernel.cu @@ -331,12 +331,13 @@ namespace pixelgpudetails { // check for spurious channels if (roc > MAX_ROC or link > MAX_LINK) { + uint32_t rawId = getRawId(cablingMap, fedId, link, 1).rawId; if constexpr (debug) { - printf("spurious roc %d found on link %d, detector %d (index %d)\n", - roc, - link, - getRawId(cablingMap, fedId, link, 1).rawId, - gIndex); + printf("spurious roc %d found on link %d, detector %d (index %d)\n", roc, link, rawId, gIndex); + } + if (roc > MAX_ROC and roc < 25) { + uint8_t error = conversionError(fedId, 2); + err->push_back(SiPixelErrorCompact{rawId, ww, error, fedId}); } continue; }