Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Dec 10, 2022
1 parent 5205ceb commit 3d79fd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Geometry/HGCalCommonData/src/HGCalCellUV.cc
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ std::pair<int32_t, int32_t> HGCalCellUV::cellUVFromXY1(
double ycell = (v + u - 2 * ncell_[type] + 1) * cellY;
if ((yprime - sqrt3_ * xprime) > (ycell - sqrt3_ * xcell)) {
u += -1;
if (((v - u) > ncell_[1]) || ((u - v) >= ncell_[1]))
--v;
if (((v - u) > ncell_[1]) || ((u - v) >= ncell_[1]))
--v;
} else {
u += -1;
v += -1;
v = std::max(v, 0);
v = std::max(v, 0);
}
}
} else if (partial == HGCalTypes::WaferHDBottom) {
Expand Down
4 changes: 2 additions & 2 deletions Geometry/HGCalCommonData/src/HGCalDDDConstants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,14 @@ bool HGCalDDDConstants::isValidHex8(int layer, int modU, int modV, int cellU, in
if ((cellU < 0) || (cellU >= 2 * N) || (cellV < 0) || (cellV >= 2 * N)) {
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "HGCalDDDConstants:: Cannot statisfy Cell 1 condition " << cellU << ":" << cellV
<< ":" << N;
<< ":" << N;
#endif
return false;
}
if (((cellV - cellU) >= N) || ((cellU - cellV) > N)) {
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "HGCalDDDConstants:: Cannot statisfy Cell 2 condition " << cellU << ":" << cellV
<< ":" << N;
<< ":" << N;
#endif
return false;
}
Expand Down

0 comments on commit 3d79fd0

Please sign in to comment.