From cada7c8944de0cb1de17ff0a181cee48608c230c Mon Sep 17 00:00:00 2001 From: maria Date: Fri, 9 Jul 2021 14:51:22 +0200 Subject: [PATCH] protection when detector is out --- RecoLocalCalo/HcalRecProducers/src/MahiGPU.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RecoLocalCalo/HcalRecProducers/src/MahiGPU.cu b/RecoLocalCalo/HcalRecProducers/src/MahiGPU.cu index 3dba47ba50191..724b80b3f8fc5 100644 --- a/RecoLocalCalo/HcalRecProducers/src/MahiGPU.cu +++ b/RecoLocalCalo/HcalRecProducers/src/MahiGPU.cu @@ -1048,6 +1048,9 @@ namespace hcal { cudaStream_t cudaStream) { auto const totalChannels = inputGPU.f01HEDigis.size + inputGPU.f5HBDigis.size + inputGPU.f3HBDigis.size; + // protections when the detector is out + if(totalChannels==0) return; + // FIXME: may be move this assignment to emphasize this more clearly // FIXME: number of channels for output might change given that // some channesl might be filtered out