-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Changes in HGCal geometry vs flatfile comparison #36174
Conversation
A new Pull Request was created by @yulunmiao for CMSSW_12_1_X. It involves the following packages:
@emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@yulunmiao Please write a meaningful PR title. Moreover, make a forward PR in master (12_2_X) |
Hi @qliphy , thank you for your comments, I have made the changes. |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36174/26754
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
@yulunmiao Since this PR moved to master, before we can test it you have now to apply the code-format fixes, as explained in #36174 (comment) |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36174/26761
|
Pull request #36174 was updated. @emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please check and sign again. |
waferInfo.shapeCode = 0; | ||
if (shapeStr == "a") | ||
waferInfo.shapeCode = 4; | ||
if (shapeStr == "am") |
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.
what prevents all these ifs to be else if?
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.
THese should be replaced by else if too
waferShapeCode = 4; | ||
if (waferShapeStr == "3") | ||
waferShapeCode = 5; | ||
if (waferShapeStr == "4") |
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.
Same comment here: why not else if?
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.
Not migrated yet
if (waferShapeStr == "1") | ||
waferShapeCode = 4; | ||
if (waferShapeStr == "2") | ||
waferShapeCode = 4; |
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.
Same assignment than 2 lines above?
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.
Again
if (waferShapeStr == "3") | ||
waferShapeCode = 5; | ||
if (waferShapeStr == "4") | ||
waferShapeCode = 5; |
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.
Same assignment than two lines above, these ifs could be merged, right?
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.
Same
@yulunmiao @bsunanda @imranyusuff I have a request. In the mapping of strings to wafer types, can you use the names in the enum .
do something like
etc. which is easier for lay people to understand and not get confused by the fact that a different numbering scheme is used outside CMSSW (cf slide 3). |
@pfs Thanks for you comment. I've made the changes |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36174/27041 |
Pull request #36174 was updated. @emanueleusai, @ahmad3213, @cmsbuild, @jfernan2, @pmandrik, @pbo0, @rvenditti can you please check and sign again. |
@cmsbuild Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-75d92e/20901/summary.html Comparison SummarySummary:
|
+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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Changes are made in Validation/HGCalValidation/plugins/HGCalWaferValidation.cc
to allow reading wafer information from new flat file format and compare to geometry.
and in Validation/HGCalValidation/test/python/testHGCalWaferValidation_cfg.py to allow take geometry D86 as argument and can specify certain flat file via the path to it.
More details can be found here https://indico.cern.ch/event/1095051/contributions/4610617/attachments/2344534/3997691/GeometryD86vsflatfile_yulunmiao.pdf
PR validation:
Checks using geometry D83 with old flat file format and geometry D86 with new flat file format is done, no bug is found in code