-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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-gex53 Correct ECAL algorithms for dd4hep #32823
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32823/21014
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32823/21015
|
A new Pull Request was created by @bsunanda (Sunanda Banerjee) for master. It involves the following packages: Geometry/EcalCommonData @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5283ff/12723/summary.html Comparison SummarySummary:
|
@@ -1146,7 +1150,7 @@ static long algorithm(dd4hep::Detector& /* description */, cms::DDParsingContext | |||
} | |||
unsigned int femCopy(0); | |||
for (unsigned int ilyFEM(0); ilyFEM != ily.vecIlyFEMZ.size(); ++ilyFEM) { | |||
const double radius(ilyRMax - 1_mm - ily.fEMHeightHalf); | |||
const double radius(ilyRMax - 1 * dd4hep::mm - ily.fEMHeightHalf); |
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.
@bsunanda , why we need "1 * dd4hep::mm"? May it be "dd4hep::mm"? or compiler is cleaver enough to recognize this?
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.
keeping 1 to make it look 1 mm
@@ -1440,8 +1445,8 @@ static long algorithm(dd4hep::Detector& /* description */, cms::DDParsingContext | |||
|
|||
// theta is angle in yz plane between z axis & leading edge of crystal | |||
double theta(90_deg); | |||
double zee(0_mm); | |||
double side(0_mm); | |||
double zee(0 * dd4hep::mm); |
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.
why not simply (0.) in all places?
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.
using 0 now
bug |
bug-fix |
I prefer |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32823/21039
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32823/21041
|
Pull request #32823 was updated. @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild can you please check and sign again. |
@cmsbuild Please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5283ff/12746/summary.html Comparison SummarySummary:
|
+1 Carl comments are implemented |
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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Correct ECAL algorithms for dd4hep (treatment of units)
PR validation:
Tested using cfg's in SimG4Core/Configuration/test
if this PR is a backport please specify the original PR and why you need to backport that PR:
Nothing special