24 if(m_iM==1 && m_iEta==0){
27 m_stationPhi = (m_iSec-1)*2 + m_iPhi/2+1 - 1;
28 if( m_stationPhi <= 0 ) m_stationPhi += 24;
30 }
else if(m_iM==1 && m_iEta!=0){
33 m_stationPhi = (m_iSec-1)*4 + m_iPhi - 1;
34 if( m_stationPhi <= 0 ) m_stationPhi += 48;
36 }
else if(m_iM==2 && m_iEta==0){
39 m_stationPhi = (m_iSec-1)*2 + m_iPhi/2+1 - 1;
40 if( m_stationPhi <= 0 ) m_stationPhi += 24;
42 }
else if(m_iM==2 && m_iEta!=0){
45 m_stationPhi = (m_iSec-1)*4 + m_iPhi - 1;
46 if( m_stationPhi <= 0 ) m_stationPhi += 48;
48 }
else if(m_iM==3 && m_iEta==0){
51 m_stationPhi = (m_iSec-1)*2 + m_iPhi/2+1 - 1;
52 if( m_stationPhi <= 0 ) m_stationPhi += 24;
54 }
else if(m_iM==3 && m_iEta!=0){
57 m_stationPhi = (m_iSec-1)*4 + m_iPhi - 1;
58 if( m_stationPhi <= 0 ) m_stationPhi += 48;
60 }
else if(m_iM==4 && m_iEta==0){
63 m_stationPhi = m_iPhi;
65 }
else if(m_iM==4 && m_iEta!=0){
69 m_stationPhi = m_iPhi;
71 m_stationPhi = m_iPhi + 3;
73 m_stationPhi = m_iPhi + 6;
75 m_stationPhi = m_iPhi + 8;
77 m_stationPhi = m_iPhi + 11;
79 m_stationPhi = m_iPhi + 13;
81 m_stationPhi = m_iPhi + 16;
83 m_stationPhi = m_iPhi + 18;
85 if( m_stationPhi <= 0 ) m_stationPhi += 21;
88 m_cham_name = Form(
"%s%02dM%02df%02d%s%02d",(m_iSide==
TGC::TGCSIDE::TGCASIDE)?(
"A"):(
"C"),m_iSec,m_iM,m_iPhi,(m_iEta==0)?(
"F"):(
"E"),m_iEta);
108 int iphi2 = stationPhi + 1;
109 if (iphi2 >= 48) iphi2 -= 48;
110 iSec =
int(iphi2 / 4) + 1;
111 iPhi = iphi2 - (iSec - 1) * 4;
112 iEta = (iM == 1) ? (5 - std::abs(stationEta)) : (6 - std::abs(stationEta));
114 int iphi2 = stationPhi;
115 if (iphi2 >= 24) iphi2 -= 24;
116 iSec =
int(iphi2 / 2) + 1;
117 iPhi = iphi2 - (iSec - 1) * 2;
127 int iphi2 = (stationPhi >= 21) ? (stationPhi - 21) : (stationPhi);
128 if (iphi2 >= 0 && iphi2 <= 2) {
131 }
else if (iphi2 >= 3 && iphi2 <= 5) {
134 }
else if (iphi2 >= 6 && iphi2 <= 8) {
137 }
else if (iphi2 >= 9 && iphi2 <= 10) {
139 iPhi = iphi2 - 9 + 1;
140 }
else if (iphi2 >= 11 && iphi2 <= 13) {
143 }
else if (iphi2 >= 14 && iphi2 <= 15) {
146 }
else if (iphi2 >= 16 && iphi2 <= 18) {
149 }
else if (iphi2 >= 19 && iphi2 <= 20) {
151 iPhi = iphi2 - 19 + 1;
156 initChamber(iSide,iSec,iM,
iPhi,
iEta);