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
LowPtElectrons: NanoAOD integration (back port of #33817) #33992
LowPtElectrons: NanoAOD integration (back port of #33817) #33992
Conversation
A new Pull Request was created by @bainbrid for CMSSW_10_6_X. It involves the following packages: DataFormats/EgammaCandidates @perrotta, @gouskos, @cmsbuild, @fgolf, @slava77, @jpata, @mariadalfonso can you please review it and eventually sign? Thanks. cms-bot commands are listed here
|
auto iter = std::find(names_.begin(), names_.end(), name); | ||
if (iter != names_.end()) { | ||
int index = std::distance(names_.begin(), iter); | ||
std::vector<float> inputs; | ||
if (version_.empty()) { // Original XML model | ||
lowptgsfeleid::Features features; | ||
features.set(ele, rho); | ||
features.set(*ele, rho); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slava77 I am required to provide support for an old model (Autumn18) in 10_6_X that no longer exists in master. The method above is defined here, which originally expected a const reco::GsfElectronRef&
. Similar methods for newer models (see below this comment) have since been updated to expect an arg const reco::GsfElectron&
and I have done the same for the above method (while preserving the original interface). Anther change is a switch from Ref to Ptr (which is then dereferenced). I believe the changes in this file and also here to be the minimal required while being consistent with other methods (e.g. here) and those in master.
# Modifiers | ||
################################################################################ | ||
|
||
_modifiers = ( run2_miniAOD_80XLegacy | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slava77 it's my understanding (after speaking with @mariadalfonso) that these modifiers are the only ones required to ensure the low pT ele are added to nanoAOD for run2_nanoAOD_106Xv2
only.
from Configuration.Eras.Modifier_bParking_cff import bParking | ||
_slimmedLowPtElectrons = slimmedLowPtElectrons.clone() | ||
_slimmedLowPtElectrons.modifierConfig.modifications += [lowPtElectronModifier] | ||
(~bParking & run2_miniAOD_devel).toReplaceWith(slimmedLowPtElectrons,_slimmedLowPtElectrons) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slava77 the dxy and dz vars, plus the conversions vars, are only intended to be added for future re-miniAOD campaigns.
This branch has conflicts that must be resolved |
Ok, I'm not sure how I can resolve these conflicts... They are w.r.t. what exactly? (Is there more info?) |
urgent (mark what is needed for the nanov9) |
@mariadalfonso do we know when there will be a new IB for 10_6_X? this will help, as #33589 will be integrated. then I can rebase and hopefully solve the above conflicts. |
@bainbrid You can watch here https://cmssdt.cern.ch/SDT/html/cmssdt-ib/#/ib/CMSSW_10_6_X |
@bainbrid please keep an eye on http://cms-sw.github.io/showIB.html |
I think I've realised my mistake. Might have screwed up when squashing prior to making the PR. Testing now and then a commit soon that hopefully fixes it ... |
backport of #33817 |
please test |
PR to master here: #34005 |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4de9ab/15735/summary.html The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: Comparison SummarySummary:
|
shouldn't this be actually enabled for the |
+reconstruction
|
+xpog
|
This pull request is fully signed and it will be integrated in one of the next CMSSW_10_6_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_0_X is complete. This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
@slava77 you're absolutely right, thanks for catching this! Added in a separate back port PR: #34023 |
PR description:
This PR adds low-pT electrons to the NanoAOD content.
Details on the updates are found in the PR description of #33817.
Nearly all developments are aimed at the nano v9 production.
Concerning future re-miniAOD campaigns, the
LowPtElectronModifier
module is used to calculate and embed the following information in pat::Electrons when the modifier logic(~bParking & run2_miniAOD_devel)
is satisfied:PR validation:
Local tests, and workflows 136.8523 (JetHT, 2018C, UL re-nano v9) and 136.88811 (JetHT, 2018D, UL re-mini).
if this PR is a backport please specify the original PR and why you need to backport that PR:
This is a back port of the PR #33817.
This PR is based on top of developments from the "re-mini" back port PR #33589. The resolution of conflicts in several files was required. A rebase is required as soon as #33589 is integrated within a 10_6_X release.
Some minor updates listed here #33992 (comment) have been forwarded ported to master in the PR #34005.