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

Migrate module configurations in RecoLocalMuon to use automatically generated cfi default configurations #33543

Merged
merged 10 commits into from Apr 30, 2021

Conversation

jeongeun
Copy link
Contributor

PR description:

Optimization of the python configurations: Improve maintainability by cleaning up the duplicated and cloning from the default/reference configurations.

In this PR, 1 file changed. (The previous PRs were PR#33207, PR#33307, PR#33352 )

  • commit 1 :
    Replace explicit configuration with a reference from cfipython/. (migrating EDProducer("type", .. -> typeDefaylt.clone() )
    Remove the type specifications already presented in cfipython/fillDescriptions reference for improved syntax safety.

  • commit 2 :
    Remove the duplicated parameters that are exactly the same value in cfipython reference.

PR validation:

Event Content comparison check was also done and there is no change with these updates.
Tested in CMSSW_11_3_X, the basic test all passed in the CMSSW PR instructions.

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33543/22322

  • This PR adds an extra 16KB to repository

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

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33543/22323

  • This PR adds an extra 16KB to repository

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

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33543/22324

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @jeongeun (JeongEun Lee) for master.

It involves the following packages:

RecoLocalMuon/CSCRecHitD

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@ptcox, @bellan, @abbiendi, @jhgoh this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

csc2DRecHits = cms.EDProducer("CSCRecHitDProducer",
import RecoLocalMuon.CSCRecHitD.cscRecHitDProducer_cfi as _mod

csc2DRecHits = _mod.cscRecHitDProducer.clone(
#
# Parameters for coordinate and uncertainty calculations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comment lines must remain attached to the cscRecHitDParameters , now moved at the end of this file

# to be deleted
CSCStripClusterSize = cms.untracked.int32(3)
CSCStripClusterSize = 3,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triggered by the "to be deleted" comment above, I verified that the CSCStripClusterSize parameter is actually not needed any more in the CSCRecHitDProducer code, and this is probably a good opportunity to clean it away from the configuration. Do you agree @ptcox ?

If you do so, please also:

@ptcox
Copy link
Contributor

ptcox commented Apr 27, 2021 via email

@perrotta
Copy link
Contributor

+1

  • The python configuration for "CSCRecHitDProducer" was redesigned in order to clone from the default module configuration as generated by the fillDescriptions method of the class, as intended
  • While doing so, some cleaning from one unused parameter in that class was also implemented
  • Jenkins tests pass and show no (relevant) differences

@Martin-Grunewald
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

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)

@qliphy
Copy link
Contributor

qliphy commented Apr 30, 2021

+1

@cmsbuild cmsbuild merged commit 2cacea8 into cms-sw:master Apr 30, 2021
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.

None yet

6 participants