Skip to content

Commit a35f823

Browse files
minor
1 parent 67e7f94 commit a35f823

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hexsample/clustering.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def run(self, event: DigiEventSparse | DigiEventRectangular | DigiEventCircular)
126126
row.append(_row)
127127
# ... transforming the coordinates of the NN in its corresponding ADC channel ...
128128
adc_channel_order.append(self.grid.adc_channel(_col, _row))
129-
# ... reordering the pha array for the correspondance (col[i], row[i]) with pha[i].
129+
# ... reordering the pha array for the correspondance (col[i], row[i]) with pha[i].
130130
pha = event.pha[adc_channel_order]
131131
# Converting lists into numpy arrays
132132
col = np.array(col)
@@ -149,6 +149,8 @@ def run(self, event: DigiEventSparse | DigiEventRectangular | DigiEventCircular)
149149
# trick argsort into sorting values in decreasing order.
150150
idx = np.argsort(-pha)
151151
# Only pick the seed and the N highest pixels.
152+
# This is useless for the circular readout because in that case all
153+
# neighbors are used for track reconstruction.
152154
mask = idx[:self.num_neighbors + 1]
153155
# If there's any zero left in the target pixels, get rid of it.
154156
mask = mask[pha[mask] > 0]

0 commit comments

Comments
 (0)