57 for (
int ext_idx = 0; ext_idx <
MAX_EXT; ext_idx++ ) {
64 unsigned int maxaddr = 4;
66 if ( ext ==
EX12 || ext ==
EX13 || ext ==
EX14 ) maxaddr = 2;
68 for (
unsigned int startAddress = 0; startAddress < maxaddr; startAddress++ ) {
69 SEUId id = make_pair(ext, startAddress);
85 for ( SEUmap::iterator iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
86 delete (*iter).second;
109 SEUmap::const_iterator iter;
110 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
112 pair<int,int> ext_pair =
which_ext(((*iter).second)->ext());
113 int start = ext_pair.first;
120 if ( ts != 0 && !ts->
empty() ) {
121 ((*iter).second)->
load(ts);
122 ((*iter).second)->
run(c);
134 for (
unsigned int startAdr = 0; startAdr < 2; startAdr++ ) {
139 for (
int eux = 0; eux < 12; eux++ ) {
140 if ( extab12.test(eux) && !extab21.test(eux) ) {
145 cout <<
" EX12 - EX21 mismatch : " 146 <<
" EX12 : " << extab12 <<
" , " 147 <<
" EX21 : " << extab21 << endl
148 <<
" Cancel: " << SEU12->
ext()
149 <<
" start addr = " << SEU12->
tsId()
150 <<
" target addr = " << eux << endl;
166 SEUmap::const_iterator iter;
167 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
168 ((*iter).second)->
reset();
182 SEUId seuid = make_pair(ext, startAdr);
183 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
184 if ( iter !=
m_SEUs.end() ) ((*iter).second)->reset(relAdr);
201 unsigned short int address = 15;
203 SEUId seuid = make_pair(ext, startAdr);
204 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
205 if ( iter !=
m_SEUs.end() ) address = ((*iter).second)->ers()->address(
id);
224 unsigned short int quality = 0;
226 SEUId seuid = make_pair(ext, startAdr);
227 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
228 if ( iter !=
m_SEUs.end() ) quality = ((*iter).second)->ers()->quality(
id);
245 SEUId seuid = make_pair(ext, startAdr);
246 return m_SEUs[seuid]->exTable();
261 SEUId seuid = make_pair(ext, startAdr);
262 return m_SEUs[seuid]->qsTable();
273 SEUmap::const_iterator iter;
274 for ( iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++ ) {
288 SEUmap::const_iterator iter_seu;
291 for ( iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++ ) {
292 vector<L1MuBMEUX*> vec_eux = ((*iter_seu).second)->eux();
293 vector<L1MuBMEUX*>::const_iterator iter_eux;
294 for ( iter_eux = vec_eux.begin();
295 iter_eux != vec_eux.end(); iter_eux++ ) {
296 if ( (*iter_eux)->result() ) {
297 cout << ((*iter_seu).second)->
ext() <<
" " 298 << ((*iter_seu).second)->tsId() <<
" " 299 << (*iter_eux)->id() << endl;
300 cout <<
"start : " << *(*iter_eux)->ts().first << endl;
301 cout <<
"target : " << *(*iter_eux)->ts().second << endl;
302 cout <<
"result : " <<
"quality = " << (*iter_eux)->quality() <<
'\t' 303 <<
"address = " << (*iter_eux)->address() << endl;
313 cout <<
"Results from Extrapolator and Quality Sorter of " <<
m_sp.
id()
316 cout <<
" EXT QSU " << endl;
317 cout <<
" S E U 11 11 " << endl;
318 cout <<
" 109876543210 109876543210 " << endl;
319 cout <<
"-------------------------------------" << endl;
320 for ( iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++ ) {
322 cout << ((*iter_seu).second)->
ext() <<
"_ " 323 << ((*iter_seu).second)->tsId() <<
": " 324 << ((*iter_seu).second)->exTable() <<
" " 325 << ((*iter_seu).second)->qsTable() << endl;
348 case EX12 : { source = 1; target = 2;
break; }
349 case EX13 : { source = 1; target = 3;
break; }
350 case EX14 : { source = 1; target = 4;
break; }
351 case EX21 : { source = 1; target = 2;
break; }
352 case EX23 : { source = 2; target = 3;
break; }
353 case EX24 : { source = 2; target = 4;
break; }
354 case EX34 : { source = 3; target = 4;
break; }
355 case EX15 : { source = 1; target = 3;
break; }
356 case EX25 : { source = 2; target = 3;
break; }
357 default : { source = 1; target = 2;
break; }
Extrapolation ext() const
return extrapolation type
L1MuDTTFParameters l1mudttfparams
int sector() const
return sector number
virtual void run()
run processor logic
void get(HolderT &iHolder) const
unsigned int tsId() const
return start track segment identifier (relative address)
const L1MuBMSecProcId & id() const
return Sector Processor identifier
bool get_soc_run_21(int wh, int sc) const
const TSPhivector & getTSphi() const
get all track segments from the buffer
const L1MuBMDataBuffer * data() const
return pointer to Data Buffer
T const * product() const
static std::string const source
bool empty() const
is it an empty phi track segment?
int wheel() const
return wheel number