Skip to content

Commit a7afa46

Browse files
authored
fix null issue for finalSV in KF for new HB tracking (#1164)
1 parent ec869e0 commit a7afa46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reconstruction/dc/src/main/java/org/jlab/rec/dc/track/TrackCandListFinder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ public List<Track> getTrackCandsAI(CrossList crossList, DCGeant4Factory DcDetect
294294

295295
if(cand.get_Vtx0() != null){
296296
Point3D VTCS = cand.get(cand.size()-1).getCoordsInTiltedSector(cand.get_Vtx0().x(), cand.get_Vtx0().y(), cand.get_Vtx0().z());
297+
finalSV.k = measSurfaces.size()-1;
298+
kFZRef.finalStateVec = finalSV;
297299
double deltaPathToVtx = kFZRef.getDeltaPathToVtx(sector, VTCS.z());
298300

299301
List<org.jlab.rec.dc.trajectory.StateVec> kfStateVecsAlongTrajectory = setKFStateVecsAlongTrajectory(kFZRef, deltaPathToVtx);

0 commit comments

Comments
 (0)