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

Phase2-hg302 Bug fix for the corners and replacing cout with message logger services #37330

Merged
merged 2 commits into from Apr 3, 2022

Conversation

bsunanda
Copy link
Contributor

@bsunanda bsunanda commented Mar 24, 2022

PR description:

Bug fix for the corners and replacing cout with message logger services. The corner calculation for the rotated layers was wrong. The corner calculation is useful for firework studies

PR validation:

Use the runTheMatrix test workflows

if this PR is a backport please specify the original PR and why you need to backport that PR:

Nothing special - may need to bckport the bug fixes in HGCal geometry

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37330/28974

  • This PR adds an extra 48KB to repository

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37330/28975

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @bsunanda (Sunanda Banerjee) for master.

It involves the following packages:

  • Geometry/HGCalCommonData (geometry, upgrade)
  • Geometry/HGCalGeometry (geometry, upgrade)

@civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @AdrianoDee, @srimanob can you please review it and eventually sign? Thanks.
@fabiocos this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@bsunanda
Copy link
Contributor Author

@cmsbuild Please test

@perrotta
Copy link
Contributor

@bsunanda could you please quickly summarize in the PR description which is the bug that you aim fixing with this PR?

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9b2b9c/23343/summary.html
COMMIT: 0acf376
CMSSW: CMSSW_12_4_X_2022-03-23-2300/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/37330/23343/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3517 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3695650
  • DQMHistoTests: Total failures: 51426
  • DQMHistoTests: Total nulls: 63
  • DQMHistoTests: Total successes: 3644139
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 204 log files, 45 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@bsunanda
Copy link
Contributor Author

@cvuosalo @srimanob Please sign this PR. It is worthwhile to backport the bug fixing part to 12_3_X

@srimanob
Copy link
Contributor

@cmsbuild please test

This is to wipe out unexpected failure comparison.

@srimanob
Copy link
Contributor

Hi @bsunanda
As you mentioned in the PR description, The corner calculation for the rotated layers was wrong., do we expect to see change(s) in PR test result, or what do you expect to see? Thanks for clarification.

In the future, I would suggest not to couple between bug-fix and technical PR (i.e. message logger replacement) together. This decouple PRs will keep a clear between bug-fix PR and technical PR.

@srimanob
Copy link
Contributor

type bug-fix

@bsunanda
Copy link
Contributor Author

When there is a bug fix, it is expected to change the predictions.

@perrotta
Copy link
Contributor

ping bot

@perrotta
Copy link
Contributor

When there is a bug fix, it is expected to change the predictions.

@bsunanda it would help (and speed up) the review process if, when a bug is reported and a PR to fix it is submitted, you list:

  • where is that bug, and how did you fix it
  • what was the effect of that bug
  • what is the difference in outputs expected after the fix

Only saying that "when there is a bug fix, it is expected to change the predictions" does not help in judging whether the effects of the fix are as wanted, or if there are any unplanned and unwanted side effects instead.

@bsunanda
Copy link
Contributor Author

The bug was in the treatment of rotated layers. In computing the corner coordinates, it first retrieves the cell position in the local frame of the wafer, then computes the corner coordinates in that local frame and finally apply the transformation to global frame. In the earlier version computation of the cell position in the local frame had an error (some rotation was applied for rotated layers). Clearly this used to lead to wrong results. Now this is avoided by inhibiting rotation for this computation. The implication of this on the output should be there, but cannot judge how much it will be

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9b2b9c/23482/summary.html
COMMIT: 0acf376
CMSSW: CMSSW_12_4_X_2022-03-28-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/37330/23482/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3589460
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3589436
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 200 log files, 45 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@cvuosalo
Copy link
Contributor

+1

@srimanob
Copy link
Contributor

srimanob commented Apr 3, 2022

+Upgrade

This is a bug fix PR for the rotated layers of HGCAL. We need to follow up from the validation result from the next round of Phase-2 validation.
FYI @cms-sw/pdmv-l2

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 3, 2022

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)

@@ -71,6 +71,7 @@ class HGCalGeometry final : public CaloSubdetectorGeometry {
CaloSubdetectorGeometry::IVec& dinsVector) const override;

GlobalPoint getPosition(const DetId& id) const;
Copy link
Contributor

Choose a reason for hiding this comment

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

having only one getPosition method with the bool debug = false as default would have done the same without duplication

@perrotta
Copy link
Contributor

perrotta commented Apr 3, 2022

+1

  • Effect of the bug are not visible in the bot test outputs: they would be probably observed in a larger scale validation campaign

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

5 participants