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

Geant4 sensitive detector cleanup-2 #21739

Merged
merged 7 commits into from Jan 8, 2018

Conversation

civanch
Copy link
Contributor

@civanch civanch commented Dec 17, 2017

Continue clean-up of Geant4 sensitive detectors. Now only classes related to Tracker are modified:

  1. use const pointers and reference to Geant4 objects
  2. use const reference for CMSSW objects
  3. abort() replaced by cms::Exception
  4. compute values, which are used for printout and for debug only, if this mode enabled
  5. removed checks that point is inside sensitive detector - this condition should be true by construction
  6. use types more consistently
  7. removed unused classes, headers and methods
    In this classes were no problems, so this clean-up should not change any result.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@civanch
Copy link
Contributor Author

civanch commented Dec 17, 2017

please test

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 17, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/25147/console Started: 2017/12/17 23:46

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @civanch (Vladimir Ivantchenko) for master.

It involves the following packages:

SimG4CMS/Tracker
SimG4Core/Application
SimG4Core/Physics
SimG4Core/SensitiveDetector

@cmsbuild, @civanch, @mdhildreth 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

private:
TouchableToHistory * ts;
TouchableToHistory * ts;
Copy link
Contributor

Choose a reason for hiding this comment

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

what about unique_ptr or even just by holding it value?
the copy behavior of this class shall be better constrained...
btw: what is the real difference between a TrackerG4SimHitNumberingScheme and a TouchableToHistory ??

G4TrackToParticleID * myG4TrackToParticleID;
TrackInformation* getOrCreateTrackInformation(const G4Track *);
double rTracker2; // tracker volume R^2
double rTracker; // tracker volume R
Copy link
Contributor

Choose a reason for hiding this comment

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

were float, now double. why?

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 compared with double, not part of hit, so saving of memory is not important.

@VinInn
Copy link
Contributor

VinInn commented Dec 17, 2017

please consider to make classes "final" is it applies

@@ -1,6 +1,6 @@
#include "SimG4CMS/Tracker/interface/TrackerFrameRotation.h"
#include "G4SystemOfUnits.hh"

Local3DPoint TrackerFrameRotation::transformPoint(Local3DPoint & point,G4VPhysicalVolume * v=nullptr) const {
Local3DPoint TrackerFrameRotation::transformPoint(const Local3DPoint & point,const G4VPhysicalVolume*) const {
return Local3DPoint(point.x()/cm,point.y()/cm,point.z()/cm);
Copy link
Contributor

Choose a reason for hiding this comment

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

we should find a way to avoid all these "useless" divisions

@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-21739/25147/summary.html

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /build/cmsbld/jenkins-workarea/workspace/compare-root-files-short-matrix/results/JR-comparison/PR-21739/1325.7_TTbar_13_94XNanoAODINPUT+TTbar_13_94XNanoAODINPUT+NANOEDMMC2017

Comparison Summary:

  • No significant changes to the logs found
  • ROOTFileChecks: Some differences in event products or their sizes found
  • Reco comparison results: 16207 differences found in the comparisons
  • DQMHistoTests: Total files compared: 27
  • DQMHistoTests: Total histograms compared: 2836825
  • DQMHistoTests: Total failures: 52525
  • DQMHistoTests: Total nulls: 2
  • DQMHistoTests: Total successes: 2784120
  • DQMHistoTests: Total skipped: 178
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.790000000175 KiB( 23 files compared)
  • Checked 113 log files, 9 edm output root files, 27 DQM output files

@civanch
Copy link
Contributor Author

civanch commented Dec 18, 2017

history is changed - needs to be understood.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. 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)

@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-21739/25190/summary.html

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /build/cmsbld/jenkins-workarea/workspace/compare-root-files-short-matrix/results/JR-comparison/PR-21739/1325.7_TTbar_13_94XNanoAODINPUT+TTbar_13_94XNanoAODINPUT+NANOEDMMC2017

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 24 differences found in the comparisons
  • DQMHistoTests: Total files compared: 27
  • DQMHistoTests: Total histograms compared: 2831371
  • DQMHistoTests: Total failures: 1942
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2829251
  • DQMHistoTests: Total skipped: 178
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1.61000000007 KiB( 23 files compared)
  • Checked 113 log files, 9 edm output root files, 27 DQM output files

@civanch
Copy link
Contributor Author

civanch commented Dec 20, 2017

@davidlange6 , all comments are implemented, differences all are in 2018 WF and are not connected with this PR.

@davidlange6
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2018

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/25298/console Started: 2018/01/02 21:15

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2018

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2018

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2018

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

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /build/cmsbld/jenkins-workarea/workspace/compare-root-files-short-matrix/results/JR-comparison/PR-21739/1325.7_TTbar_13_94XNanoAODINPUT+TTbar_13_94XNanoAODINPUT+NANOEDMMC2017

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 1 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2775243
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2775073
  • DQMHistoTests: Total skipped: 169
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 1.25999999975 KiB( 21 files compared)
  • Checked 110 log files, 9 edm output root files, 26 DQM output files

@davidlange6
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit 6751577 into cms-sw:master Jan 8, 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

4 participants