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 {HiEgammaAlgos,HiJetAlgos,HiMuonAlgos} #32031

Merged
merged 3 commits into from Nov 6, 2020

Conversation

jeongeun
Copy link
Contributor

@jeongeun jeongeun commented Nov 5, 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 were PR#31162,PR#31243,PR#31332, PR#31389, PR#31523, PR#31538, PR#31748, PR#31784, PR#31881)

In this PR, total 17 files changed.

  • RecoHI/HiEgammaAlgos : 2 files
  • RecoHI/HiJetAlgos : 6 files
  • RecoHI/HiMuonAlgos : 9 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 Nov 5, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32031/19580

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

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

It involves the following packages:

RecoHI/HiEgammaAlgos
RecoHI/HiJetAlgos
RecoHI/HiMuonAlgos

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@yslai, @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

@slava77
Copy link
Contributor

slava77 commented Nov 5, 2020

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

+1
Tested at: 0e1298a
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1839eb/10519/summary.html
CMSSW: CMSSW_11_2_X_2020-11-04-2300
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

Comparison job queued.

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.

Besides what listed inline:

  • missing etaRanges in the modifier within RecoHI/HiJetAlgos/python/hiFJRhoProducer.py

jetPtMin = 10,
Ghost_EtaMax = 6.5,
jetPtMin = 10,
Ghost_EtaMax = 6.5,
# this parameter is missing from PFJetParameters for some reason
Copy link
Contributor

Choose a reason for hiding this comment

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

The parameter is not missing, in fact (and you can modify it right below): therefore this comment line can be misleading. Please remove

@@ -65,6 +65,7 @@
rParam = cms.double(0.5)
)
akPu5CaloJets.radiusPU = 0.5
akPu5CaloJets.puPtMin = cms.double(10)

akPu7CaloJets = cms.EDProducer(
Copy link
Contributor

Choose a reason for hiding this comment

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

@mandrenguyen please notice that akPu7CaloJets is defined twice in this config, and the two configurations differ for the value of the parametes radiusPU. Please provide advise to @jeongeun about how to fix it.
I would remove the explicit definition of akPu7CaloJets in this L70 and stick on the one cloned from akPu5CaloJets right below: but then one has to decide which value of radiusPU. one has to keep

@@ -65,6 +65,7 @@
rParam = cms.double(0.5)
)
akPu5CaloJets.radiusPU = 0.5
akPu5CaloJets.puPtMin = cms.double(10)
Copy link
Contributor

Choose a reason for hiding this comment

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

drop type spec

subtractorName = "MultipleAlgoIterator",
src = 'PFTowers',
doAreaFastjet = False,
puPtMin = cms.double(25)
Copy link
Contributor

Choose a reason for hiding this comment

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

drop type spec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@perrotta I got TypeError when I drop it. TypeError: puPtMin does not already exist, so it can only be set to a CMS python configuration type

radiusPU = cms.double(0.5),
src = "hiPFCandCleanerforJets",
jetPtMin = 15.0,
nSigmaPU = cms.double(1.0),
Copy link
Contributor

@perrotta perrotta Nov 5, 2020

Choose a reason for hiding this comment

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

The parameters nSigmaPU and radiusPU are commented out in the PFJetParameters defined in RecoJets/JetProducers/python/PFJetParameters_cfi.py because if doPUOffsetCorr "is false, these are not read".

I think that a cleaner solution would be to uncomment those two parameter in RecoJets/JetProducers/python/PFJetParameters_cfi.py (which are not used there, anyhow) so that you can drop type spec here. (Please notice that those two parameters exist anyhow even if not explicitly written in the configuration, because they are defined in the fillDescriptions method of VirtualJetProducer, with the same numerical values defined in the lines commented out in PFJetParameters_cfi.py)

overrideTrkQuals = cms.InputTag('hiRegitMuPixelPairStepSelector','hiRegitMuPixelPairStep'),
trackClassifier = cms.InputTag(''),
TrackQuality = cms.string('tight')
#oldClusterRemovalInfo = cms.InputTag("hiRegitMuPixelPairStepClusters"),
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove commented out duplicate lines


# fitting: feed new-names
hiRegitMuMixedTripletStepTracks = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTracks.clone(
hiRegitMuMixedTripletStepTracks = RecoTracker.IterativeTracking.MixedTripletStep_cff.mixedTripletStepTracks.clone(
AlgorithmName = cms.string('hiRegitMuMixedTripletStep'),
Copy link
Contributor

Choose a reason for hiding this comment

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

drop type spec

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32031/19591

  • This PR adds an extra 32KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 6, 2020

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

@perrotta
Copy link
Contributor

perrotta commented Nov 6, 2020

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 6, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 6, 2020

+1
Tested at: 3a46e5e
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1839eb/10544/summary.html
CMSSW: CMSSW_11_2_X_2020-11-05-2300
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 6, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 6, 2020

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1839eb/10544/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2544144
  • DQMHistoTests: Total failures: 9
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2544113
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@perrotta
Copy link
Contributor

perrotta commented Nov 6, 2020

+1

  • Types dropped from clomed or modified configs as planned
  • Jenkins tests pass

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 6, 2020

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)

akCs4PFJets.jetPtMin = cms.double(0.0)
akCs4PFJets.src = 'particleFlow'
akCs4PFJets.doAreaFastjet = True
akCs4PFJets.jetPtMin = 0.0
akCs4PFJets.useExplicitGhosts = cms.bool(True)
Copy link
Contributor

Choose a reason for hiding this comment

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

have you tried akCs4PFJets.useExplicitGhosts = True?

Copy link
Contributor

Choose a reason for hiding this comment

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

have you tried akCs4PFJets.useExplicitGhosts = True?

The useExplicitGhosts parameter is missing in the akCs4PFJets config, contrarily to the other ones there which can therefore get modified without defining the type

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

None yet

6 participants