From 799395ec81ca6843140f432bd7012e2571d1255b Mon Sep 17 00:00:00 2001 From: David Nathan Brown Date: Tue, 7 Oct 2025 22:03:06 -0700 Subject: [PATCH] Add protection against tracks outside the BField range --- Fit/Track.hh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Fit/Track.hh b/Fit/Track.hh index 1f91ebd7..1109f941 100644 --- a/Fit/Track.hh +++ b/Fit/Track.hh @@ -188,10 +188,12 @@ namespace KinKal { // convert the seed traj to a piecewaise traj. This creates the domains DOMAINCOL domains; convertSeed(seedtraj,detrange,domains); - // convert all the primary info to fit effects - createEffects(hits, exings, domains); - // now fit - fit(); + if(status().needsFit()){ + // convert all the primary info to fit effects + createEffects(hits, exings, domains); + // now fit + fit(); + } } template void Track::fit(HITCOL& hits, EXINGCOL& exings, DOMAINCOL& domains, PKTRAJPTR& fittraj) {