-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix deprecated enum arithmetics in CaloGeometry #45133
Conversation
cms-bot internal usage |
please test for CMSSW_14_1_CPP20_X |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45133/40473
|
A new Pull Request was created by @iarspider for master. It involves the following packages:
@bsunanda, @makortel, @Dr15Jones, @mdhildreth, @civanch can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@@ -16,7 +16,7 @@ unsigned int CaloGeometry::makeIndex(DetId::Detector det, int subdet, bool& ok) | |||
edm::LogWarning("CaloGeometry") << "Det:Subdet " << idet << ":" << subdet << " min|max Det " << kMinDet << ":" | |||
<< kMaxDet << " min|max subdet 0:" << kMaxSub; | |||
|
|||
return ((det - kMinDet) * kNSubDets + subdet); | |||
return ((det - static_cast<int>(kMinDet)) * kNSubDets + subdet); |
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.
I think it would be better to define all these
cmssw/Geometry/CaloGeometry/interface/CaloGeometry.h
Lines 59 to 66 in a9682e8
enum { | |
kMaxDet = 10, | |
kMinDet = 3, | |
kNDets = kMaxDet - kMinDet + 1, | |
kMaxSub = 6, | |
kNSubDets = kMaxSub + 1, | |
kLength = kNDets * kNSubDets | |
}; |
as
static constexpr
constants.
please abort |
please test for CMSSW_14_1_CPP20_X |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-45133/40476
|
Pull request #45133 was updated. @civanch, @makortel, @Dr15Jones, @mdhildreth, @bsunanda can you please check and sign again. |
please test |
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-7f5f34/39702/summary.html Comparison SummarySummary:
|
+1 |
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. @rappoccio, @sextonkennedy, @antoniovilela (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
merge |
PR description:
Fix the following compilation warning:
PR validation:
Bot tests