104 vector<const L1MuBMTrackSegEta*>::iterator iter =
m_tseta.begin();
105 while ( iter !=
m_tseta.end() ) {
115 for (
int i = 0;
i < 12;
i++ ) {
137 for (
int i = 0;
i < 15;
i++ ) {
142 for (
int i = 0;
i < 12;
i++ ) {
146 if ( !empty1 || !empty2 ) {
147 cout <<
"Eta processor " <<
m_epid <<
" : " << endl;
151 cout <<
"Local pattern : " << endl;
152 for (
int i = 0;
i < 15;
i++ ) {
156 for (
int j = 6;
j >= 0;
j-- ) {
160 if ( (
i+1)%5 == 0 )
cout << endl;
162 cout <<
"Found patterns :" << endl;
163 vector<int>::const_iterator iter;
167 cout <<
"ID = " << setw(4) << p.
id() <<
" "
168 <<
"eta = " << setw(3) << p.
eta() <<
" "
169 <<
"quality = " << setw(2) << qualitycode <<
" ("
170 <<
quality(qualitycode,1) <<
" "
171 <<
quality(qualitycode,2) <<
" "
172 <<
quality(qualitycode,3) <<
")";
173 for (
int i = 0;
i < 12;
i++ ) {
180 cout <<
"Received addresses : " << endl;
185 cout <<
"Matched patterns : " << endl;
186 for (
int i = 0;
i < 12;
i++ ) {
189 int fineeta = p.
eta();
191 cout <<
"Index = " << setw(2) << i <<
", "
192 <<
"address = " << setw(2) <<
m_address[
i] <<
" --> "
193 <<
"pattern = " << setw(4) <<
m_pattern[
i] <<
" "
194 <<
"eta (coarse) = " << setw(3) << coarseeta <<
" "
195 <<
"eta (fine) = " << setw(3) << fineeta <<
" "
196 <<
"quality = " << setw(2) << p.
quality() << endl;
201 cout <<
"Eta values and fine bits : " << endl;
202 for (
int i = 0;
i < 12;
i++ )
cout << setw(3) <<
m_eta[
i] <<
" ";
204 for (
int i = 0;
i < 12;
i++ )
cout << setw(3) <<
m_fine[
i] <<
" ";
230 for (
int stat = 1; stat <= 3; stat++ ) {
231 for (
int wheel = -2; wheel <= 2; wheel++ ) {
236 int lwheel = wheel+1;
237 if ( wheel < 0 ) lwheel = wheel-1;
240 if ( stat == 1 ) masked =
msks->get_etsoc_chdis_st1(lwheel, sector);
241 if ( stat == 2 ) masked =
msks->get_etsoc_chdis_st2(lwheel, sector);
242 if ( stat == 3 ) masked =
msks->get_etsoc_chdis_st3(lwheel, sector);
244 if ( !masked )
m_mask =
false;
246 if ( tseta && !masked ) {
248 if ( wheel == -2 || wheel == -1 ||
249 ( wheel == 0 && (sector == 0 || sector == 3 || sector == 4 || sector == 7 || sector == 8 || sector == 11) ) ) {
250 for (
int i = 0;
i < 7;
i++ ) {
255 for (
int i = 0;
i < 7;
i++ ) {
281 for (
int wheel = -3; wheel <= 3; wheel++ ) {
282 if ( wheel == 0 )
continue;
289 if ( !cand->
empty() ) {
310 for (
int i = 0;
i < 15;
i++ ) {
322 int qualitycode = pattern.
quality();
330 if ( bin == 0 )
continue;
334 good &= pos.test(bin-1);
336 if ( q == 2 ) good &= qual.test(bin-1);
356 for (
int i = 0;
i < 12;
i++ ) {
359 if ( adr == 0 )
continue;
372 const vector<short>& qualifiedPatterns =
theQualPatternLUT->getQualifiedPatterns(sp,adr);
373 vector<short>::const_iterator iter;
374 vector<int>::const_iterator f_iter;
375 for ( iter = qualifiedPatterns.begin(); iter != qualifiedPatterns.end(); iter++ ) {
397 for (
int i = 0;
i < 6;
i++ ) {
402 if ( adr1 == 0 || adr2 == 0 )
continue;
403 if ( adr1 == adr2 && !
m_mask ) {
428 for (
int i = 0;
i < 12;
i++ ) {
430 if (
m_eta[i] != 99 ) {
442 vector<const L1MuBMTrackSegEta*> TSeta;
444 for (
int stat = 0; stat < 3; stat++ ) {
445 int wh = p.
wheel(stat+1);
447 if ( pos == 0 )
continue;
474 const int qualcode[27][3] = { {0,0,0},{1,0,0},{0,1,0},{0,0,1},{2,0,0},
475 {0,2,0},{0,0,2},{1,1,0},{1,0,1},{0,1,1},
476 {2,1,0},{1,2,0},{2,0,1},{1,0,2},{0,2,1},
477 {0,1,2},{2,2,0},{2,0,2},{0,2,2},{1,1,1},
478 {2,1,1},{1,2,1},{1,1,2},{2,2,1},{2,1,2},
481 return qualcode[
id][stat-1];
LUT::const_iterator ETFLut_iter
int trackAddressCode() const
get track address code (for eta track finder)
int quality() const
return quality
bool getByToken(EDGetToken token, Handle< PROD > &result) const
L1MuBMAddressArray address() const
get address-array for this muon candidate
int position(int station) const
return position in station [1,3]
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
int quality(const int i) const
int position(const int i) const
L1MuBMTrack * tracK(int id) const
return pointer to muon candidate, index [0,1]
int eta() const
return eta
void setTSeta(const std::vector< const L1MuBMTrackSegEta * > &tsList)
set eta track segments used to form the muon candidate
const L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
get a pointer to a Sector Processor
L1MuBMTrack * track(int id) const
return pointer to muon candidate, index [0,1]
void setFineEtaBit()
set fine eta bit
void setEta(int eta)
set eta-code of muon candidate
static int position[264][3]
int wheel(int station) const
return wheel number in station [1,3]
bool empty() const
is it an empty muon candidate?