59 for (
int ext_idx = 0; ext_idx <
MAX_EXT; ext_idx++ ) {
66 unsigned int maxaddr = 4;
68 if ( ext ==
EX12 || ext ==
EX13 || ext ==
EX14 ) maxaddr = 2;
70 for (
unsigned int startAddress = 0; startAddress < maxaddr; startAddress++ ) {
71 SEUId id = make_pair(ext, startAddress);
87 for ( SEUmap::iterator iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
88 delete (*iter).second;
107 SEUmap::const_iterator iter;
108 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
110 pair<int,int> ext_pair =
which_ext(((*iter).second)->ext());
111 int start = ext_pair.first;
118 if ( ts != 0 && !ts->
empty() ) {
119 ((*iter).second)->
load(ts);
120 ((*iter).second)->
run(c);
132 for (
unsigned int startAdr = 0; startAdr < 2; startAdr++ ) {
137 for (
int eux = 0; eux < 12; eux++ ) {
138 if ( extab12.test(eux) && !extab21.test(eux) ) {
143 cout <<
" EX12 - EX21 mismatch : "
144 <<
" EX12 : " << extab12 <<
" , "
145 <<
" EX21 : " << extab21 << endl
146 <<
" Cancel: " << SEU12->
ext()
147 <<
" start addr = " << SEU12->
tsId()
148 <<
" target addr = " << eux << endl;
164 SEUmap::const_iterator iter;
165 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
166 ((*iter).second)->
reset();
180 SEUId seuid = make_pair(ext, startAdr);
181 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
182 if ( iter !=
m_SEUs.end() ) ((*iter).second)->reset(relAdr);
199 unsigned short int address = 15;
201 SEUId seuid = make_pair(ext, startAdr);
202 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
203 if ( iter !=
m_SEUs.end() ) address = ((*iter).second)->ers()->address(
id);
222 unsigned short int quality = 0;
224 SEUId seuid = make_pair(ext, startAdr);
225 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
226 if ( iter !=
m_SEUs.end() ) quality = ((*iter).second)->ers()->quality(
id);
243 SEUId seuid = make_pair(ext, startAdr);
244 return m_SEUs[seuid]->exTable();
259 SEUId seuid = make_pair(ext, startAdr);
260 return m_SEUs[seuid]->qsTable();
271 SEUmap::const_iterator iter;
272 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
286 SEUmap::const_iterator iter_seu;
289 for ( iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++ ) {
290 vector<L1MuDTEUX*> vec_eux = ((*iter_seu).second)->eux();
291 vector<L1MuDTEUX*>::const_iterator iter_eux;
292 for ( iter_eux = vec_eux.begin();
293 iter_eux != vec_eux.end(); iter_eux++ ) {
294 if ( (*iter_eux)->result() ) {
295 cout << ((*iter_seu).second)->ext() <<
" "
296 << ((*iter_seu).second)->tsId() <<
" "
297 << (*iter_eux)->id() << endl;
298 cout <<
"start : " << *(*iter_eux)->ts().first << endl;
299 cout <<
"target : " << *(*iter_eux)->ts().second << endl;
300 cout <<
"result : " <<
"quality = " << (*iter_eux)->quality() <<
'\t'
301 <<
"address = " << (*iter_eux)->address() << endl;
311 cout <<
"Results from Extrapolator and Quality Sorter of " <<
m_sp.
id()
314 cout <<
" EXT QSU " << endl;
315 cout <<
" S E U 11 11 " << endl;
316 cout <<
" 109876543210 109876543210 " << endl;
317 cout <<
"-------------------------------------" << endl;
318 for ( iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++ ) {
320 cout << ((*iter_seu).second)->ext() <<
"_ "
321 << ((*iter_seu).second)->tsId() <<
": "
322 << ((*iter_seu).second)->exTable() <<
" "
323 << ((*iter_seu).second)->qsTable() << endl;
346 case EX12 : { source = 1; target = 2;
break; }
347 case EX13 : { source = 1; target = 3;
break; }
348 case EX14 : { source = 1; target = 4;
break; }
349 case EX21 : { source = 1; target = 2;
break; }
350 case EX23 : { source = 2; target = 3;
break; }
351 case EX24 : { source = 2; target = 4;
break; }
352 case EX34 : { source = 3; target = 4;
break; }
353 case EX15 : { source = 1; target = 3;
break; }
354 case EX25 : { source = 2; target = 3;
break; }
355 default : { source = 1; target = 2;
break; }
tuple start
Check for commandline option errors.
Extrapolation ext() const
return extrapolation type
int sector() const
return sector number
const L1MuDTDataBuffer * data() const
return pointer to Data Buffer
virtual void run()
run processor logic
bool empty() const
is it an empty phi track segment?
const L1MuDTSecProcId & id() const
return Sector Processor identifier
const TSPhivector & getTSphi() const
get all track segments from the buffer
int wheel() const
return wheel number
unsigned int tsId() const
return start track segment identifier (relative address)