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

Run3-TB42 Correct numbering for AHCal so that |row|/|column| can exceed 10 #27708

Merged
merged 1 commit into from
Aug 8, 2019

Conversation

bsunanda
Copy link
Contributor

@bsunanda bsunanda commented Aug 7, 2019

PR description:

The earlier code was restricting row-column number for AHCal cell to be within -9 to +9. In fact it has to be between -12 to +12. The code is corrected to allow that

PR validation:

Tested with scripts for TestBeam simulation

if this PR is a backport please specify the original PR:

Nothing special

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2019

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2019

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27708/11327

  • This PR adds an extra 16KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2019

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

It involves the following packages:

Geometry/HGCalCommonData
SimG4CMS/HGCalTestBeam

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

cms-bot commands are listed here

@bsunanda
Copy link
Contributor Author

bsunanda commented Aug 7, 2019

@cmsbuild Please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/1869/console Started: 2019/08/07 15:58

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 7, 2019

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-30dbf4/1869/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: 2715989
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2715659
  • DQMHistoTests: Total skipped: 329
  • 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

@civanch
Copy link
Contributor

civanch commented Aug 7, 2019

+1

@fabiocos
Copy link
Contributor

fabiocos commented Aug 8, 2019

+1

@kpedro88 this looks relatively simple to me

int incol = ((touch->GetReplicaNumber(0)) % 100);
int inrow = ((touch->GetReplicaNumber(0)) / 100) % 100;
int jncol = ((touch->GetReplicaNumber(0)) / 10000) % 10;
int jnrow = ((touch->GetReplicaNumber(0)) / 100000) % 10;
Copy link
Contributor

Choose a reason for hiding this comment

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

These factors of 10 are magic numbers. The values in DDAHcalModuleAlgo.cc must match those in AHCalSD.cc for this code to work right. The best way to ensure that is for both files to use the same constants. Since this PR is bug fix, this issue doesn't need to be fixed now, but it would be good to clean it up eventually.

Copy link
Contributor

Choose a reason for hiding this comment

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

@cvuosalo I agree, on the other side this was the situation even before, I believe the adjustment using named constants can be factorized

@fabiocos
Copy link
Contributor

fabiocos commented Aug 8, 2019

merge

@cmsbuild cmsbuild merged commit 15c0eb8 into cms-sw:master Aug 8, 2019
@kpedro88
Copy link
Contributor

+upgrade

@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 be automatically merged.

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