File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Detectors/ITSMFT/ITS/tracking/src Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -211,12 +211,13 @@ void Tracker<NLayers>::sortTracks()
211211 bounded_vector<size_t > indices (trks.size (), mMemoryPool .get ());
212212 std::iota (indices.begin (), indices.end (), 0 );
213213 std::sort (indices.begin (), indices.end (), [&trks](size_t i, size_t j) {
214+ // provide tracks sorted by lower-bound
214215 const auto & a = trks[i];
215216 const auto & b = trks[j];
216- const auto at = a.getTimeStamp ();
217- const auto bt = b.getTimeStamp ();
218- if (at. getTimeStamp () != bt. getTimeStamp ()) { // sort first in time
219- return at. getTimeStamp () < bt. getTimeStamp () ;
217+ const auto aLower = a.getTimeStamp (). getTimeStamp () - a. getTimeStamp (). getTimeStampError ();
218+ const auto bLower = b.getTimeStamp (). getTimeStamp () - b. getTimeStamp (). getTimeStampError ();
219+ if (aLower != bLower) {
220+ return aLower < bLower ;
220221 }
221222 return a.isBetter (b, 1e9 ); // then sort tracks in quality
222223 });
You can’t perform that action at this time.
0 commit comments