58 for (
int ext_idx = 0; ext_idx <
MAX_EXT; ext_idx++ ) {
65 unsigned int maxaddr = 4;
67 if ( ext ==
EX12 || ext ==
EX13 || ext ==
EX14 ) maxaddr = 2;
69 for (
unsigned int startAddress = 0; startAddress < maxaddr; startAddress++ ) {
70 SEUId id = make_pair(ext, startAddress);
86 for ( SEUmap::iterator iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
87 delete (*iter).second;
106 SEUmap::const_iterator iter;
107 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
109 pair<int,int> ext_pair =
which_ext(((*iter).second)->ext());
110 int start = ext_pair.first;
117 if ( ts != 0 && !ts->
empty() ) {
118 ((*iter).second)->
load(ts);
119 ((*iter).second)->
run(c);
131 for (
unsigned int startAdr = 0; startAdr < 2; startAdr++ ) {
136 for (
int eux = 0; eux < 12; eux++ ) {
137 if ( extab12.test(eux) && !extab21.test(eux) ) {
142 cout <<
" EX12 - EX21 mismatch : " 143 <<
" EX12 : " << extab12 <<
" , " 144 <<
" EX21 : " << extab21 << endl
145 <<
" Cancel: " << SEU12->
ext()
146 <<
" start addr = " << SEU12->
tsId()
147 <<
" target addr = " << eux << endl;
163 SEUmap::const_iterator iter;
164 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
165 ((*iter).second)->
reset();
179 SEUId seuid = make_pair(ext, startAdr);
180 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
181 if ( iter !=
m_SEUs.end() ) ((*iter).second)->reset(relAdr);
198 unsigned short int address = 15;
200 SEUId seuid = make_pair(ext, startAdr);
201 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
202 if ( iter !=
m_SEUs.end() ) address = ((*iter).second)->ers()->address(
id);
221 unsigned short int quality = 0;
223 SEUId seuid = make_pair(ext, startAdr);
224 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
225 if ( iter !=
m_SEUs.end() ) quality = ((*iter).second)->ers()->quality(
id);
242 SEUId seuid = make_pair(ext, startAdr);
243 return m_SEUs[seuid]->exTable();
258 SEUId seuid = make_pair(ext, startAdr);
259 return m_SEUs[seuid]->qsTable();
270 SEUmap::const_iterator iter;
271 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
285 SEUmap::const_iterator iter_seu;
288 for ( iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++ ) {
289 vector<L1MuDTEUX*> vec_eux = ((*iter_seu).second)->eux();
290 vector<L1MuDTEUX*>::const_iterator iter_eux;
291 for ( iter_eux = vec_eux.begin();
292 iter_eux != vec_eux.end(); iter_eux++ ) {
293 if ( (*iter_eux)->result() ) {
294 cout << ((*iter_seu).second)->
ext() <<
" " 295 << ((*iter_seu).second)->tsId() <<
" " 296 << (*iter_eux)->id() << endl;
297 cout <<
"start : " << *(*iter_eux)->ts().first << endl;
298 cout <<
"target : " << *(*iter_eux)->ts().second << endl;
299 cout <<
"result : " <<
"quality = " << (*iter_eux)->quality() <<
'\t' 300 <<
"address = " << (*iter_eux)->address() << endl;
310 cout <<
"Results from Extrapolator and Quality Sorter of " <<
m_sp.
id()
313 cout <<
" EXT QSU " << endl;
314 cout <<
" S E U 11 11 " << endl;
315 cout <<
" 109876543210 109876543210 " << endl;
316 cout <<
"-------------------------------------" << endl;
317 for ( iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++ ) {
319 cout << ((*iter_seu).second)->
ext() <<
"_ " 320 << ((*iter_seu).second)->tsId() <<
": " 321 << ((*iter_seu).second)->exTable() <<
" " 322 << ((*iter_seu).second)->qsTable() << endl;
345 case EX12 : { source = 1; target = 2;
break; }
346 case EX13 : { source = 1; target = 3;
break; }
347 case EX14 : { source = 1; target = 4;
break; }
348 case EX21 : { source = 1; target = 2;
break; }
349 case EX23 : { source = 2; target = 3;
break; }
350 case EX24 : { source = 2; target = 4;
break; }
351 case EX34 : { source = 3; target = 4;
break; }
352 case EX15 : { source = 1; target = 3;
break; }
353 case EX25 : { source = 2; target = 3;
break; }
354 default : { source = 1; target = 2;
break; }
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
static L1MuDTTFConfig * config()
return configuration
bool get_soc_run_21(int wh, int sc) const
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
int wheel() const
return wheel number
static std::string const source
unsigned int tsId() const
return start track segment identifier (relative address)