Skip to content

Commit

Permalink
Merge pull request #34428 from mariadalfonso/HCALoutGPU
Browse files Browse the repository at this point in the history
HBHEGPU: protection when detector is out
  • Loading branch information
cmsbuild authored Jul 15, 2021
2 parents 335a157 + cada7c8 commit 0f0d65b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RecoLocalCalo/HcalRecProducers/src/MahiGPU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f0d65b

Please sign in to comment.