Skip to content

Commit 799395e

Browse files
committed
Add protection against tracks outside the BField range
1 parent c72d8cd commit 799395e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Fit/Track.hh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ namespace KinKal {
188188
// convert the seed traj to a piecewaise traj. This creates the domains
189189
DOMAINCOL domains;
190190
convertSeed(seedtraj,detrange,domains);
191-
// convert all the primary info to fit effects
192-
createEffects(hits, exings, domains);
193-
// now fit
194-
fit();
191+
if(status().needsFit()){
192+
// convert all the primary info to fit effects
193+
createEffects(hits, exings, domains);
194+
// now fit
195+
fit();
196+
}
195197
}
196198

197199
template <class KTRAJ> void Track<KTRAJ>::fit(HITCOL& hits, EXINGCOL& exings, DOMAINCOL& domains, PKTRAJPTR& fittraj) {

0 commit comments

Comments
 (0)