Commit 24251563 authored by Peter Berta's avatar Peter Berta
Browse files

Merge branch 'ATLASRECTS-6621' into '22.0-mc20'

Fix ATLASRECTS-6621

See merge request atlas/athena!47274
parents 25e3c9f6 585a6e4f
......@@ -2732,6 +2732,10 @@ namespace Rec {
std::unique_ptr<Trk::Track> track =
std::make_unique<Trk::Track>(spectrometerTrack.info(), std::move(trackStateOnSurfaces), nullptr);
if (!track->perigeeParameters()){
ATH_MSG_DEBUG("Reject track without perigee.");
return nullptr;
}
dumpCaloEloss(track.get(), " createExtrapolatedTrack ");
if (msgLevel(MSG::DEBUG)) countAEOTs(track.get(), " createExtrapolatedTrack before fit ");
......@@ -2746,7 +2750,6 @@ namespace Rec {
(particleHypothesis == Trk::nonInteracting ? " using nonInteracting hypothesis" : "usig interacting hypothesis"));
std::unique_ptr<Trk::Track> fittedTrack{fit(*track, ctx, runOutlier, particleHypothesis)};
if (fittedTrack) {
if (msgLevel(MSG::DEBUG)) countAEOTs(fittedTrack.get(), " createExtrapolatedTrack after fit");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment