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-hgx108 Fix a bug for numbering HGCal #22968

Merged
merged 2 commits into from Apr 19, 2018

Conversation

bsunanda
Copy link
Contributor

It used to access elements beyond boundary in coverting sim to reco detId

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

Geometry/HGCalCommonData
SimG4CMS/Calo

@civanch, @Dr15Jones, @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

@cmsbuild Please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 15, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/27497/console Started: 2018/04/15 23:23

@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-22968/27497/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 9 differences found in the comparisons
  • DQMHistoTests: Total files compared: 29
  • DQMHistoTests: Total histograms compared: 2492536
  • DQMHistoTests: Total failures: 4
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2492356
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 23 files compared)
  • Checked 119 log files, 9 edm output root files, 29 DQM output files

@@ -109,6 +105,12 @@ std::pair<int,int> HGCalDDDConstants::assignCellHexagon(float x,
double xx(x), yy(y);
//First the wafer
int wafer = cellHex(xx, yy, rmax_, hgpar_->waferPosX_, hgpar_->waferPosY_);
if (wafer < 0 || wafer >= (int)(hgpar_->waferTypeT_.size()))
edm::LogWarning("HGCalGeom") << "Wafer " << wafer << ":"
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe this warning message could be more instructive instead of just saying error?

@@ -132,6 +134,12 @@ HGCalParameters::hgtrap HGCalDDDConstants::getModule(unsigned int indx,

HGCalParameters::hgtrap mytr;
if (hexType) {
if (indx >= hgpar_->waferTypeL_.size())
edm::LogWarning("HGCalGeom") << "Index " << indx << ":"
Copy link
Contributor

Choose a reason for hiding this comment

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

similarly here

#endif
if (ok) {
if (moditr->second >= 0) {
if (mod >= (int)(hgpar_->waferTypeT_.size()))
edm::LogWarning("HGCalGeom") << "Module " << mod << ":"
Copy link
Contributor

Choose a reason for hiding this comment

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

similarly here

#endif
return ok;
}

bool HGCalDDDConstants::isValidCell(int lay, int wafer, int cell) const {

if (wafer >= (int)(hgpar_->waferPosX_.size()))
edm::LogWarning("HGCalGeom") << "Valid Wafer " << wafer << ":"
Copy link
Contributor

Choose a reason for hiding this comment

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

similarly here

@@ -389,6 +411,12 @@ std::pair<int,int> HGCalDDDConstants::simToReco(int cell, int lay, int mod,
std::pair<int,float> index = getIndex(lay, false);
int i = index.first;
if (i < 0) {
edm::LogWarning("HGCalGeom") << "Wrong Laye # " << lay;
Copy link
Contributor

Choose a reason for hiding this comment

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

typo Laye -> Layer

@kpedro88
Copy link
Contributor

other comments:

  • in the future, it would be easier to understand the changes if the actual bug fix were in a separate commit from changes to the various debug messages
  • the tests show this message being printed frequently in step1 for Phase2 workflows:
%MSG-w HGCalGeom:  OscarMTProducer:g4SimHits 16-Apr-2018 00:08:02 CEST  Run: 1 Event: 1
Cannot get wafer type corresponding to -247.4:-306.847     -24.74:-30.6847
%MSG

does the actual geometry need to be revised?

@bsunanda
Copy link
Contributor Author

@kpedro88 I make the bug fix which will not create bad DetId's. I am not going to change this geometry right now. I shall make the warnings a bit more explicit.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 29
  • DQMHistoTests: Total histograms compared: 2492536
  • DQMHistoTests: Total failures: 4
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2492356
  • DQMHistoTests: Total skipped: 176
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 23 files compared)
  • Checked 119 log files, 9 edm output root files, 29 DQM output files

@bsunanda
Copy link
Contributor Author

@kpedro88 @ianna @civanch Please approve this PR

@kpedro88
Copy link
Contributor

+1
messages no longer observed in step1
memory error no longer observed in valgrind

@ianna
Copy link
Contributor

ianna commented Apr 19, 2018

+1

@civanch
Copy link
Contributor

civanch commented Apr 19, 2018

+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

+1

@cmsbuild cmsbuild merged commit 713132b into cms-sw:master Apr 19, 2018
@makortel
Copy link
Contributor

Now phase2 workflow(s) are full of

%MSG-w HGCalGeom:  MixingModule:mix 20-Apr-2018 07:57:46 CEST Run: 1 Event: 2
Invalid Wafer # 669should be < 669 ***** ERROR *****
%MSG
%MSG-w HGCalGeom:  MixingModule:mix 20-Apr-2018 07:57:46 CEST Run: 1 Event: 2
Invalid Wafer # 669should be < 669 ***** ERROR *****
%MSG

https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc630/CMSSW_10_2_X_2018-04-19-2300/pyRelValMatrixLogs/run/20261.98_NuGun+SingleNuE10_cf_2023D17PU_PremixHLBeamSpotFullPU_Premix/step1_NuGun+SingleNuE10_cf_2023D17PU_PremixHLBeamSpotFullPU_Premix.log

The example is from premixing stage1 workflow because at the moment it is the only finished phase2 workflow for CMSSW_10_2_X_2018-04-19-2300. The printouts could be specific to premixing, but my first though is that the customizations on top of standard DIGI+classical pileup mixing should not cause these.

Something needs to be fixed in the downstream code I presume?

@bsunanda
Copy link
Contributor Author

bsunanda commented Apr 20, 2018 via email

@kpedro88
Copy link
Contributor

We should really update the minbias input sample. Maybe with pre2 relvals?

@makortel
Copy link
Contributor

Ok, so the printouts are specific to the pileup GEN-SIM? And I see @kpedro88 was faster than me to suggest updating the minbias input.

In this case I'm personally fine with keeping the printouts as the premixing stage1 is the only affected workflow of standard matrix, and hopefully we'd get the new GEN-SIM rather soon.

@makortel
Copy link
Contributor

We should really update the minbias input sample. Maybe with pre2 relvals?

Let's inform PdmV @fabozzi @prebello @GurpreetSinghChahal then that we'd ask 2023D17 MinBias GEN-SIM to be produced with 10_2_0_pre2 and subsequently the corresponding dataset template to updated in relval_steps.py

defaultDataSets['2023D17']='CMSSW_9_3_2-93X_upgrade2023_realistic_v2_2023D17noPU-v'

@fabozzi
Copy link
Contributor

fabozzi commented Apr 20, 2018

@jnsandhya : please note this request of updating Phase2 GENSIM in next 10_1_0_pre2 release

@jnsandhya
Copy link
Contributor

This has now been submitted as a new PR here:
#23095

@makortel
Copy link
Contributor

The warning messages #22968 (comment) are indeed gone with the 10_1_0_pre2 GEN-SIM for pileup.

@jnsandhya
Copy link
Contributor

Just to avoid confusion, the string is updated with 10_2_0_pre2.

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

9 participants