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-hgx176 Fix bug for HGCal corners #25525

Merged
merged 1 commit into from
Jan 23, 2019
Merged

Conversation

bsunanda
Copy link
Contributor

Uses the corner calculation of new HGCal cells

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@bsunanda
Copy link
Contributor Author

@cmsbuild Please test

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 19, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/32279/console Started: 2018/12/19 21:54

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @bsunanda for master.

It involves the following packages:

Geometry/HGCalGeometry

@civanch, @Dr15Jones, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @kpedro88 can you please review it and eventually sign? Thanks.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3153717
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3153512
  • DQMHistoTests: Total skipped: 204
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 32 files compared)
  • Checked 137 log files, 14 edm output root files, 33 DQM output files

@kpedro88
Copy link
Contributor

@bsunanda is this expected to introduce any differences in the comparisons?

@bsunanda
Copy link
Contributor Author

@kpedro88 I don't think so. It only changes the corners which are used only in visualization (I believe). These are indeed bug fixes. Earlier corner calculation was wrong as pointed out by Alex

@kpedro88
Copy link
Contributor

+upgrade

@fabiocos
Copy link
Contributor

fabiocos commented Jan 7, 2019

the added test configuration runs smoothly

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 7, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 7, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 7, 2019

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 33
  • DQMHistoTests: Total histograms compared: 3153717
  • DQMHistoTests: Total failures: 13
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3153500
  • DQMHistoTests: Total skipped: 204
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 32 files compared)
  • Checked 137 log files, 14 edm output root files, 33 DQM output files

co[i] = m_cellVec[cellIndex].getPosition(lcoord);
float dx = k_fac2*m_cellVec[cellIndex].param()[FlatHexagon::k_r];
float dy = k_fac1*m_cellVec[cellIndex].param()[FlatHexagon::k_R];
float dz =-id.zSide*m_cellVec[cellIndex].param()[FlatHexagon::k_dZ];
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like dx, dy, and dz are not changed after initialization. It would be good to make them const. Same for lines 303-305.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is an incorrect judgement. Though dx, dy, dz may be the same for a large number of cells, they will be different for all cells. We have so called fine/coarse cells and also with different depletion thickness. Please sign this PR

Copy link
Contributor

Choose a reason for hiding this comment

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

I was merely suggesting changing, for example, line 316 from:
float dx = k_fac2*m_cellVec[cellIndex].param()[FlatHexagon::k_r];
to
const float dx = k_fac2*m_cellVec[cellIndex].param()[FlatHexagon::k_r];
but not moving or otherwise changing the definition of dx. dx from line 316 is read once and then goes out of scope. It is not changed, so it is a constant.
Our CMS coding guidelines say that all variables should be declared const unless they need to be changed (Rule 7.5). The coding guidelines are still under review right now, so it would be good for all developers to take a look at them to see if any changes are needed.
It's a very minor issue. The const declaration would just help someone reading the code understand that dx, dy, and dz don't change after being initialized.

@kpedro88
Copy link
Contributor

@bsunanda please respond to the code review

@fabiocos
Copy link
Contributor

@bsunanda when do you expect an update of this PR?

@bsunanda
Copy link
Contributor Author

I do not think we need further updates except a sign-off by Carl. He misunderstood some of the code.

@cvuosalo
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

@fabiocos
Copy link
Contributor

code-checks

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25525/8150

  • This PR adds an extra 24KB to repository

@fabiocos
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit bd07a6d into cms-sw:master Jan 23, 2019
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