Skip to content

Commit 31ab4d2

Browse files
authored
Merge pull request #48284 from bsunanda/Phse2-hgx364P
Phs2-hgx364P Update the definition of placement index so that the guard ring implementation in partial wafer can work fine
2 parents 58ef696 + af92542 commit 31ab4d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Geometry/HGCalCommonData/src/HGCalCell.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ std::pair<int, int> HGCalCell::cellUV2Cell(int32_t u, int32_t v, int32_t placeme
237237
}
238238

239239
int HGCalCell::cellPlacementIndex(int32_t iz, int32_t frontBack, int32_t orient) {
240-
int32_t indx = ((iz * frontBack) > 0) ? orient : (orient + HGCalCell::cellPlacementExtra);
240+
int32_t indx = (frontBack > 0) ? orient : (orient + HGCalCell::cellPlacementExtra);
241241
return indx;
242242
}
243243

244244
std::pair<int32_t, int32_t> HGCalCell::cellOrient(int32_t placementIndex) {
245245
int32_t orient = (placementIndex >= HGCalCell::cellPlacementExtra) ? (placementIndex - HGCalCell::cellPlacementExtra)
246246
: placementIndex;
247-
int32_t frontBackZside = (placementIndex >= HGCalCell::cellPlacementExtra) ? 1 : -1;
248-
return std::make_pair(orient, frontBackZside);
247+
int32_t frontBack = (placementIndex >= HGCalCell::cellPlacementExtra) ? 1 : -1;
248+
return std::make_pair(orient, frontBack);
249249
}
250250

251251
std::pair<int32_t, int32_t> HGCalCell::cellType(int32_t u, int32_t v, int32_t ncell, int32_t placementIndex) {

0 commit comments

Comments
 (0)