Skip to content

Commit

Permalink
Merge pull request #45061 from 24LopezR/SV_StaProducer_fix_140X
Browse files Browse the repository at this point in the history
[140X] Protection for invalid TSOS in MuonTrajectoryUpdator
  • Loading branch information
cmsbuild authored May 29, 2024
2 parents 5ac4213 + 986aab3 commit a31a769
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RecoMuon/TrackingTools/src/MuonTrajectoryUpdator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ pair<bool, TrajectoryStateOnSurface> MuonTrajectoryUpdator::update(const Traject

lastUpdatedTSOS = measurementUpdator()->update(propagatedTSOS, *((*recHit).get()));

if (!lastUpdatedTSOS.isValid()) {
edm::LogInfo(metname) << "Invalid last TSOS, will skip RecHit ";
lastUpdatedTSOS = propagatedTSOS; // Revert update
continue;
}

LogTrace(metname) << " Fit Position : " << lastUpdatedTSOS.globalPosition()
<< " Fit Direction : " << lastUpdatedTSOS.globalDirection() << "\n"
<< " Fit position radius : " << lastUpdatedTSOS.globalPosition().perp()
Expand Down

0 comments on commit a31a769

Please sign in to comment.