-
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 RecoHI {HiEgammaAlgos,HiJetAlgos,HiMuonAlgos} #32031
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32031/19580
|
A new Pull Request was created by @jeongeun (JeongEun Lee) for master. It involves the following packages: RecoHI/HiEgammaAlgos @perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
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.
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 |
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.
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( |
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.
@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) |
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.
drop type spec
subtractorName = "MultipleAlgoIterator", | ||
src = 'PFTowers', | ||
doAreaFastjet = False, | ||
puPtMin = cms.double(25) |
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.
drop type spec
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.
@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), |
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.
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 VirtualJetProduce
r, 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"), |
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.
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'), |
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.
drop type spec
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32031/19591
|
please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+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) |
akCs4PFJets.jetPtMin = cms.double(0.0) | ||
akCs4PFJets.src = 'particleFlow' | ||
akCs4PFJets.doAreaFastjet = True | ||
akCs4PFJets.jetPtMin = 0.0 | ||
akCs4PFJets.useExplicitGhosts = cms.bool(True) |
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.
have you tried akCs4PFJets.useExplicitGhosts = True
?
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.
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
+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 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.
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.