From db6f4262ecb54ac719f1b1fae3a30ea7bade1094 Mon Sep 17 00:00:00 2001 From: Alic Spellman Date: Mon, 5 Jun 2023 13:58:18 -0700 Subject: [PATCH 1/2] bug. Should grab track state using TrackUtils AtCalorimeter, not by grabbing last trackstate in list of track states --- .../org/hps/recon/utils/TrackClusterMatcherMinDistance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java b/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java index 8dceb4f83d..8e6edebc0c 100644 --- a/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java +++ b/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java @@ -327,7 +327,7 @@ private List getTrackPositionAtEcal(Track track){ } else { TrackData trackdata = (TrackData) trackToData.from(track); - TrackState ts_ecal = track.getTrackStates().get(track.getTrackStates().size()-1); + TrackState ts_ecal = track.getTrackStateAtECal(track); //If trackstate is null, upstream extrapolation error. Skip this //Track if(ts_ecal == null){ From f054e279bdb1140b79d06c9cd5b5277d7c3fcc82 Mon Sep 17 00:00:00 2001 From: Alic Spellman Date: Mon, 5 Jun 2023 14:12:02 -0700 Subject: [PATCH 2/2] whoops, forgot to ref TrackUtils instead of track --- .../org/hps/recon/utils/TrackClusterMatcherMinDistance.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java b/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java index 8e6edebc0c..2b0883c32e 100644 --- a/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java +++ b/recon/src/main/java/org/hps/recon/utils/TrackClusterMatcherMinDistance.java @@ -327,7 +327,7 @@ private List getTrackPositionAtEcal(Track track){ } else { TrackData trackdata = (TrackData) trackToData.from(track); - TrackState ts_ecal = track.getTrackStateAtECal(track); + TrackState ts_ecal = TrackUtils.getTrackStateAtECal(track); //If trackstate is null, upstream extrapolation error. Skip this //Track if(ts_ecal == null){