391 x = ( VALUE *
m_Rc + E_GP_DX + E_STRPLN_DA + RPC_SL_OFFSET ) / 2.0;
402 y = ( VALUE *
m_Rc + E_GP_DY + E_STRPLN_DA + RPC_SL_OFFSET ) / 2.0;
409 x = ( VALUE *
m_Rc + E_GP_DX + E_STRPLN_DA )/2.0 + OVERLAP_WIDTH/2.0;
436 y = ( VALUE *
m_Rc + E_GP_DY + E_STRPLN_DA )/2.0 + OVERLAP_WIDTH/2.0;
447 for(
int i=0; i<
m_Layer+1; i++ ) z += E_AS_TH[i];
450 z += ( (E_AS_ZMAX - E_AS_TOTAL_TH) + AS_GAP/2.0 );
451 z += (1-2*
m_UpDown) * (RPC_TH + STR_TH)/2.0 ;
459 for(
int i=0;i<3;i++) {
483 y = (1-2*
m_UpDown) * ( RPC_TH + STR_TH )/2.0;
489 z = (2*
m_UpDown - 1) * 3 * B_RPC_LTN / 2.0;
491 z = (2*
m_UpDown - 1) * 3 * B_RPC_LTS / 2.0;
498 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - (1+2*
m_ID)*B_RPC_LTN/2.0;
500 z = -B_BOX_LT/2.0 + B_BOX_DZ[
m_UpDown] + (1+2*(3-
m_ID))*B_RPC_LTN/2.0;
505 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - (1+2*
m_ID)*B_RPC_LTS/2.0;
507 z = -B_BOX_LT/2.0 + B_BOX_DZ[
m_UpDown] + (1+2*(3-
m_ID))*B_RPC_LTS/2.0;
520 y = (1-2*
m_UpDown) * ( RPC_TH + STR_TH )/2.0;
530 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - B_TOPRPC_LTS[1]/2.0;
537 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - B_TOPRPC_LTS[1] + (3-2*
m_ID)*B_RPC_LTN/2.0;
539 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - B_TOPRPC_LTS[
m_Layer%2] + (3-2*
m_ID)*B_RPC_LTN/2.0;
543 z = -B_RPC_LTN - B_TOPRPC_LTS[1]/2.0;
545 z = -B_RPC_LTN - B_TOPRPC_LTS[
m_Layer%2]/2.0;
556 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - B_TOPRPC_LTS[1]/2.0;
562 z = B_RPC_LTN - B_TOPRPC_LTS[1]/2.0;
564 z = B_RPC_LTN - B_TOPRPC_LTS[
m_Layer%2]/2.0;
568 z = -B_BOX_LT/2.0 + B_BOX_DZ[
m_UpDown] + (1+2*(4-
m_ID))*B_RPC_LTN/2.0;
580 for(
int i=0;i<3;i++) {