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);