The cluster finding method returns null if a cluster is found but doesn't satisfy the selection cuts. This stops the while loop at
|
while (!remainingHits.isEmpty() && (cluster = findCluster(remainingHits)) != null) { |
preventing other good clusters to be found.