357 x = ( VALUE *
m_Rc + E_GP_DX + E_STRPLN_DA + RPC_SL_OFFSET ) / 2.0;
360 else if(
m_ID == 1 ) {
366 y = ( VALUE *
m_Rc + E_GP_DY + E_STRPLN_DA + RPC_SL_OFFSET ) / 2.0;
372 x = ( VALUE *
m_Rc + E_GP_DX + E_STRPLN_DA )/2.0 + OVERLAP_WIDTH/2.0;
375 else if(
m_ID == 1 ) {
381 else if(
m_ID == 2 ) {
385 else if(
m_ID == 3 ) {
393 y = ( VALUE *
m_Rc + E_GP_DY + E_STRPLN_DA )/2.0 + OVERLAP_WIDTH/2.0;
404 for(
int i=0; i<
m_Layer+1; i++ ) z += E_AS_TH[i];
407 z += ( (E_AS_ZMAX - E_AS_TOTAL_TH) + AS_GAP/2.0 );
408 z += (1-2*
m_UpDown) * (RPC_TH + STR_TH)/2.0 ;
438 y = (1-2*
m_UpDown) * ( RPC_TH + STR_TH )/2.0;
444 z = (2*
m_UpDown - 1) * 3 * B_RPC_LTN / 2.0;
446 z = (2*
m_UpDown - 1) * 3 * B_RPC_LTS / 2.0;
453 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - (1+2*
m_ID)*B_RPC_LTN/2.0;
455 z = -B_BOX_LT/2.0 + B_BOX_DZ[
m_UpDown] + (1+2*(3-
m_ID))*B_RPC_LTN/2.0;
460 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - (1+2*
m_ID)*B_RPC_LTS/2.0;
462 z = -B_BOX_LT/2.0 + B_BOX_DZ[
m_UpDown] + (1+2*(3-
m_ID))*B_RPC_LTS/2.0;
475 y = (1-2*
m_UpDown) * ( RPC_TH + STR_TH )/2.0;
485 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - B_TOPRPC_LTS[1]/2.0;
492 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - B_TOPRPC_LTS[1] + (3-2*
m_ID)*B_RPC_LTN/2.0;
494 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;
498 z = -B_RPC_LTN - B_TOPRPC_LTS[1]/2.0;
500 z = -B_RPC_LTN - B_TOPRPC_LTS[
m_Layer%2]/2.0;
511 z = B_BOX_LT/2.0 - B_BOX_DZ[
m_UpDown] - B_TOPRPC_LTS[1]/2.0;
517 z = B_RPC_LTN - B_TOPRPC_LTS[1]/2.0;
519 z = B_RPC_LTN - B_TOPRPC_LTS[
m_Layer%2]/2.0;
523 z = -B_BOX_LT/2.0 + B_BOX_DZ[
m_UpDown] + (1+2*(4-
m_ID))*B_RPC_LTN/2.0;