-
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
drop type specs in RecoEgamma #31243
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31243/17899
|
A new Pull Request was created by @jeongeun (JeongEun Lee) for master. It involves the following packages: RecoEgamma/EgammaElectronProducers @perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
elPFIsoValueCharged04 = elPFIsoValueCharged03.clone() | ||
elPFIsoValueCharged04.deposits[0].deltaR = cms.double(0.4) | ||
elPFIsoValueCharged04.deposits[0].deltaR = 0.4 |
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.
I was looking at a similar case earlier today, it looks like the following syntax works and can let us further simplify the replacement cases in vectors
elPFIsoValueCharged04 = elPFIsoValueCharged03.clone() | |
elPFIsoValueCharged04.deposits[0].deltaR = cms.double(0.4) | |
elPFIsoValueCharged04.deposits[0].deltaR = 0.4 | |
elPFIsoValueCharged04 = elPFIsoValueCharged03.clone(deposits = {0: dict(deltaR = 0.4)} ) |
@cmsbuild please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Ok, better now |
+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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Update the safer syntax for existing parameter :
Instead of modifying parameters with full type specs, which can be interpreted as an insertion of a new parameter, it is a safer way to protect from parameter name mistakes and will also help in possible parameter migrations.
(The references were PR#30700, PR#30827, PR#30947,PR#31162,)
In this PR, total 36 files updated.
PR validation:
Event Content comparison check was also done and there is no change with these updates.
Tested in CMSSW_11_2_X, the basic test all passed in the CMSSW PR instructions.