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
Fix JetHTAnalyzer::fillDescriptions
#40677
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40677/34025
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
5d42693
to
9b92404
Compare
9b92404
to
90f9cb9
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40677/34027
|
A new Pull Request was created by @mmusich (Marco Musich) for master. It involves the following packages:
@malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
type bug-fix |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-761149/30370/summary.html Comparison SummarySummary:
|
+alca |
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, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
@mmusich a simpler way to be sure that all parameters stay in sinc (and to check that by mistake you did not misspelled any of their names also) is to replace cmssw/Alignment/OfflineValidation/python/TkAlAllInOneTool/JetHT_cfg.py Lines 268 to 277 in 4dd9638
from Alignment.OfflineValidation.jetHTAnalyzer_cfi.py import jetHTAnalyzer as _jetHTAnalyzer
process.jetHTAnalyzer = _jetHTAnalyzer.clone(
vtxCollection = "offlinePrimaryVerticesFromRefittedTrks",
trackCollection ="TrackRefitter",
triggerResults = ("TriggerResults","","HLT"),
printTriggerTable = printTriggers,
minVertexNdf = 10.,
minVertexMeanWeight = 0.5,
profilePtBorders = ptBorders,
iovList = iovListList
) (which is why the release managers tend to bother the proponents of the PRs to make them remove type specifications from the cloned configs in python...) |
+1 |
Right, let's do it for all the configuration files in this package another time |
Also, for the record, in addition to have wrong types declared in the configuration, the plugin had a mismatch between the type expected in the constructor and the one declared in |
I am not against your unit test, which is welcome. I'm just sponsorizing a cleaner way of writing configs, which may prevent quite several possible mistakes, but not all (in particolar, it cannot fix bugs in the c++ code as the one that you are reporting) |
for the record, that's done at #40695 |
PR description:
It was reported by @jusaviin that the declaration of the configuration parameters in the
fillDescriptions
method of theJetHTAnalyzer
cmssw/Alignment/OfflineValidation/plugins/JetHTAnalyzer.cc
Lines 334 to 339 in 4dd9638
plugins doesn't agree with their usage in the all-in-one configuration:
cmssw/Alignment/OfflineValidation/python/TkAlAllInOneTool/JetHT_cfg.py
Lines 272 to 276 in 4dd9638
This results in runtime failures.
This PR fixes the issue in commit 7cc01f8
I profit of this to update the unit tests
testTrackAnalyzers
in order to test that the two do not go out of synch again.PR validation:
Relies on the existing unit tests (
scram b runtests_testTrackAnalysis
)If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
N/A