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;
101 SEUmap::const_iterator iter;
102 for (iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
103 pair<int, int> ext_pair =
which_ext(((*iter).second)->ext());
104 int start = ext_pair.first;
111 if (ts !=
nullptr && !ts->
empty()) {
112 ((*iter).second)->
load(ts);
113 ((*iter).second)->
run(
c);
123 for (
unsigned int startAdr = 0; startAdr < 2; startAdr++) {
127 for (
int eux = 0; eux < 12; eux++) {
128 if (extab12.test(eux) && !extab21.test(eux)) {
133 cout <<
" EX12 - EX21 mismatch : "
134 <<
" EX12 : " << extab12 <<
" , "
135 <<
" EX21 : " << extab21 << endl
136 <<
" Cancel: " << SEU12->
ext() <<
" start addr = " << SEU12->
tsId() <<
" target addr = " << eux
149 SEUmap::const_iterator iter;
150 for (iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
151 ((*iter).second)->
reset();
162 SEUId seuid = make_pair(
ext, startAdr);
163 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
165 ((*iter).second)->reset(relAdr);
179 unsigned short int address = 15;
181 SEUId seuid = make_pair(
ext, startAdr);
182 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
184 address = ((*iter).second)->ers()->address(
id);
200 unsigned short int quality = 0;
202 SEUId seuid = make_pair(
ext, startAdr);
203 SEUmap::const_iterator iter =
m_SEUs.find(seuid);
205 quality = ((*iter).second)->ers()->quality(
id);
219 SEUId seuid = make_pair(
ext, startAdr);
220 return m_SEUs[seuid]->exTable();
232 SEUId seuid = make_pair(
ext, startAdr);
233 return m_SEUs[seuid]->qsTable();
241 SEUmap::const_iterator iter;
242 for (iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
253 SEUmap::const_iterator iter_seu;
256 for (iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++) {
257 vector<L1MuBMEUX*> vec_eux = ((*iter_seu).second)->eux();
258 vector<L1MuBMEUX*>::const_iterator iter_eux;
259 for (iter_eux = vec_eux.begin(); iter_eux != vec_eux.end(); iter_eux++) {
260 if ((*iter_eux)->result()) {
261 cout << ((*iter_seu).second)->
ext() <<
" " << ((*iter_seu).second)->tsId() <<
" " << (*iter_eux)->id()
263 cout <<
"start : " << *(*iter_eux)->ts().first << endl;
264 cout <<
"target : " << *(*iter_eux)->ts().second << endl;
266 <<
"quality = " << (*iter_eux)->quality() <<
'\t' <<
"address = " << (*iter_eux)->address() << endl;
276 cout <<
"Results from Extrapolator and Quality Sorter of " <<
m_sp.
id() <<
" : \n" << endl;
278 cout <<
" EXT QSU " << endl;
279 cout <<
" S E U 11 11 " << endl;
280 cout <<
" 109876543210 109876543210 " << endl;
281 cout <<
"-------------------------------------" << endl;
282 for (iter_seu =
m_SEUs.begin(); iter_seu !=
m_SEUs.end(); iter_seu++) {
283 cout << ((*iter_seu).second)->
ext() <<
"_ " << ((*iter_seu).second)->tsId() <<
": "
284 << ((*iter_seu).second)->exTable() <<
" " << ((*iter_seu).second)->qsTable() << endl;