116{
117
118 for(int i=0; i<8; i++)
119 {
120 trackBR[i] = 0;
121 track3lBR[i] = 0;
122 if(i!=2) {
123 for(unsigned int j=0; j<vindexb.size(); j++)
124 {
125 int ly1,ly2,ly3,ly4;
126 ly1 = vindexb[j][0];
127 ly2 = vindexb[j][1]-10;
128 ly3 = vindexb[j][2]-20;
129 ly4 = vindexb[j][3]-30;
130 if((foBR[i][0][ly1]+foBR[i][1][ly2]+foBR[i][2][ly3]+foBR[i][3][ly4])>=3) {
131 trackBR[i]++;
132 break;
133 }
134 if(foBR[i][0][ly1]==1&&foBR[i][2][ly3]==1) { trackBR[i]++; break; }
135 if(foBR[i][1][ly2]==1&&foBR[i][3][ly4]==1) { trackBR[i]++; break; }
136 }
137
138 for(unsigned int j=0; j<vindexb.size(); j++)
139 {
140 int ly1,ly2,ly3,ly4;
141 ly1 = vindexb[j][0];
142 ly2 = vindexb[j][1]-10;
143 ly3 = vindexb[j][2]-20;
144 ly4 = vindexb[j][3]-30;
145 if((foBR[i][0][ly1]+foBR[i][1][ly2]+foBR[i][2][ly3]+foBR[i][3][ly4])>=3) {
146 track3lBR[i]++;
147 break;
148 }
149 }
150 }
151 if(i==2) {
152 for(unsigned int j=0; j<vindexb3.size(); j++)
153 {
154 int ly1,ly2,ly3,ly4;
155 ly1 = vindexb3[j][0];
156 ly2 = vindexb3[j][1]-10;
157 ly3 = vindexb3[j][2]-20;
158 ly4 = vindexb3[j][3]-30;
159 if((foBR[i][0][ly1]+foBR[i][1][ly2]+foBR[i][2][ly3]+foBR[i][3][ly4])>=3) {
160 trackBR[i]++;
161 break;
162 }
163 if(foBR[i][0][ly1]==1&&foBR[i][2][ly3]==1) { trackBR[i]++; break; }
164 if(foBR[i][1][ly2]==1&&foBR[i][3][ly4]==1) { trackBR[i]++; break; }
165 }
166
167 for(unsigned int j=0; j<vindexb3.size(); j++)
168 {
169 int ly1,ly2,ly3,ly4;
170 ly1 = vindexb3[j][0];
171 ly2 = vindexb3[j][1]-10;
172 ly3 = vindexb3[j][2]-20;
173 ly4 = vindexb3[j][3]-30;
174 if((foBR[i][0][ly1]+foBR[i][1][ly2]+foBR[i][2][ly3]+foBR[i][3][ly4])>=3) {
175 track3lBR[i]++;
176 break;
177 }
178 }
179 }
180 }
181
182
183 for(int i=0; i<4; i++)
184 {
185 trackEE[i] = 0;
186 trackWE[i] = 0;
187 track3lEE[i] = 0;
188 track3lWE[i] = 0;
189 for(unsigned int j=0; j<vindexe.size(); j++)
190 {
191 int ly1,ly2,ly3,ly4;
192 ly1 = vindexe[j][0];
193 ly2 = vindexe[j][1]-10;
194 ly3 = vindexe[j][2]-20;
195 ly4 = vindexe[j][3]-30;
196
197 if((foEC[0][i][0][ly1]+foEC[0][i][1][ly2]+foEC[0][i][2][ly3]+foEC[0][i][3][ly4])>=3) {
198 trackEE[i]++;
199 break;
200 }
201 if(foEC[0][i][0][ly1]==1&&foEC[0][i][2][ly3]==1) { trackEE[i]++; break; }
202 if(foEC[0][i][1][ly2]==1&&foEC[0][i][3][ly4]==1) { trackEE[i]++; break; }
203 }
204
205 for(unsigned int j=0; j<vindexe.size(); j++)
206 {
207 int ly1,ly2,ly3,ly4;
208 ly1 = vindexe[j][0];
209 ly2 = vindexe[j][1]-10;
210 ly3 = vindexe[j][2]-20;
211 ly4 = vindexe[j][3]-30;
212
213 if((foEC[1][i][0][ly1]+foEC[1][i][1][ly2]+foEC[1][i][2][ly3]+foEC[1][i][3][ly4])>=3) {
214 trackWE[i]++;
215 break;
216 }
217 if(foEC[1][i][0][ly1]==1&&foEC[1][i][2][ly3]==1) { trackWE[i]++; break; }
218 if(foEC[1][i][1][ly2]==1&&foEC[1][i][3][ly4]==1) { trackWE[i]++; break; }
219 }
220
221 for(unsigned int j=0; j<vindexe.size(); j++)
222 {
223 int ly1,ly2,ly3,ly4;
224 ly1 = vindexe[j][0];
225 ly2 = vindexe[j][1]-10;
226 ly3 = vindexe[j][2]-20;
227 ly4 = vindexe[j][3]-30;
228
229 if((foEC[0][i][0][ly1]+foEC[0][i][1][ly2]+foEC[0][i][2][ly3]+foEC[0][i][3][ly4])>=3) {
230 track3lEE[i]++;
231 break;
232 }
233 }
234 for(unsigned int j=0; j<vindexe.size(); j++)
235 {
236 int ly1,ly2,ly3,ly4;
237 ly1 = vindexe[j][0];
238 ly2 = vindexe[j][1]-10;
239 ly3 = vindexe[j][2]-20;
240 ly4 = vindexe[j][3]-30;
241
242 if((foEC[1][i][0][ly1]+foEC[1][i][1][ly2]+foEC[1][i][2][ly3]+foEC[1][i][3][ly4])>=3) {
243 track3lWE[i]++;
244 break;
245 }
246 }
247 }
248
249
250 btrack = 0;
251 etrack = 0;
252 int b3ltrack = 0, e3ltrack = 0;
253 for(int i=0; i<8; i++) { btrack = btrack + trackBR[i]; b3ltrack = b3ltrack + track3lBR[i]; }
254 for(int i=0; i<4; i++) { etrack = etrack + trackEE[i] + trackWE[i]; e3ltrack = e3ltrack + track3lWE[i] + track3lEE[i]; }
255
256
257 bool mucBB3478 = false, mucBB37 = false;
258 if((track3lBR[2] > 0 && track3lBR[6] > 0) || (track3lBR[3] > 0 && track3lBR[7] > 0)) mucBB3478 = true;
259 if(track3lBR[2] > 0 && track3lBR[6] > 0) mucBB37 = true;
260
261
264
265
269}
void setMucNtrackBR(int i)
void setMucBB3478(bool i)
void setMucNtrackEC(int i)
void setMucN3ltrackTotal(int i)