Commit in GeomConverter/src/org/lcsim/detector/tracker/silicon on MAIN | |||
SiPixels.java | +1 | -1 | 1.3 -> 1.4 |
Eliminate duplicate validation checking on neighbor cells
diff -u -r1.3 -r1.4 --- SiPixels.java 22 Apr 2009 22:27:42 -0000 1.3 +++ SiPixels.java 26 Apr 2009 19:30:06 -0000 1.4 @@ -130,7 +130,7 @@
for (int icol = col - 1; icol <= col + 1; icol++) { if (irow == 0 && icol == 0) continue; int neighbor = getCellID(irow, icol);
- if (isValidCell(neighbor)) {
+ if (neighbor >= 0) {
neighbors.add(neighbor); } }