From c2d68bc63490a0fba2a8465e23b0f5a559f82f0d Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Sun, 21 Apr 2024 12:13:44 +0200 Subject: [PATCH] Skip invalid HCAL PF rechits --- .../plugins/alpaka/PFRecHitTopologyESProducer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/PFRecHitTopologyESProducer.cc b/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/PFRecHitTopologyESProducer.cc index f94db2aecc362..33abb62375707 100644 --- a/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/PFRecHitTopologyESProducer.cc +++ b/RecoParticleFlow/PFRecHitProducer/plugins/alpaka/PFRecHitTopologyESProducer.cc @@ -104,6 +104,8 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE { for (auto const detId : geom.getValidDetIds(CAL::kDetectorId, subdet)) { const uint32_t denseId = CAL::detId2denseId(detId); for (uint32_t n = 0; n < 8; n++) { + if (view.neighbours(denseId)[n] == 0xffffffff) + continue; const ::reco::PFRecHitsTopologyNeighbours& neighboursOfNeighbour = view.neighbours(view.neighbours(denseId)[n]); if (std::find(neighboursOfNeighbour.begin(), neighboursOfNeighbour.end(), denseId) ==