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
Geant4 sensitive detector cleanup-2 #21739
Conversation
The code-checks are being triggered in jenkins. |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-21739/2636 |
The tests are being triggered in jenkins. |
A new Pull Request was created by @civanch (Vladimir Ivantchenko) for master. It involves the following packages: SimG4CMS/Tracker @cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
private: | ||
TouchableToHistory * ts; | ||
TouchableToHistory * ts; |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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); |
There was a problem hiding this comment.
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
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
history is changed - needs to be understood. |
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) |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
@davidlange6 , all comments are implemented, differences all are in 2018 WF and are not connected with this PR. |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready @slava77 comparisons for the following workflows were not done due to missing matrix map:
Comparison Summary:
|
merge |
Continue clean-up of Geant4 sensitive detectors. Now only classes related to Tracker are modified:
In this classes were no problems, so this clean-up should not change any result.