From af7f05eda1975b0166ba2cc8b1f71b5c2515a9df Mon Sep 17 00:00:00 2001 From: Dinko Ferencek Date: Wed, 18 Oct 2023 12:52:17 +0200 Subject: [PATCH] add storing of invalid ROC number error (errorType=36) in GPU pixel code --- .../plugins/SiPixelRawToClusterGPUKernel.cu | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; }