Skip to content

Commit

Permalink
Merge pull request #41454 from mmusich/fixGsfCrash2023
Browse files Browse the repository at this point in the history
[13.0.X] Add protection to avoid crash in `lowPtGsfEleGsfTracks` (and other e/gamma reco)
  • Loading branch information
cmsbuild authored Apr 29, 2023
2 parents a920653 + 507b927 commit c770771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TrackingTools/GsfTracking/src/GsfMultiStateUpdator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@

TrajectoryStateOnSurface GsfMultiStateUpdator::update(const TrajectoryStateOnSurface& tsos,
const TrackingRecHit& aRecHit) const {
if (!tsos.isValid()) {
edm::LogError("GsfMultiStateUpdator") << "Trying to update trajectory state with invalid TSOS! ";
return TrajectoryStateOnSurface();
}

GetComponents comps(tsos);
auto const& predictedComponents = comps();
if (predictedComponents.empty()) {
Expand Down

0 comments on commit c770771

Please sign in to comment.