From a0cfbb2db51342cda4a5484acef1facacab797e4 Mon Sep 17 00:00:00 2001 From: Dinko Ferencek Date: Fri, 12 Apr 2024 11:26:34 +0200 Subject: [PATCH] allow using fake pixels as seeds but drop them from final clusters --- .../SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc b/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc index f5c80d6be258b..30273146b16e9 100644 --- a/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc +++ b/RecoLocalTracker/SiPixelClusterizer/plugins/PixelThresholdClusterizer.cc @@ -390,7 +390,9 @@ SiPixelCluster PixelThresholdClusterizer::make_cluster(const SiPixelCluster::Pix AccretionCluster acluster, cldata; acluster.add(pix, seed_adc); - cldata.add(pix, seed_adc); + if (!theFakePixels[pix.row() * theNumOfCols + pix.col()]) { + cldata.add(pix, seed_adc); + } //Here we search all pixels adjacent to all pixels in the cluster. bool dead_flag = false;