101 vector<const L1MuDTTrackSegEta*>::iterator iter =
m_tseta.begin();
102 while (iter !=
m_tseta.end()) {
112 for (
int i = 0;
i < 12;
i++) {
131 for (
int i = 0;
i < 15;
i++) {
136 for (
int i = 0;
i < 12;
i++) {
140 if (!empty1 || !empty2) {
141 cout <<
"Eta processor " <<
m_epid <<
" : " << endl;
145 cout <<
"Local pattern : " << endl;
146 for (
int i = 0;
i < 15;
i++) {
147 if ((
i + 5) % 5 == 0)
151 for (
int j = 6;
j >= 0;
j--) {
155 if ((
i + 1) % 5 == 0)
158 cout <<
"Found patterns :" << endl;
159 vector<int>::const_iterator iter;
162 int qualitycode =
p.quality();
163 cout <<
"ID = " << setw(4) <<
p.id() <<
" "
164 <<
"eta = " << setw(3) <<
p.eta() <<
" "
165 <<
"quality = " << setw(2) << qualitycode <<
" (" <<
quality(qualitycode, 1) <<
" "
166 <<
quality(qualitycode, 2) <<
" " <<
quality(qualitycode, 3) <<
")";
167 for (
int i = 0;
i < 12;
i++) {
175 cout <<
"Received addresses : " << endl;
176 for (
int i = 0;
i < 12;
i++)
181 cout <<
"Matched patterns : " << endl;
182 for (
int i = 0;
i < 12;
i++) {
185 int fineeta =
p.eta();
187 cout <<
"Index = " << setw(2) <<
i <<
", "
188 <<
"address = " << setw(2) <<
m_address[
i] <<
" --> "
189 <<
"pattern = " << setw(4) <<
m_pattern[
i] <<
" "
190 <<
"eta (coarse) = " << setw(3) << coarseeta <<
" "
191 <<
"eta (fine) = " << setw(3) << fineeta <<
" "
192 <<
"quality = " << setw(2) <<
p.quality() << endl;
197 cout <<
"Eta values and fine bits : " << endl;
198 for (
int i = 0;
i < 12;
i++)
201 for (
int i = 0;
i < 12;
i++)
230 int lwheel =
wheel + 1;
245 if (tseta && !masked) {
247 (
wheel == 0 && (sector == 0 || sector == 3 || sector == 4 || sector == 7 || sector == 8 || sector == 11))) {
248 for (
int i = 0;
i < 7;
i++) {
255 for (
int i = 0;
i < 7;
i++) {
290 if (!
cand->empty()) {
308 for (
int i = 0;
i < 15;
i++) {
320 int qualitycode =
pattern.quality();
353 for (
int i = 0;
i < 12;
i++) {
374 vector<short>::const_iterator iter;
375 vector<int>::const_iterator f_iter;
376 for (iter = qualifiedPatterns.begin(); iter != qualifiedPatterns.end(); iter++) {
399 for (
int i = 0;
i < 6;
i++) {
401 int idx2 = 2 *
i + 1;
404 if (adr1 == 0 || adr2 == 0)
406 if (adr1 == adr2 && !
m_mask) {
409 if (
m_eta[idx1] == 99)
411 if (
m_eta[idx1] > 31)
417 if (
m_eta[idx2] == 99)
419 if (
m_eta[idx2] > 31)
432 for (
int i = 0;
i < 12;
i++) {
445 vector<const L1MuDTTrackSegEta*> TSeta;
448 int wh =
p.wheel(
stat + 1);
475 const int qualcode[27][3] = {{0, 0, 0}, {1, 0, 0}, {0, 1, 0}, {0, 0, 1}, {2, 0, 0}, {0, 2, 0}, {0, 0, 2},
476 {1, 1, 0}, {1, 0, 1}, {0, 1, 1}, {2, 1, 0}, {1, 2, 0}, {2, 0, 1}, {1, 0, 2},
477 {0, 2, 1}, {0, 1, 2}, {2, 2, 0}, {2, 0, 2}, {0, 2, 2}, {1, 1, 1}, {2, 1, 1},
478 {1, 2, 1}, {1, 1, 2}, {2, 2, 1}, {2, 1, 2}, {1, 2, 2}, {2, 2, 2}};
480 return qualcode[
id][
stat - 1];