-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Allowing EGM IDs to run in Mini with Nano workflows #38810
Conversation
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38810/31177
|
A new Pull Request was created by @Sam-Harper (Sam Harper) for master. It involves the following packages:
@jpata, @mariadalfonso, @gouskos, @fgolf, @clacaputo can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
started the test let's see if all smooth note that the electron are in the identical situation and we will need to reactivate the IDs also here |
well you reset the tests I was running :D
It all works with that, that change will would be in already but there was a merge conflict so decided for the quiet life to not include that part in this PR |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a9b07b/26368/summary.html Comparison Summary@slava77 comparisons for the following workflows were not done due to missing matrix map:
Summary:
|
+xpog |
thank you @Sam-Harper |
we will need your signature |
+reconstruction |
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. @perrotta, @dpiparo, @qliphy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1
|
PR description:
This PR addresses the issue where MiniAOD and Nano can not run in the same job when using EGM IDs in NANO as identified in #38690
The reason for this is simple:
EGM IDs use valuemaps
Values are keyed to specific collection of objects
Nano uses selectedPatPhotons
EGM IDs are produced with reducedEGamma:reducedPhotons which is needed to embed the IDs in the selectedPatPhotons
The solution in this PR is to allow the offending modules to also get the ancestor collections and thus be able to convert their pointer to a pointer in the equivalent photon (or electron) in the collection used for the value maps. To map one photon / electron to another, their supercluster seed ID is used.
A better solution would be that nano rather than reinventing the wheel, retrieves the objects from from the pat::Electrons of mini directly and doesnt mess around with value maps, this is how EGM intended this to be used. But that is out side the scope of this PR.
PR validation:
when testing the workflow runTheMatrix.py -l 11634.0, it now works and ids are being produced as expected.