41    int nrows = pp->getNrows();
 
   42    zmin = zmax - 2 * pp->getLengthOPad() - (nrows - 2) * pp->getLengthIPad() - (nrows - 1) * pp->getRowSpacing();
 
   43  } 
while ((
z < zmin) || (
z > zmax));
 
   55  int ly = getLayer(det);
 
   56  if ((ly < 0) || (ly >= 
NLAYER)) {
 
   60  int stk = getStack(det);
 
   61  if ((stk < 0) || (stk >= 
NSTACK)) {
 
   65  const PadPlane* pp = &mPadPlanes[getDetectorSec(ly, stk)];
 
   70  float max = pp->getRow0();
 
   71  int n = pp->getNrows();
 
   72  float min = 
max - 2 * pp->getLengthOPad() - (
n - 2) * pp->getLengthIPad() - (
n - 1) * pp->getRowSpacing();
 
   73  if (z < min + eps || z > 
max - eps) {
 
   79  max = 
min + 2 * pp->getWidthOPad() + (
n - 2) * pp->getWidthIPad() + (
n - 1) * pp->getColSpacing();
 
   80  if (y < min + eps || y > 
max - eps) {
 
GLenum GLuint GLint GLint layer
 
GLdouble GLdouble GLdouble z
 
constexpr int NLAYER
the number of layers
 
constexpr int NSTACK
the number of stacks per sector