Skip to content

Commit

Permalink
Fix the order of multiple ETL hits to follow the expected convention
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocos committed Mar 17, 2021
1 parent ca328c1 commit bc4619b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,14 @@ TransientTrackingRecHit::ConstRecHitContainer TrackExtenderWithMTDT<TrackCollect

fillMatchingHits(ilay, tsos, traj, pmag2, pathlength0, hits, prop, bs, vtxTime, matchVertex, output, bestHit);
}

// the ETL hits order must be from the innermost to the outermost

if (output.size() == 2) {
if (std::abs(output[0]->globalPosition().z()) > std::abs(output[1]->globalPosition().z())) {
std::reverse(output.begin(), output.end());
}
}
return output;
}

Expand Down

0 comments on commit bc4619b

Please sign in to comment.