Skip to content

Commit

Permalink
protection when detector is out
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso committed Jul 9, 2021
1 parent cab1fc1 commit cada7c8
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 cada7c8

Please sign in to comment.