Skip to content

Commit ad5cdb4

Browse files
raffaelladevitabaltzell
authored andcommitted
HTCC: do not stop clustering if a cluster fails the cuts
1 parent 8e265ae commit ad5cdb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reconstruction/htcc/src/main/java/org/jlab/rec/htcc/HTCCReconstruction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ public void processEvent(DataEvent event) {
6161

6262
// Place all of the hits into clusters
6363
List<HTCCCluster> clusters = new ArrayList();
64-
HTCCCluster cluster;
65-
while (!remainingHits.isEmpty() && (cluster = findCluster(remainingHits)) != null) {
66-
clusters.add(cluster);
64+
while (!remainingHits.isEmpty()) {
65+
HTCCCluster cluster = findCluster(remainingHits);
66+
if(cluster!=null) clusters.add(cluster);
6767
}
6868

6969
// Push all of the clusters into the bank and print the results

0 commit comments

Comments
 (0)