From f41356fe076736225c7c67c84645e627b25b7247 Mon Sep 17 00:00:00 2001 From: ajhobart Date: Mon, 27 Feb 2023 14:21:21 +0100 Subject: [PATCH] cluster status is 1 in the case where any hit is a possible double hit and not just the seed hit --- .../org/jlab/rec/cnd/cluster/CNDClusterFinder.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/reconstruction/cnd/src/main/java/org/jlab/rec/cnd/cluster/CNDClusterFinder.java b/reconstruction/cnd/src/main/java/org/jlab/rec/cnd/cluster/CNDClusterFinder.java index 386b4d0835..ddac4f3f9c 100755 --- a/reconstruction/cnd/src/main/java/org/jlab/rec/cnd/cluster/CNDClusterFinder.java +++ b/reconstruction/cnd/src/main/java/org/jlab/rec/cnd/cluster/CNDClusterFinder.java @@ -162,12 +162,14 @@ public ArrayList findClusters(ArrayList hits, CalibrationCon double energy_cluster; double pathlengththroughbar; + double cluster_status; //1 is at least one hit is possibly a double hit for(int k =0; k findClusters(ArrayList hits, CalibrationCon theHit.set_AssociatedClusterID(k+1); energy_cluster += theHit.Edep(); + cluster_status += theHit.get_status(); pathlengththroughbar += theHit.tLength()/10.0; @@ -202,7 +205,14 @@ public ArrayList findClusters(ArrayList hits, CalibrationCon acluster.set_time(seedHit.Time()); acluster.set_nhits(clustered_hits.getItem(k).size()); acluster.set_energysum(energy_cluster); - acluster.set_status(seedHit.get_status()); + if(cluster_status>0) + { + acluster.set_status(1); + } + else + { + acluster.set_status(0); + } acluster.set_pathLengthThruBar(pathlengththroughbar);