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 config in RecoTracker{IterativeTracking} to use default cfipython v3 #35194

Merged
merged 3 commits into from
Sep 24, 2021

Conversation

jeongeun
Copy link
Contributor

@jeongeun jeongeun commented Sep 8, 2021

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.
RecoTracker/IterativeTracking/python/MixedTripletStep_cff.py
The previous PR is #34007.

PR validation:

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 8, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35194/25130

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 8, 2021

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

It involves the following packages:

  • RecoTracker/IterativeTracking (reconstruction)

@jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@felicepantaleo, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @ebrondol, @gpetruc, @mmusich, @mtosi, @dgulhan this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@slava77
Copy link
Contributor

slava77 commented Sep 9, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 9, 2021

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9b49bf/18457/summary.html
COMMIT: fcec147
CMSSW: CMSSW_12_1_X_2021-09-08-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35194/18457/install.sh to create a dev area with all the needed externals and cmssw changes.

Build

I found compilation warning when building: See details on the summary page.

mixedTripletStepSeedLayersA = cms.EDProducer('SeedingLayersEDProducer',
layerList = cms.vstring('BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg'),
# layerList = cms.vstring('BPix1+BPix2+BPix3',
from RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _seedmod
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
from RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _seedmod
import RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _seedmod

Copy link
Contributor

Choose a reason for hiding this comment

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

@jeongeun please check/update this.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35194/25315

@cmsbuild
Copy link
Contributor

Pull request #35194 was updated. @jpata, @cmsbuild, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Sep 16, 2021

@cmsbuild please test

layerList = cms.vstring('BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg'),
# layerList = cms.vstring('BPix1+BPix2+BPix3',
import RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _seedmod
mixedTripletStepSeedLayersA = _seedmod.seedingLayersEDProducer.clone(
Copy link
Contributor

Choose a reason for hiding this comment

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

there is now a redundant import RecoTracker.TkSeedingLayers.seedingLayersEDProducer_cfi as _mod on L164.
Please remove it there.

# 'BPix1+BPix2+FPix1_pos', 'BPix1+BPix2+FPix1_neg',
# 'BPix1+FPix1_pos+FPix2_pos', 'BPix1+FPix1_neg+FPix2_neg',
# 'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg'),
# 'BPix2+FPix1_pos+FPix2_pos', 'BPix2+FPix1_neg+FPix2_neg'],
BPix = cms.PSet(
Copy link
Contributor

Choose a reason for hiding this comment

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

the implementation in cfipython is

seedingLayersEDProducer = cms.EDProducer('SeedingLayersEDProducer',
  layerList = cms.vstring(),
  BPix = cms.PSet(),
  FPix = cms.PSet(),
  TIB = cms.PSet(),
  TID = cms.PSet(),
  TOB = cms.PSet(),
  TEC = cms.PSet(),
  MTIB = cms.PSet(),
  MTID = cms.PSet(),
  MTOB = cms.PSet(),
  MTEC = cms.PSet(),

So, I expect that the following should work (same for all other PSet in this module as well as in mixedTripletStepSeedLayersB in this file.

Suggested change
BPix = cms.PSet(
BPix = dict(

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-35194/25461

  • This PR adds an extra 20KB to repository

@cmsbuild
Copy link
Contributor

Pull request #35194 was updated. @jpata, @cmsbuild, @slava77 can you please check and sign again.

@slava77
Copy link
Contributor

slava77 commented Sep 23, 2021

@cmsbuild please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9b49bf/18850/summary.html
COMMIT: 5cd9719
CMSSW: CMSSW_12_1_X_2021-09-22-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/35194/18850/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 40
  • DQMHistoTests: Total histograms compared: 3211080
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3211058
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 39 files compared)
  • Checked 169 log files, 37 edm output root files, 40 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Sep 23, 2021

@jeongeun
thank you for the last update.
I noticed that similar patterns exist in other files.

git grep -16 seedingLayersEDProducer.clone shows some ideas

  • RecoTracker/ConversionSeedGenerators/python/ConversionStep2_cff.py
  • RecoTracker/ConversionSeedGenerators/python/ConversionStep_cff.py
  • RecoTracker/IterativeTracking/python/ElectronSeeds_cff.py
    and so on

Please check and follow up in another PR.
Thank you.

@slava77
Copy link
Contributor

slava77 commented Sep 23, 2021

I noticed that similar patterns exist in other files.

I mean BPix = cms.PSet( vs BPix = dict(

@slava77
Copy link
Contributor

slava77 commented Sep 23, 2021

+reconstruction

for #35194 5cd9719

  • code changes are in line with the PR description and the follow up review
  • jenkins tests pass and comparisons with the baseline show no differences

@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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Sep 24, 2021

+1

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.

4 participants