Skip to content
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 Egamma PF linking in 2018 PbPb mAOD #37261

Closed
wants to merge 11 commits into from

Conversation

ttrk
Copy link
Contributor

@ttrk ttrk commented Mar 17, 2022

Associated PF candidates for a GED electron/photon are necessary to avoid double counting energy in PF isolation.

In AOD, the association is stored in particleBasedIsolation object. In miniAOD, association is accessible via associatedPackedPFCandidates() of a pat electron/photon (e.g. here), the AOD-2-miniAOD process transfers the association between objects.

Currently, the transfer does not work correctly for 2018 PbPb data, i.e. run2_miniAOD_pp_on_AA_103X process. This is understood as packedPFcandidates in this workflow is made from an intermediate, "cleaned" PF collection (created via this) and while references in particleBasedIsolation are still the ones from original PF collection. The associatedPackedPFCandidates collection created in current code is not correct.

This PR fixes the problem by producing a map between original (old) and the cleaned (new) PF candidate references and updating the references in particleBasedIsolation from old to new ones.

Tests pass wf 140.5611 and give correct output.

@mandrenguyen

sifuluo and others added 11 commits March 11, 2022 19:04
Make both ME1a and ME1b LCT (A/CLCT) sorted into ring 1.
…pre6

HLT menu migration to 12_3_0_pre6 template
…GTsForRun3

Update TSG tests and Relval Steps to use new run3_[hlt|data]_relval GTs
…Plots-12_3_X_backport

Lumi-based status plots, backport to CMSSW_12_3_X
…_12_3_X

[12_3_X] Modernize `DQM/BeamMonitor/plugins/TKStatus` plugin
…_12_3_X

[12.3.X] Introduce alignment campaign-like unit test for `pede`
@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37261/28884

  • This PR adds an extra 20KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@ttrk
Copy link
Contributor Author

ttrk commented Mar 17, 2022

Sorry. Apparently this PR was done from an outdated branch.

@ttrk
Copy link
Contributor Author

ttrk commented Mar 17, 2022

Opened a new PR using an updated branch.

@ttrk ttrk deleted the run2_miniAOD_AA_fix_egamma_assoPF branch March 17, 2022 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants