107 vector<const L1MuBMTrackSegEta*>::iterator iter =
m_tseta.begin();
108 while ( iter !=
m_tseta.end() ) {
118 for (
int i = 0;
i < 12;
i++ ) {
140 for (
int i = 0;
i < 15;
i++ ) {
145 for (
int i = 0;
i < 12;
i++ ) {
149 if ( !empty1 || !empty2 ) {
150 cout <<
"Eta processor " <<
m_epid <<
" : " << endl;
154 cout <<
"Local pattern : " << endl;
155 for (
int i = 0;
i < 15;
i++ ) {
159 for (
int j = 6; j >= 0; j-- ) {
160 cout << pos[j]+qua[j];
163 if ( (
i+1)%5 == 0 )
cout << endl;
165 cout <<
"Found patterns :" << endl;
166 vector<int>::const_iterator iter;
170 cout <<
"ID = " << setw(4) << p.
id() <<
" " 171 <<
"eta = " << setw(3) << p.
eta() <<
" " 172 <<
"quality = " << setw(2) << qualitycode <<
" (" 173 <<
quality(qualitycode,1) <<
" " 174 <<
quality(qualitycode,2) <<
" " 175 <<
quality(qualitycode,3) <<
")";
176 for (
int i = 0;
i < 12;
i++ ) {
183 cout <<
"Received addresses : " << endl;
188 cout <<
"Matched patterns : " << endl;
189 for (
int i = 0;
i < 12;
i++ ) {
192 int fineeta = p.
eta();
194 cout <<
"Index = " << setw(2) << i <<
", " 195 <<
"address = " << setw(2) <<
m_address[
i] <<
" --> " 196 <<
"pattern = " << setw(4) <<
m_pattern[
i] <<
" " 197 <<
"eta (coarse) = " << setw(3) << coarseeta <<
" " 198 <<
"eta (fine) = " << setw(3) << fineeta <<
" " 199 <<
"quality = " << setw(2) << p.
quality() << endl;
204 cout <<
"Eta values and fine bits : " << endl;
205 for (
int i = 0;
i < 12;
i++ )
cout << setw(3) <<
m_eta[
i] <<
" ";
207 for (
int i = 0;
i < 12;
i++ )
cout << setw(3) <<
m_fine[
i] <<
" ";
245 int lwheel =
wheel+1;
253 if ( !masked )
m_mask =
false;
255 if ( tseta && !masked ) {
258 (
wheel == 0 && (sector == 0 || sector == 3 || sector == 4 || sector == 7 || sector == 8 || sector == 11) ) ) {
259 for (
int i = 0;
i < 7;
i++ ) {
264 for (
int i = 0;
i < 7;
i++ ) {
291 if (
wheel == 0 )
continue;
293 for (
int number = 0; number < 2; number++ ) {
298 if ( !cand->
empty() ) {
323 for (
int i = 0;
i < 15;
i++ ) {
335 int qualitycode = pattern.
quality();
343 if ( bin == 0 )
continue;
347 good &= pos.test(bin-1);
349 if ( q == 2 ) good &= qual.test(bin-1);
373 for (
int i = 0;
i < 12;
i++ ) {
376 if ( adr == 0 )
continue;
388 vector<short>::const_iterator iter;
389 vector<int>::const_iterator f_iter;
390 for ( iter = qualifiedPatterns.begin(); iter != qualifiedPatterns.end(); iter++ ) {
410 for (
int i = 0;
i < 6;
i++ ) {
415 if ( adr1 == 0 || adr2 == 0 )
continue;
416 if ( adr1 == adr2 && !
m_mask ) {
436 for (
int i = 0;
i < 12;
i++ ) {
438 if (
m_eta[i] != 99 ) {
450 vector<const L1MuBMTrackSegEta*> TSeta;
455 if ( pos == 0 )
continue;
482 const int qualcode[27][3] = { {0,0,0},{1,0,0},{0,1,0},{0,0,1},{2,0,0},
483 {0,2,0},{0,0,2},{1,1,0},{1,0,1},{0,1,1},
484 {2,1,0},{1,2,0},{2,0,1},{1,0,2},{0,2,1},
485 {0,1,2},{2,2,0},{2,0,2},{0,2,2},{1,1,1},
486 {2,1,1},{1,2,1},{1,1,2},{2,2,1},{2,1,2},
489 return qualcode[
id][stat-1];
int trackAddressCode() const
get track address code (for eta track finder)
int quality() const
return quality
const std::vector< short > & getQualifiedPatterns(int sp, int adr) const
get list of qualified patterns for a given sector processor [1-6] and address [1-22] ...
int getCoarseEta(int sp, int adr) const
get coarse eta value for a given sector processor [1-6] and address [1-22]
bool get_etsoc_chdis_st3(int wh, int sc) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
ETFLut_iter begin() const
return iterator which points to the first entry of the LUT
L1MuBMAddressArray address() const
get address-array for this muon candidate
L1MuDTEtaPattern getPattern(int id) const
get pattern with a given ID
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
L1MuDTTFMasks l1mudttfmasks
void get(HolderT &iHolder) const
const L1MuBMSectorProcessor * sp(const L1MuBMSecProcId &) const
get a pointer to a Sector Processor
bool get_etsoc_chdis_st2(int wh, int sc) const
L1MuBMTrack * track(int id) const
return pointer to muon candidate, index [0,1]
bin
set the eta bin as selection string.
void setFineEtaBit()
set fine eta bit
L1MuDTChambThDigi const * chThetaSegm(int wheel, int stat, int sect, int bx) const
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 get_etsoc_chdis_st1(int wh, int sc) const
LUT::const_iterator ETFLut_iter
bool empty() const
is it an empty muon candidate?
T const * product() const
ETFLut_iter end() const
return iterator which points to the one-past-last entry of the LUT