From d2f0a4518300e53a04571ec82b93bee2e818bb36 Mon Sep 17 00:00:00 2001 From: Pierfrancesco Butti Date: Wed, 5 Apr 2023 09:26:22 -0400 Subject: [PATCH] Fix number of DOF in KF tracks --- .../java/org/hps/recon/tracking/kalman/KalmanInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking/src/main/java/org/hps/recon/tracking/kalman/KalmanInterface.java b/tracking/src/main/java/org/hps/recon/tracking/kalman/KalmanInterface.java index 9f21a50efb..80a1916015 100644 --- a/tracking/src/main/java/org/hps/recon/tracking/kalman/KalmanInterface.java +++ b/tracking/src/main/java/org/hps/recon/tracking/kalman/KalmanInterface.java @@ -595,7 +595,7 @@ public BaseTrack createTrack(KalTrack kT, boolean storeTrackStates) { // other track properties newTrack.setChisq(kT.chi2); - newTrack.setNDF(kT.SiteList.size() - 5); + newTrack.setNDF(newTrack.getTrackerHits().size() - 5); newTrack.setTrackType(BaseTrack.TrackType.Y_FIELD.ordinal()); newTrack.setFitSuccess(true);