-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce reco::Track::recHitsOk()
and use it to remove try/catch pattern in SingleLongTrackProducer
#45213
Introduce reco::Track::recHitsOk()
and use it to remove try/catch pattern in SingleLongTrackProducer
#45213
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45213/40565
|
A new Pull Request was created by @mmusich for master. It involves the following packages:
@cmsbuild, @mandrenguyen, @jfernan2 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-565540/39865/summary.html Comparison SummarySummary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
urgent |
+1 |
PR description:
This PR addresses this #45162 (comment), by introducing a new helper method
reco::Track::recHitsOk()
to check the rechits availability content of the input tracks in the track selection logic ofSingleLongTrackProducer
.This allows to remove a
try/catch
pattern in it, causing lots of extraneous exceptions being thrown (and caught) in prompt reco jobs, as reported initially in the issue #45162. The implementation (from @borzari) follows the suggestion here #45162 (comment).I profit of this PR to refactor the track selection in
SingleLongTrackProducer
to avoid filling theselTracks
with tracks withoutreco::Track::Extra
attached to them.PR validation:
I could run this test:
cmssw/DQM/TrackingMonitorSource/test/BuildFile.xml
Line 2 in 4639c10
(even using the whole input file) without crashes.
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
Not a backport, will be backported to CMSSW_14_0_X