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-hgx124 Split the SD for HGCal for silicon and scintillators #23772

Merged
merged 2 commits into from Jul 12, 2018

Conversation

bsunanda
Copy link
Contributor

Allow fiducial volume cuts in silicon and scintillator detectors of HGCal

@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
Geometry/HGCalSimData
SimG4CMS/Calo
SimG4Core/Application

@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 Jul 10, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/29063/console Started: 2018/07/10 16:14

double dx = std::abs(xx-hgpar_->waferPosX_[k]);
double dy = std::abs(yy-hgpar_->waferPosY_[k]);
if (dx <= rmax_ && dy <= hexside_) {
if ((dy <= 0.5*hexside_) || (dx*tan30deg_ <= (hexside_-dy))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

these two if statements could be combined

<< rr-zz/std::sinh(hgpar_->etaMinBH_+ieta*cell)
<< ":" << zz/std::sinh(hgpar_->etaMinBH_+(ieta-1)*cell)-rr;
#endif
return ((dist > rr*dphi) ? rr*dphi : dist);
Copy link
Contributor

Choose a reason for hiding this comment

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

return std::min(rr*dphi,dist);

@@ -1067,6 +1148,30 @@ bool HGCalDDDConstants::waferInLayerTest(int wafer, int lay, bool full) const {
return in;
}

bool HGCalDDDConstants::waferGlobal2Local(double& xx, double& yy, int& wafer,
int& celltyp) const {
std::cout << xx <<":" << yy << ":" << wafer << ":" << celltyp << ":" << hgpar_ << "\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

remove cout

std::cout << xx <<":" << yy << ":" << wafer << ":" << celltyp << ":" << hgpar_ << "\n";
int sizew = (int)(hgpar_->waferPosX_.size());
wafer = sizew;
for (int k=0; k<sizew; ++k) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks similar to the loop in distFromEdgeHex(); can it be put in a common function?

<< " top Level " << levelT1_ << ":" << levelT2_;
#endif

numberingScheme_ = new HGCalNumberingScheme(*hgcons_,mydet_,nameX_);
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like a potential memory leak, use a smart pointer (also fix it in other HGCal SD classes)

numberingScheme_ = new HGCalNumberingScheme(*hgcons,mydet_,nameX_);
if (rejectMB_ && (!isScint_))
mouseBite_ = new HGCMouseBite(*hgcons,angles_,mouseBiteCut_,waferRot_);
numberingScheme_ = new HGCalNumberingScheme(*hgcons_,mydet_,nameX_);
Copy link
Contributor

Choose a reason for hiding this comment

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

smart pointers here as well

@cmsbuild
Copy link
Contributor

-1

Tested at: ec638ad

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-23772/29063/summary.html

I found follow errors while testing this PR

Failed tests: RelVals

  • RelVals:

The relvals timed out after 2 hours.

@cmsbuild
Copy link
Contributor

Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped)

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 10, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/29068/console Started: 2018/07/11 00:04

@cmsbuild
Copy link
Contributor

Pull request #23772 was updated. @civanch, @Dr15Jones, @ianna, @mdhildreth, @cmsbuild, @kpedro88 can you please check and sign again.

@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-23772/29068/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 31
  • DQMHistoTests: Total histograms compared: 2899490
  • DQMHistoTests: Total failures: 2
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2899298
  • DQMHistoTests: Total skipped: 190
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 30 files compared)
  • Checked 128 log files, 14 edm output root files, 31 DQM output files

@@ -242,10 +243,88 @@ double HGCalDDDConstants::cellSizeHex(int type) const {
return cell;
}

double HGCalDDDConstants::distFromEdgeHex(double x, double y, double z) const {
Copy link
Contributor

Choose a reason for hiding this comment

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

@bsunanda - please, add a comment what is calculated here. Is the point(x,y) inside of the polygon?

Copy link
Contributor

Choose a reason for hiding this comment

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

@bsunanda it takes longer for me to check the code without comment on what it suppose to do.

@bsunanda
Copy link
Contributor Author

bsunanda commented Jul 11, 2018 via email

@kpedro88
Copy link
Contributor

+upgrade

@bsunanda
Copy link
Contributor Author

@ianna @civanch Can you approve this PR so that I can make the subsequent PR's

@civanch
Copy link
Contributor

civanch commented Jul 11, 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

it affects only Phase2, g4SimHits is changed only for SD of HGCal.

@cmsbuild cmsbuild merged commit 464e822 into cms-sw:master Jul 12, 2018
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