Skip to content
Snippets Groups Projects
Commit d703e3a2 authored by Will Leight's avatar Will Leight
Browse files

Fix for extremely rare bug in muon extrapolation

In one case in the 2015-2016 dataset, the standalone muon fit was so bad that it appeared to have no hits in the MS.
This causes a problem for the loop in the standaloneFit method of CombinedMuonTrackBuilder.cxx that is supposed to find the first MS hit on the track.
Instead of ending up with an iterator that points to a hit, it has an iterator which points to the end of the track's TSOS vector.
There is an if statement immediately following the loop which is supposed to catch this, but it first checks to see if the hit pointed to has valid track parameters.
In the case that the iterator points to the end of the vector, this causes a crash.
Changing the order of the conditional statements in the if statement removes the crash.
The underlying cause of the poor fit is still under investigation.
parent d9688ceb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment