Author: [log in to unmask] Date: Wed Jan 21 19:22:37 2015 New Revision: 1965 Log: Updated the CTP and readout GTP clustering algorithms to set their cluster positions to the seed hit's position. Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/CTPClusterer.java java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/CTPClusterer.java ============================================================================= --- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/CTPClusterer.java (original) +++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/CTPClusterer.java Wed Jan 21 19:22:37 2015 @@ -306,6 +306,8 @@ // Generate a new cluster from the seed hit. BaseCluster cluster = createBasicCluster(); cluster.addHit(seedHit); + cluster.setPosition(seedHit.getDetectorElement().getGeometry().getPosition().v()); + cluster.setNeedsPropertyCalculation(false); // Populate the cluster with each of the chosen neighbors. for (CalorimeterHit clusterHit : hits) { cluster.addHit(clusterHit); Modified: java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java ============================================================================= --- java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java (original) +++ java/trunk/ecal-recon/src/main/java/org/hps/recon/ecal/cluster/GTPOnlineClusterer.java Wed Jan 21 19:22:37 2015 @@ -114,6 +114,8 @@ // Create a cluster for the potential seed. BaseCluster protoCluster = createBasicCluster(); protoCluster.addHit(seed); + protoCluster.setPosition(seed.getDetectorElement().getGeometry().getPosition().v()); + protoCluster.setNeedsPropertyCalculation(false); // Iterate over the other hits and if the are within // the clustering spatiotemporal window, compare their