58 for (
int ext_idx = 0; ext_idx <
MAX_EXT; ext_idx++) {
62 unsigned int maxaddr = 4;
67 for (
unsigned int startAddress = 0; startAddress < maxaddr; startAddress++) {
68 SEUId id = make_pair(ext, startAddress);
71 cout <<
" creating SEU " << ext <<
" " << startAddress << endl;
82 for (SEUmap::iterator iter =
m_SEUs.begin(); iter !=
m_SEUs.end(); iter++) {
83 delete (*iter).second;
84 (*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(extLUTs, pars);
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.find(seuid)->second->exTable();
232 SEUId seuid = make_pair(ext, startAdr);
233 return m_SEUs.find(seuid)->second->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<L1MuDTEUX*> vec_eux = ((*iter_seu).second)->eux();
258 vector<L1MuDTEUX*>::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;
const edm::EventSetup & c
Extrapolation ext() const
return extrapolation type
uint16_t *__restrict__ id
uint32_t const *__restrict__ Quality * quality
int sector() const
return sector number
const L1MuDTDataBuffer * data() const
return pointer to Data Buffer
bool getData(T &iHolder) const
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
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)