56 for (
int ext_idx = 0; ext_idx <
MAX_EXT; ext_idx++) {
60 unsigned int maxaddr = 4;
65 for (
unsigned int startAddress = 0; startAddress < maxaddr; startAddress++) {
66 SEUId id = make_pair(
ext, startAddress);
69 cout <<
" creating SEU " <<
ext <<
" " << startAddress << endl;
80 for (SEUmap::iterator iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
81 delete (*iter).second;
82 (*iter).second =
nullptr;
97 SEUmap::const_iterator iter;
98 for (iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
99 pair<int, int> ext_pair =
which_ext(((*iter).second)->ext());
100 int start = ext_pair.first;
107 if (ts !=
nullptr && !ts->
empty()) {
108 ((*iter).second)->
load(ts);
109 ((*iter).second)->
run(
c);
119 for (
unsigned int startAdr = 0; startAdr < 2; startAdr++) {
123 for (
int eux = 0; eux < 12; eux++) {
124 if (extab12.test(eux) && !extab21.test(eux)) {
129 cout <<
" EX12 - EX21 mismatch : "
130 <<
" EX12 : " << extab12 <<
" , "
131 <<
" EX21 : " << extab21 << endl
132 <<
" Cancel: " << SEU12->
ext() <<
" start addr = " << SEU12->
tsId() <<
" target addr = " << eux
145 SEUmap::const_iterator iter;
146 for (iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
147 ((*iter).second)->
reset();
158 SEUId seuid = make_pair(
ext, startAdr);
159 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
161 ((*iter).second)->reset(relAdr);
175 unsigned short int address = 15;
177 SEUId seuid = make_pair(
ext, startAdr);
178 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
180 address = ((*iter).second)->ers()->address(
id);
196 unsigned short int quality = 0;
198 SEUId seuid = make_pair(
ext, startAdr);
199 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
201 quality = ((*iter).second)->ers()->quality(
id);
215 SEUId seuid = make_pair(
ext, startAdr);
216 return m_SEUs[seuid]->exTable();
228 SEUId seuid = make_pair(
ext, startAdr);
229 return m_SEUs[seuid]->qsTable();
237 SEUmap::const_iterator iter;
238 for (iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
249 SEUmap::const_iterator iter_seu;
252 for (iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++) {
253 vector<L1MuDTEUX*> vec_eux = ((*iter_seu).second)->eux();
254 vector<L1MuDTEUX*>::const_iterator iter_eux;
255 for (iter_eux = vec_eux.begin(); iter_eux != vec_eux.end(); iter_eux++) {
256 if ((*iter_eux)->result()) {
257 cout << ((*iter_seu).second)->
ext() <<
" " << ((*iter_seu).second)->tsId() <<
" " << (*iter_eux)->id()
259 cout <<
"start : " << *(*iter_eux)->ts().first << endl;
260 cout <<
"target : " << *(*iter_eux)->ts().second << endl;
262 <<
"quality = " << (*iter_eux)->quality() <<
'\t' <<
"address = " << (*iter_eux)->address() << endl;
272 cout <<
"Results from Extrapolator and Quality Sorter of " <<
m_sp.
id() <<
" : \n" << endl;
274 cout <<
" EXT QSU " << endl;
275 cout <<
" S E U 11 11 " << endl;
276 cout <<
" 109876543210 109876543210 " << endl;
277 cout <<
"-------------------------------------" << endl;
278 for (iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++) {
279 cout << ((*iter_seu).second)->
ext() <<
"_ " << ((*iter_seu).second)->tsId() <<
": "
280 << ((*iter_seu).second)->exTable() <<
" " << ((*iter_seu).second)->qsTable() << endl;