Skip to content

Commit

Permalink
Merge pull request #32081 from bsunanda/Run4-hgx267
Browse files Browse the repository at this point in the history
Run4-hgx267 Fix masking mechanism for partial wafer definition in HGCal
  • Loading branch information
cmsbuild committed Nov 11, 2020
2 parents 7c9d085 + aee45f3 commit 820b4c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Geometry/HGCalCommonData/src/HGCalWaferMask.cc
Expand Up @@ -297,7 +297,8 @@ bool HGCalWaferMask::goodCell(int u, int v, int n, int type, int rotn) {
case (HGCalTypes::WaferSemi2): { //WaferSemi2
switch (rotn) {
case (HGCalTypes::WaferCorner0): {
good = ((u + v) < (3 * n2));
int n3 = (n + 1) / 3;
good = ((u + v) < (4 * n3));
break;
}
case (HGCalTypes::WaferCorner1): {
Expand All @@ -310,15 +311,15 @@ bool HGCalWaferMask::goodCell(int u, int v, int n, int type, int rotn) {
break;
}
case (HGCalTypes::WaferCorner3): {
good = ((u + v) > (5 * n2 - 1));
good = ((u + v) >= (5 * n2));
break;
}
case (HGCalTypes::WaferCorner4): {
good = ((2 * u - v) > (3 * n2));
break;
}
default: {
int u2 = ((u + 1) / 2);
int u2 = ((n == 8) ? ((u + 1) / 2) : (u / 2));
good = ((v - u2) < n4);
break;
}
Expand Down

0 comments on commit 820b4c9

Please sign in to comment.