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

Drop type specs in RecoHI {Configuration, HiTracking} #32386

Merged
merged 8 commits into from
Dec 16, 2020

Conversation

jeongeun
Copy link
Contributor

@jeongeun jeongeun commented Dec 4, 2020

PR description:

Update the safer syntax for existing parameter :

  • drop type specifications where the original parameter exists.
  • move all parameter inside the clone

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 previous PR for RecoHI is PR#32031)

In this PR, total 29 files changed.

  • RecoHI/Configuration : 3 files
  • RecoHI/HiTracking : 26 files

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.

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 4, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32386/20252

  • This PR adds an extra 44KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 4, 2020

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

It involves the following packages:

RecoHI/Configuration
RecoHI/HiTracking

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@MiheeJo, @jazzitup, @yenjie, @kurtejung, @mandrenguyen, @dgulhan, @yetkinyilmaz 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

@@ -11,8 +11,9 @@

#Tracks
hiSignalGlobalPrimTracks = hiGlobalPrimTracks.clone()
hiSignalSelectedTracks = hiSelectedTracks.clone()
hiSelectedTracks.src = cms.InputTag("hiSignalGlobalPrimTracks")
hiSignalSelectedTracks = hiSelectedTracks.clone(
Copy link
Contributor

Choose a reason for hiding this comment

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

Here the hiSignalSelectedTracks are updated with the input collection "hiSignalGlobalPrimTracks", but then later the heavyIonTrackingTask is feeed with the (unmodified) hiSelectedTracks: I wonder how it can even work
I suppose you already tested it, e.g. with the HI workflows in the matrix tests (140.43, 140.46, 158.01): but it is possible that you wouldn't get an error in that case, because it does not seem to me that this Reconstruction_hiSignal_cff.py is ever included in any actual reconstruction sequence.

Let then involve the HI reco contact, @mandrenguyen :

  • I already noticed in my comment for the previous version of this PR that already the original formulation of this PR was bugged; I don't think this update is actually fixing it
  • I don't see this Reconstruction_hiSignal_cff.py ever used in the configs in CMSSW
  • Do you have any suggestion (based on a possible usage of this python snippet) for fixing it? If this file isn't really used anywhere, wouldn't it be more convenient to profit of this PR in order to completely remove it, instead of spending more efforts in trying to fix it?

@perrotta
Copy link
Contributor

@mandrenguyen did you have time to check whether RecoHI/Configuration/python/Reconstruction_hiSignal_cff.py is needed to remain in the release?

If it is not needed, I would suggest @jeongeun to profit of this PR and remove it; if we decide not to remove it, instead, please Matt suggest some fix for it (see also previous discussions in #32386 (comment) and https://github.com/cms-sw/cmssw/pull/32171/files#r526776262)

@mandrenguyen
Copy link
Contributor

@perrotta Sorry for the slow response. This cff is deprecated and can be removed from the release.

@perrotta
Copy link
Contributor

@perrotta Sorry for the slow response. This cff is deprecated and can be removed from the release.

Thank you @mandrenguyen
@jeongeun please remove RecoHI/Configuration/python/Reconstruction_hiSignal_cff.py: then this PR will be ready to get approved (after the tests)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32386/20370

@cmsbuild
Copy link
Contributor

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

@perrotta
Copy link
Contributor

please test

@perrotta
Copy link
Contributor

  • Reco comparison results: 85 differences found in the comparisons

I think I (wrongly) suggested to remove too many PSet's, and modify the original ones with dict(...) instead: sorry for that.
I'll try to list in the following what I would suggest to revert, but please check if there are more

Copy link
Contributor

@perrotta perrotta left a comment

Choose a reason for hiding this comment

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

The differences wrt the baseline should originate from the updated configuration in
HILowPtConformalPixelTracks_cfi.py
I'd suggest reverting a few more PSet's, for safety.

maxEta = cms.double(100.),
trackQuality = cms.string("any"),
numTracksThreshold = cms.int32(2)
TkFilterParameters = dict(
Copy link
Contributor

Choose a reason for hiding this comment

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

This is perhaps correct, but for safety (not all parameters are re-defined here) I'd revert it to a PSet, as before

HitProducer = cms.string('siPixelRecHits'),
TTRHBuilder = cms.string('WithTrackAngle'),
hiConformalPixelTracksPhase1SeedLayers = lowPtQuadStepSeedLayers.clone(
BPix = dict(
Copy link
Contributor

Choose a reason for hiding this comment

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

This should get reverted to PSet

HitProducer = 'siPixelRecHits',
TTRHBuilder = 'WithTrackAngle',
),
FPix = dict(
Copy link
Contributor

Choose a reason for hiding this comment

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

This should get reverted to PSet

'BPix1+FPix1_pos', 'BPix1+FPix1_neg',
'BPix2+FPix1_pos', 'BPix2+FPix1_neg',
'FPix1_pos+FPix2_pos', 'FPix1_neg+FPix2_neg'],
BPix = dict(
Copy link
Contributor

Choose a reason for hiding this comment

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

This should get reverted to PSet

TTRHBuilder = cms.string('TTRHBuilderWithoutAngle4PixelPairs'),
HitProducer = cms.string('siPixelRecHits'),
),
FPix = dict(
Copy link
Contributor

Choose a reason for hiding this comment

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

This should get reverted to PSet

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32386/20434

@cmsbuild
Copy link
Contributor

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

@perrotta
Copy link
Contributor

please test
(let see as it works now)

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8a06e1/11739/summary.html
CMSSW: CMSSW_11_3_X_2020-12-15-2300/slc7_amd64_gcc900

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 8 differences found in the comparisons
  • DQMHistoTests: Total files compared: 36
  • DQMHistoTests: Total histograms compared: 2747284
  • DQMHistoTests: Total failures: 12
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 2747249
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.004 KiB( 35 files compared)
  • DQMHistoSizes: changed ( 312.0 ): -0.004 KiB MessageLogger/Warnings
  • Checked 153 log files, 37 edm output root files, 36 DQM output files

@perrotta
Copy link
Contributor

+1

  • Dropped type specifications from cloned/modifed modules in pythons configs, as stated in the PR description
  • Also a deprecated (and likely bugged) configuration has been removed: RecoHI/Configuration/python/Reconstruction_hiSignal_cff.py
  • Jenkins tests pass and show no differences in reco outputs wrt the baseline

@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)

@silviodonato
Copy link
Contributor

+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.

5 participants