-
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
Fix: Avoid adding HGCalUncalibRecHits to the event if digis do not exist #45992
Fix: Avoid adding HGCalUncalibRecHits to the event if digis do not exist #45992
Conversation
cms-bot internal usage |
type hgcal |
type bug-fix |
@cms-sw/hgcal-dpg-l2 fyi |
@cmsbuild please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45992/41761 |
A new Pull Request was created by @felicepantaleo for master. It involves the following packages:
@jfernan2, @mandrenguyen, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Size: This PR adds an extra 20KB to repository Comparison SummarySummary:
|
+1 |
@cmsbuild please test |
Kindly ping @cms-sw/upgrade-l2 |
+Upgrade |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request will now be reviewed by the release team before it's merged. @rappoccio, @antoniovilela, @sextonkennedy, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2) |
+1 Size: This PR adds an extra 12KB to repository Comparison SummarySummary:
|
+1 |
This update ensures that
HGCalUncalibRecHits
are not added to the event if the corresponding digi collections do not exist. Previously, the rec hits were always put into the event, even when the digi handles were invalid. The updated logic includes checks to prevent this behavior, avoiding unnecessary allocations and potential issues during event processing.Key Changes:
HGCalUncalibRecHits
are only added to the event if the corresponding digi collection exists.evt.put()
calls for invalid digiHGCalUncalibRecHitProducer::produce
function by handling each digi collection independently.